From 01210083dc3b15c9a433f8c8b4667b03de7369ca Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Fri, 26 Aug 2016 23:05:27 -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 3f53cd0..a8985c6 100644 --- a/config +++ b/config @@ -6,6 +6,7 @@ export MYSQL_ROOT=${MYSQL_ROOT:="/var/lib/dokku/services/mysql"} export PLUGIN_COMMAND_PREFIX="mysql" export PLUGIN_DATA_ROOT=$MYSQL_ROOT export PLUGIN_DATASTORE_PORTS=(3306) +export PLUGIN_DATASTORE_WAIT_PORT=3306 export PLUGIN_DEFAULT_ALIAS="DATABASE" export PLUGIN_ALT_ALIAS="DOKKU_MYSQL" export PLUGIN_IMAGE=$MYSQL_IMAGE diff --git a/functions b/functions index 8795b2b..a101286 100755 --- a/functions +++ b/functions @@ -392,7 +392,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"