Use aanand/wait image to wait for service to be ready

This commit is contained in:
Loïc Guitaut
2015-09-08 14:50:32 +02:00
parent 491f144086
commit 2a9f715eed
2 changed files with 2 additions and 1 deletions

View File

@@ -36,7 +36,7 @@ case "$1" in
echo "$ID" > "$SERVICE_ROOT/ID"
dokku_log_verbose_quiet "Waiting for container to be ready"
sleep 10
docker run --rm --link "$SERVICE_NAME:$PLUGIN_COMMAND_PREFIX" aanand/wait > /dev/null
dokku_log_info2 "$PLUGIN_SERVICE container created: $SERVICE"
dokku "$PLUGIN_COMMAND_PREFIX:info" "$SERVICE"