Skip to content

Conversation

@henrymollman
Copy link
Contributor

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

@runnabot
Copy link

runnabot commented Nov 22, 2016

Deployed dock-init/new-dock-init. View on Runnable.
From Runnable

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whyyyyy?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

fi

if [ -z "${CONSUL_HOSTNAME+x}" ]; then
export CONSUL_HOSTNAME=10.4.5.144
Copy link
Contributor

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

Copy link
Contributor Author

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

Copy link
Contributor

@anandkumarpatel anandkumarpatel left a 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
Copy link
Contributor

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

Copy link
Contributor Author

@henrymollman henrymollman Nov 23, 2016

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)"
Copy link
Contributor

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

Copy link
Contributor Author

@henrymollman henrymollman Nov 23, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@henrymollman henrymollman merged commit 41e3c1b into master Nov 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants