From eee9cb2be5421796ef61e20cb0a52a6ab99c4b5a Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Fri, 26 Aug 2016 23:05:42 -0400 Subject: [PATCH] Only wait for a single port --- config | 1 + functions | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/config b/config index ffbe070..cec388e 100755 --- a/config +++ b/config @@ -6,6 +6,7 @@ export REDIS_ROOT=${REDIS_ROOT:="/var/lib/dokku/services/redis"} export PLUGIN_COMMAND_PREFIX="redis" export PLUGIN_DATA_ROOT=$REDIS_ROOT export PLUGIN_DATASTORE_PORTS=(6379) +export PLUGIN_DATASTORE_WAIT_PORT=6379 export PLUGIN_DEFAULT_ALIAS="REDIS" export PLUGIN_ALT_ALIAS="DOKKU_REDIS" export PLUGIN_IMAGE=$REDIS_IMAGE diff --git a/functions b/functions index 119e167..036d68e 100755 --- a/functions +++ b/functions @@ -385,7 +385,7 @@ service_create_container() { echo "$ID" > "$SERVICE_ROOT/ID" dokku_log_verbose_quiet "Waiting for container to be ready" - docker run --rm --link "$SERVICE_NAME:$PLUGIN_COMMAND_PREFIX" dokkupaas/wait > /dev/null + docker run --rm --link "$SERVICE_NAME:$PLUGIN_COMMAND_PREFIX" dokkupaas/wait -p "$PLUGIN_DATASTORE_WAIT_PORT" > /dev/null dokku_log_info2 "$PLUGIN_SERVICE container created: $SERVICE" service_info "$SERVICE"