Use aanand/wait image to wait for service to be ready
This commit is contained in:
2
commands
2
commands
@@ -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_verbose_quiet "Creating container database"
|
||||
IP=$(get_container_ip "$ID")
|
||||
|
||||
1
install
1
install
@@ -7,6 +7,7 @@ if ! docker images | grep -e "^$PLUGIN_IMAGE " | grep -q "$PLUGIN_IMAGE_VERSION"
|
||||
fi
|
||||
|
||||
docker pull svendowideit/ambassador:latest
|
||||
docker pull aanand/wait:latest
|
||||
|
||||
mkdir -p "$PLUGIN_DATA_ROOT" || echo "Failed to create $PLUGIN_SERVICE directory"
|
||||
chown dokku:dokku "$PLUGIN_DATA_ROOT"
|
||||
|
||||
Reference in New Issue
Block a user