refactor: move helper function to internal-functions
This commit is contained in:
1 parent
c4985bca67
commit
6c6e26712d
2 files changed
+11
-11
No files matched your search
@@ -115,7 +115,7 @@ trigger-scheduler-docker-local-scheduler-deploy() {
|
||||
DOCKER_ARGS+=" $IMAGE "
|
||||
DOCKER_ARGS+=" $START_CMD "
|
||||
|
||||
cid=$(fn-start-app-container "$DOCKER_ARGS")
|
||||
cid=$(fn-scheduler-docker-local-start-app-container "$APP" "$DOCKER_ARGS")
|
||||
|
||||
plugn trigger post-container-create "app" "$cid" "$APP" "deploy" "$PROC_TYPE"
|
||||
"$DOCKER_BIN" container start "$cid" >/dev/null || true
|
||||
@@ -222,14 +222,4 @@ fn-scheduler-docker-local-extract-start-cmd() {
|
||||
echo "$START_CMD"
|
||||
}
|
||||
|
||||
fn-start-app-container() {
|
||||
declare desc="starts a single app container"
|
||||
declare DOCKER_ARGS="$1"
|
||||
|
||||
declare -a __DOKKU_DOCKER_ARG_ARRAY
|
||||
eval "__DOKKU_DOCKER_ARG_ARRAY=($DOCKER_ARGS)"
|
||||
eval "$(config_export app "$APP" --merged)"
|
||||
"$DOCKER_BIN" container create "${__DOKKU_DOCKER_ARG_ARRAY[@]}"
|
||||
}
|
||||
|
||||
trigger-scheduler-docker-local-scheduler-deploy "$@"
|
||||
Reference in new issue
Block a user