fix: set custom entrypoint for pack-based containers so custom command/argument combinations are respected

Closes #5687
This commit is contained in:
Jose Diaz-Gonzalez
2023-02-17 16:01:41 -05:00
parent 514c6d9825
commit 1286d85054
2 changed files with 23 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
#!/usr/bin/env bash
set -eo pipefail
[[ $DOKKU_TRACE ]] && set -x
trigger-builder-pack-docker-args-process-deploy() {
declare desc="builder-pack core-post-deploy plugin trigger"
declare trigger="docker-args-process-deploy"
declare APP="$1" IMAGE_SOURCE_TYPE="$2"
local STDIN=$(cat)
local output
if [[ "$IMAGE_SOURCE_TYPE" != "pack" ]]; then
return
fi
# without this, the command and arguments are passed as args to the default process type
output="--entrypoint launcher "
echo -n "$STDIN$output"
}
trigger-builder-pack-docker-args-process-deploy "$@"

View File

@@ -0,0 +1 @@
docker-args-process-deploy