-
-
Notifications
You must be signed in to change notification settings - Fork 111
Description
I'm trying to run the specs with rspec-mode against docker but it always fails as it tries to run the specs locally (bundler not installed locally). I also can't figure how to get some more verbose output to debug if my config may be wrong.
Setup is as follows:
~/docker-projects/
|- docker-compose.yml
|- project_1
|- Dockerfile
|- spec/
|- .dir-locals.el
|- project-2
|- Dockerfile
|- spec/
|- .dir-locals.el
Each of the projects is a separate git repository and they are put in this order manually (no submodules or anything similar). The projects interdepend, so we have a single docker-compose.yml for all of it.
I'm setting the variables in the dir-locals for each project as recommended in the README.
.dir-locals.el of project_1:
;;; Directory Local Variables
;;; For more information see (info "(emacs) Directory Variables")
((rspec-compilation-mode
(rspec-docker-file-name . Dockerfile)
(rspec-docker-cwd . /var/lib/app-user/project_1/current)
(rspec-docker-container . project_1)
(rspec-use-docker-when-possible . t)))
I'm setting rspec-docker-file-name as it seems to be necessary to detect the docker support (by skimming the code) which is not documented in the README. Also in my case, as the docker-compose.yml is outside the project root I'm overwriting it for the Dockerfile, which is present. I got the warning about unsafe dir-locals and accepted it, so I'm not expecting the error to be there.
Any idea on what may be wrong or how to further debug the issue? Toggling from spec to implementation works and I assume all other features do work as well.