Merge pull request #5688 from dokku/5687-pack-launcher-fix
Set custom entrypoint for pack-based containers so custom command/argument combinations are respected
This commit is contained in:
2 files changed
+23
No files matched your search
+22
@@ -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 "$@"
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
docker-args-process-deploy
|
||||||
Reference in new issue
Block a user