You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
$ docker-compose run --rm lambda handler.hello
$ docker-compose run --rm -e HELLO=RUBY lambda handler.check_environment
Actual Result
Currently it just fails because the lambda container stops immediately:
$ bundle exec rspec spec/lambda_spec.rb
Serverspec on file: "......../docker-compose.yml"
Running docker-compose.yml with services
"lambda" container
Command "handler.hello"
stdout
example at ./spec/lambda_spec.rb:18 (FAILED - 1)
Failures:
1) Serverspec on file: "........../docker-compose.yml" Running docker-compose.yml with services "lambda" container Command "handler.hello" stdout
Failure/Error: its(:stdout) { should include 'Hello Ruby!' }
Docker::Error::ConflictError:
Container d6aa793121d1357fbf7ab12e018a925d1208c96ca427b94a4ecf87d63ac5900d is not running
So the current way runs something similiar to docker-compose exec service-name. I would want to use something like this docker-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:
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: