-
Notifications
You must be signed in to change notification settings - Fork 0
New dock init #41
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
New dock init #41
Conversation
|
Deployed |
6b61731 to
32588a7
Compare
lib/container.sh
Outdated
|
|
||
| # swarm should be started last so we know everything is up | ||
| backoff container::_start_swarm_container | ||
| docker ps | awk '/swarm/ { print $1 }' | xargs docker restart |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whyyyyy?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| fi | ||
|
|
||
| if [ -z "${CONSUL_HOSTNAME+x}" ]; then | ||
| export CONSUL_HOSTNAME=10.4.5.144 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a bit dangerous having a rando IP here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agreed but hopefully another value will be supplied
0371c2f to
32588a7
Compare
anandkumarpatel
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Last 2 things!
| container::_start_cadvisor_container::called | ||
| container::_start_node_exporter_container::called | ||
| container::_start_swarm_container::called | ||
| upstart::start_docker::called |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing upstart::start_docker::restore below
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added
lib/container.sh
Outdated
| container::_start_cadvisor_container() { | ||
| local name="google/cadvisor" | ||
| local version="v0.24.1" | ||
| local version="$(consul::get ${name}/version)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I say lets still hard code these... since only specific version will be baked into the ami
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed

This should be used along with the new dock init changes in devops-scripts/ansible to launch an instance into a dock pool better...faster...stronger