Skip to content
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

Induce Capistrano failure on container startup failure #18

Open
ain opened this issue Jun 15, 2016 · 2 comments
Open

Induce Capistrano failure on container startup failure #18

ain opened this issue Jun 15, 2016 · 2 comments

Comments

@ain
Copy link
Contributor

ain commented Jun 15, 2016

Capistrano needs to fail if any of the containers fail to start up, in start_containers task.

@ain ain changed the title Induce failure if on container failure startup Induce failure on container startup failure Jun 15, 2016
@ain ain changed the title Induce failure on container startup failure Induce Capistrano failure on container startup failure Jun 15, 2016
@ain
Copy link
Contributor Author

ain commented Jun 15, 2016

Something in the fashion of:

if [ -z $(docker-compose ps -q) ]; then
  ...
else
  ...
fi

@ain
Copy link
Contributor Author

ain commented Jun 16, 2016

Better: cycle through docker-compose config --services

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant