Only wait for a single port

This commit is contained in:
Jose Diaz-Gonzalez
2016-08-26 23:05:27 -04:00
parent b9f26d4680
commit 01210083dc
2 changed files with 2 additions and 1 deletions

1
config
View File

@@ -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

View File

@@ -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"