-
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
Show docker-compose logs upon initialisation failure #9
Comments
@estahn as always, thanks for the report 😉 Please, could you add a complete docker-compose.yml example, the current output and the expected output? For example, I have tried the following docker-compose.yml: version: '2'
services:
busybox:
image: busybox
command: badcommand And the following spec/test_spec.rb file: require 'dockerspec/serverspec'
describe docker_compose('docker-compose.yml', wait: 5) do
its_container(:busybox) do
describe file('/etc/passwd') do
it { should be_file }
end
end
end The error running
And
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Dockerspec Version
0.4.1
Ruby Version
2.4
Platform Details
Mac
Scenario
docker-compose fails to initialise one of the containers
Steps to Reproduce
Use a container that fails to initialise (e.g. busybox with a non-existing command)
Expected Result
dockerspec should fail and provide useful information, e.g. docker-compose logs of the failed container.
Actual Result
Just fails with no specific information.
The text was updated successfully, but these errors were encountered: