feat: add service container log output on failure to start
This commit is contained in:
@@ -133,7 +133,12 @@ service_create_container() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
dokku_log_verbose_quiet "Waiting for container to be ready"
|
dokku_log_verbose_quiet "Waiting for container to be ready"
|
||||||
"$DOCKER_BIN" container run "${LINK_CONTAINER_DOCKER_ARGS[@]}" "$PLUGIN_WAIT_IMAGE" -c "$SERVICE_NAME:$PLUGIN_DATASTORE_WAIT_PORT" >/dev/null
|
if ! suppress_output "$DOCKER_BIN" container run "${LINK_CONTAINER_DOCKER_ARGS[@]}" "$PLUGIN_WAIT_IMAGE" -c "$SERVICE_NAME:$PLUGIN_DATASTORE_WAIT_PORT"; then
|
||||||
|
dokku_log_info2_quiet "Start of $SERVICE container output"
|
||||||
|
dokku_container_log_verbose_quiet "$SERVICE_NAME"
|
||||||
|
dokku_log_info2_quiet "End of $SERVICE container output"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
dokku_log_verbose_quiet "Creating container database"
|
dokku_log_verbose_quiet "Creating container database"
|
||||||
"$DOCKER_BIN" container exec "$SERVICE_NAME" su - postgres -c "createdb -E utf8 $DATABASE_NAME" 2>/dev/null || dokku_log_verbose_quiet 'Already exists'
|
"$DOCKER_BIN" container exec "$SERVICE_NAME" su - postgres -c "createdb -E utf8 $DATABASE_NAME" 2>/dev/null || dokku_log_verbose_quiet 'Already exists'
|
||||||
|
|||||||
Reference in New Issue
Block a user