mirror of
https://github.com/dokku/dokku.git
synced 2026-02-23 19:50:34 +01:00
fix: set custom entrypoint for pack-based containers so custom command/argument combinations are respected
Closes #5687
This commit is contained in:
22
plugins/builder-pack/docker-args-process-deploy
Executable file
22
plugins/builder-pack/docker-args-process-deploy
Executable 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 "$@"
|
||||
1
plugins/builder-pack/docker-args-process-run
Symbolic link
1
plugins/builder-pack/docker-args-process-run
Symbolic link
@@ -0,0 +1 @@
|
||||
docker-args-process-deploy
|
||||
Reference in New Issue
Block a user