chore: cleanup build and destroy logging output
This commit is contained in:
1 parent
92ac9cc729
commit
498bdd0491
5 files changed
+5
-5
No files matched your search
@@ -34,7 +34,7 @@ apps_destroy() {
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Destroying $APP (including all add-ons)"
|
dokku_log_info1 "Destroying $APP (including all add-ons)"
|
||||||
plugn trigger pre-delete "$APP" "$IMAGE_TAG"
|
plugn trigger pre-delete "$APP" "$IMAGE_TAG"
|
||||||
|
|
||||||
local DOKKU_SCHEDULER=$(get_app_scheduler "$APP")
|
local DOKKU_SCHEDULER=$(get_app_scheduler "$APP")
|
||||||
|
|||||||
@@ -538,7 +538,7 @@ is_app_running() {
|
|||||||
dokku_log_warn "Deprecated: ps#fn-is-app-running"
|
dokku_log_warn "Deprecated: ps#fn-is-app-running"
|
||||||
verify_app_name "$APP"
|
verify_app_name "$APP"
|
||||||
|
|
||||||
local APP_RUNNING_CONTAINER_IDS=$(get_app_running_container_ids "$APP")
|
local APP_RUNNING_CONTAINER_IDS=$(get_app_running_container_ids "$APP" 2>/dev/null)
|
||||||
|
|
||||||
if [[ -n "$APP_RUNNING_CONTAINER_IDS" ]]; then
|
if [[ -n "$APP_RUNNING_CONTAINER_IDS" ]]; then
|
||||||
return 0
|
return 0
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ ps_main_cmd() {
|
|||||||
verify_app_name "$APP"
|
verify_app_name "$APP"
|
||||||
! (is_deployed "$APP") && dokku_log_warn "App $APP has not been deployed" && exit 0
|
! (is_deployed "$APP") && dokku_log_warn "App $APP has not been deployed" && exit 0
|
||||||
|
|
||||||
local DOKKU_APP_RUNNING_CONTAINER_IDS=$(get_app_running_container_ids "$APP")
|
local DOKKU_APP_RUNNING_CONTAINER_IDS=$(get_app_running_container_ids "$APP" 2>/dev/null)
|
||||||
|
|
||||||
local CID
|
local CID
|
||||||
for CID in $DOKKU_APP_RUNNING_CONTAINER_IDS; do
|
for CID in $DOKKU_APP_RUNNING_CONTAINER_IDS; do
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ scheduler-docker-local-scheduler-deploy() {
|
|||||||
|
|
||||||
if [[ "$(is_app_proctype_checks_disabled "$APP" "$PROC_TYPE")" == "true" ]]; then
|
if [[ "$(is_app_proctype_checks_disabled "$APP" "$PROC_TYPE")" == "true" ]]; then
|
||||||
dokku_log_info1 "zero downtime is disabled for app ($APP.$PROC_TYPE). stopping currently running containers"
|
dokku_log_info1 "zero downtime is disabled for app ($APP.$PROC_TYPE). stopping currently running containers"
|
||||||
local cid proctype_oldids="$(get_app_running_container_ids "$APP" "$PROC_TYPE")"
|
local cid proctype_oldids="$(get_app_running_container_ids "$APP" "$PROC_TYPE" 2>/dev/null)"
|
||||||
for cid in $proctype_oldids; do
|
for cid in $proctype_oldids; do
|
||||||
dokku_log_info2 "stopping $APP.$PROC_TYPE ($cid)"
|
dokku_log_info2 "stopping $APP.$PROC_TYPE ($cid)"
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ scheduler-docker-local-scheduler-stop() {
|
|||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local DOKKU_APP_RUNNING_CONTAINER_IDS=$(get_app_running_container_ids "$APP")
|
local DOKKU_APP_RUNNING_CONTAINER_IDS=$(get_app_running_container_ids "$APP" 2>/dev/null)
|
||||||
local DOKKU_DOCKER_STOP_TIMEOUT="$(config_get "$APP" DOKKU_DOCKER_STOP_TIMEOUT || true)"
|
local DOKKU_DOCKER_STOP_TIMEOUT="$(config_get "$APP" DOKKU_DOCKER_STOP_TIMEOUT || true)"
|
||||||
|
|
||||||
[[ -n "$DOKKU_DOCKER_STOP_TIMEOUT" ]] && DOCKER_STOP_TIME_ARG="--time=${DOKKU_DOCKER_STOP_TIMEOUT}"
|
[[ -n "$DOKKU_DOCKER_STOP_TIMEOUT" ]] && DOCKER_STOP_TIME_ARG="--time=${DOKKU_DOCKER_STOP_TIMEOUT}"
|
||||||
|
|||||||
Reference in new issue
Block a user