-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docker_compose doesn't shutdown container after describe end #8
Comments
@estahn unfortunately, I do not think this can be fixed due to the way rspec and serverspec work. Right now all the containers are started, then the tests are passed, and then they all stop in a third stage. I tried to change this some time ago, but it seemed impossible. In addition to that, and even if it were possible, this would imply that you could not execute things like |
It appears rspec doesn't have an isolation feature similar to phpunit. I'm running it now manually in "isolation" :) find spec -name "*_spec.rb" | xargs -I% -n1 /bin/bash -c 'MY_VAR=123 bundle exec rspec %' |
Yes, that's a good solution. Maybe it could be possible to implement some kind of special resource, something like a |
I tried experimenting with |
With the original |
Dockerspec Version
0.4.1
Ruby Version
2.4
Platform Details
Mac
Scenario
Run
docker_compose
from the same file in 2 different specs.Steps to Reproduce
Expected Result
After
describe docker_compose() do ... end
the containers should shutdown.Actual Result
Containers stay active until rspec is finished.
Possible Solution
In order to maintain backwards compatibility it might be worth to introduce a new flag
shutdown
for the docker_compose method.The text was updated successfully, but these errors were encountered: