-
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
How could I run multiple containers from single docker-compose.yml definition? #15
Comments
Something like this would be awesome: with_service(:lambda) do
describe run(command: 'handler.hello'), retry: 1 do # disable retries here
its(:stdout) { should include 'Hello Ruby!' }
its(:stderr) { should eq '' }
end
describe run(command: 'handler.check_environment', environment: { HELLO: 'RUBY'}), retry: 1 do # disable retries here
its(:stdout) { should include '"HELLO"=>"RUBY"' }
its(:stderr) { should eq '' }
end
end Which would run something similiar to:
|
And I already did initial support for I'm just not sure how to pass the contexts correctly inside dockerspec. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Dockerspec Version
0.5.0
Ruby Version
2.5.3
Platform Details
MacOS
Scenario
Steps to Reproduce
handler.rb
docker-compose.yml
:spec/lambda_spec.rb
:Expected Result
I know that this doesn't work. I'm willing to contribute on this feature but I'm in need of feedback.
How would you enhance this gem so that I could do multiple runs like these:
Actual Result
Currently it just fails because the lambda container stops immediately:
So the current way runs something similiar to
docker-compose exec service-name
. I would want to use something like thisdocker-compose --rm run service-name
multiple times.I know you must be busy but I would want to support this feature financially as well.
The text was updated successfully, but these errors were encountered: