feat: allow users to customize the container start command

This can be useful when testing base images that are similar to herokuish but have a different entrypoint.
This commit is contained in:
Jose Diaz-Gonzalez
2019-08-20 17:12:18 -04:00
parent 2b1c8f64fb
commit 0c3f659854
2 changed files with 4 additions and 0 deletions

View File

@@ -35,6 +35,8 @@ scheduler-docker-local-scheduler-deploy() {
DOKKU_DOCKER_STOP_TIMEOUT="$(config_get "$APP" DOKKU_DOCKER_STOP_TIMEOUT || true)"
[[ $DOKKU_DOCKER_STOP_TIMEOUT ]] && DOCKER_STOP_TIME_ARG="--time=${DOKKU_DOCKER_STOP_TIMEOUT}"
DOKKU_START_CMD="$(config_get "$APP" DOKKU_START_CMD || true)"
local line
local PROC_TYPE
local PROC_COUNT
@@ -80,6 +82,7 @@ scheduler-docker-local-scheduler-deploy() {
local START_CMD
[[ "$DOKKU_HEROKUISH" == "true" ]] && START_CMD="/start $PROC_TYPE"
[[ -n "$DOKKU_START_CMD" ]] && START_CMD="$DOKKU_START_CMD"
if [[ "$PROC_TYPE" == "web" ]]; then
ports=($(plugn trigger network-compute-ports "$APP" "$PROC_TYPE" "$DOKKU_HEROKUISH"))