diff --git a/plugins/builder-pack/docker-args-process-deploy b/plugins/builder-pack/docker-args-process-deploy new file mode 100755 index 000000000..1ab4dec4c --- /dev/null +++ b/plugins/builder-pack/docker-args-process-deploy @@ -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 "$@" diff --git a/plugins/builder-pack/docker-args-process-run b/plugins/builder-pack/docker-args-process-run new file mode 120000 index 000000000..cdc306c1e --- /dev/null +++ b/plugins/builder-pack/docker-args-process-run @@ -0,0 +1 @@ +docker-args-process-deploy \ No newline at end of file