Use our own image to wait for services

This commit is contained in:
Loïc Guitaut
2015-09-24 11:07:05 +02:00
parent 624ed2592d
commit e7aed00674
2 changed files with 3 additions and 3 deletions

View File

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

View File

@@ -10,8 +10,8 @@ if ! docker images | grep -e "^svendowideit/ambassador "; then
docker pull svendowideit/ambassador:latest
fi
if ! docker images | grep -e "^aanand/wait "; then
docker pull aanand/wait:latest
if ! docker images | grep -e "^dokkupaas/wait "; then
docker pull dokkupaas/wait:latest
fi
mkdir -p "$PLUGIN_DATA_ROOT" || echo "Failed to create $PLUGIN_SERVICE directory"