tests: add a unit test for the init-process option

This commit is contained in:
Jose Diaz-Gonzalez
2022-08-14 13:45:41 -04:00
parent bc4eaa002f
commit f09b960997
3 changed files with 48 additions and 2 deletions

View File

@@ -19,7 +19,7 @@ main() {
DOCKER_ARGS+=" --label=com.dokku.process-type=$PROC_TYPE --label=com.dokku.dyno=$DYNO"
DOCKER_ARGS+=" --env=DYNO=$DYNO"
DOCKER_ARGS+=" --name=$APP.$DYNO.upcoming-$RANDOM"
if [[ "$INJECT_INIT_FLAG" == "false" ]]; then
if [[ "$INJECT_INIT_FLAG" == "true" ]]; then
DOCKER_ARGS+=" --init"
fi
DOCKER_ARGS+=" $DOCKER_RUN_LABEL_ARGS $DOKKU_GLOBAL_RUN_ARGS "