Skip to content

Instantly share code, notes, and snippets.

@ilyapoz
Created March 30, 2018 13:21
Show Gist options
  • Save ilyapoz/675d3be5799e2821220ee91857f550af to your computer and use it in GitHub Desktop.
Save ilyapoz/675d3be5799e2821220ee91857f550af to your computer and use it in GitHub Desktop.
logs for dokku: before
+ export DOKKU_DISTRO
++ . /etc/os-release
++ echo ubuntu
+ DOKKU_DISTRO=ubuntu
+ export DOKKU_IMAGE=gliderlabs/herokuish
+ DOKKU_IMAGE=gliderlabs/herokuish
+ export DOKKU_LIB_ROOT=/var/lib/dokku
+ DOKKU_LIB_ROOT=/var/lib/dokku
+ export PLUGIN_PATH=/var/lib/dokku/plugins
+ PLUGIN_PATH=/var/lib/dokku/plugins
+ export PLUGIN_AVAILABLE_PATH=/var/lib/dokku/plugins/available
+ PLUGIN_AVAILABLE_PATH=/var/lib/dokku/plugins/available
+ export PLUGIN_ENABLED_PATH=/var/lib/dokku/plugins/enabled
+ PLUGIN_ENABLED_PATH=/var/lib/dokku/plugins/enabled
+ export PLUGIN_CORE_PATH=/var/lib/dokku/core-plugins
+ PLUGIN_CORE_PATH=/var/lib/dokku/core-plugins
+ export PLUGIN_CORE_AVAILABLE_PATH=/var/lib/dokku/core-plugins/available
+ PLUGIN_CORE_AVAILABLE_PATH=/var/lib/dokku/core-plugins/available
+ export PLUGIN_CORE_ENABLED_PATH=/var/lib/dokku/core-plugins/enabled
+ PLUGIN_CORE_ENABLED_PATH=/var/lib/dokku/core-plugins/enabled
+ export DOKKU_API_VERSION=1
+ DOKKU_API_VERSION=1
+ export DOKKU_NOT_IMPLEMENTED_EXIT=10
+ DOKKU_NOT_IMPLEMENTED_EXIT=10
+ export DOKKU_VALID_EXIT=0
+ DOKKU_VALID_EXIT=0
+ export DOKKU_LOGS_DIR=/var/log/dokku
+ DOKKU_LOGS_DIR=/var/log/dokku
+ export DOKKU_EVENTS_LOGFILE=/var/log/dokku/events.log
+ DOKKU_EVENTS_LOGFILE=/var/log/dokku/events.log
+ export DOKKU_CONTAINER_LABEL=dokku
+ DOKKU_CONTAINER_LABEL=dokku
+ export DOKKU_GLOBAL_RUN_ARGS=--label=dokku
+ DOKKU_GLOBAL_RUN_ARGS=--label=dokku
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ parse_args git-receive-pack ''\''cache-test'\'''
+ declare 'desc=top-level cli arg parser'
+ local next_index=1
+ local skip=false
+ args=("$@")
+ local args
+ for arg in '"$@"'
+ [[ false == \t\r\u\e ]]
+ case "$arg" in
+ next_index=2
+ for arg in '"$@"'
+ [[ false == \t\r\u\e ]]
+ case "$arg" in
+ next_index=3
+ return 0
+ args=("$@")
+ skip_arg=false
+ [[ git-receive-pack =~ ^--.* ]]
+ has_tty
+ declare 'desc=return 0 if we have a tty'
++ /usr/bin/tty
++ true
+ [[ not a tty == \n\o\t\ \a\ \t\t\y ]]
+ return 1
+ DOKKU_QUIET_OUTPUT=1
++ id -un
+ [[ dokku != \d\o\k\k\u ]]
+ [[ git-receive-pack =~ ^plugin:.* ]]
+ [[ git-receive-pack == \s\s\h\-\k\e\y\s\:\a\d\d ]]
+ [[ -n git-receive-pack 'cache-test' ]]
+ export -n SSH_ORIGINAL_COMMAND
+ [[ git-receive-pack =~ config-* ]]
+ [[ git-receive-pack =~ docker-options* ]]
+ set -f
+ /usr/bin/dokku git-receive-pack ''\''cache-test'\'''
+ export DOKKU_DISTRO
++ . /etc/os-release
++ echo ubuntu
+ DOKKU_DISTRO=ubuntu
+ export DOKKU_IMAGE=gliderlabs/herokuish
+ DOKKU_IMAGE=gliderlabs/herokuish
+ export DOKKU_LIB_ROOT=/var/lib/dokku
+ DOKKU_LIB_ROOT=/var/lib/dokku
+ export PLUGIN_PATH=/var/lib/dokku/plugins
+ PLUGIN_PATH=/var/lib/dokku/plugins
+ export PLUGIN_AVAILABLE_PATH=/var/lib/dokku/plugins/available
+ PLUGIN_AVAILABLE_PATH=/var/lib/dokku/plugins/available
+ export PLUGIN_ENABLED_PATH=/var/lib/dokku/plugins/enabled
+ PLUGIN_ENABLED_PATH=/var/lib/dokku/plugins/enabled
+ export PLUGIN_CORE_PATH=/var/lib/dokku/core-plugins
+ PLUGIN_CORE_PATH=/var/lib/dokku/core-plugins
+ export PLUGIN_CORE_AVAILABLE_PATH=/var/lib/dokku/core-plugins/available
+ PLUGIN_CORE_AVAILABLE_PATH=/var/lib/dokku/core-plugins/available
+ export PLUGIN_CORE_ENABLED_PATH=/var/lib/dokku/core-plugins/enabled
+ PLUGIN_CORE_ENABLED_PATH=/var/lib/dokku/core-plugins/enabled
+ export DOKKU_API_VERSION=1
+ DOKKU_API_VERSION=1
+ export DOKKU_NOT_IMPLEMENTED_EXIT=10
+ DOKKU_NOT_IMPLEMENTED_EXIT=10
+ export DOKKU_VALID_EXIT=0
+ DOKKU_VALID_EXIT=0
+ export DOKKU_LOGS_DIR=/var/log/dokku
+ DOKKU_LOGS_DIR=/var/log/dokku
+ export DOKKU_EVENTS_LOGFILE=/var/log/dokku/events.log
+ DOKKU_EVENTS_LOGFILE=/var/log/dokku/events.log
+ export DOKKU_CONTAINER_LABEL=dokku
+ DOKKU_CONTAINER_LABEL=dokku
+ export DOKKU_GLOBAL_RUN_ARGS=--label=dokku
+ DOKKU_GLOBAL_RUN_ARGS=--label=dokku
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ parse_args git-receive-pack ''\''cache-test'\'''
+ declare 'desc=top-level cli arg parser'
+ local next_index=1
+ local skip=false
+ args=("$@")
+ local args
+ for arg in '"$@"'
+ [[ false == \t\r\u\e ]]
+ case "$arg" in
+ next_index=2
+ for arg in '"$@"'
+ [[ false == \t\r\u\e ]]
+ case "$arg" in
+ next_index=3
+ return 0
+ args=("$@")
+ skip_arg=false
+ [[ git-receive-pack =~ ^--.* ]]
+ has_tty
+ declare 'desc=return 0 if we have a tty'
++ /usr/bin/tty
++ true
+ [[ not a tty == \n\o\t\ \a\ \t\t\y ]]
+ return 1
+ DOKKU_QUIET_OUTPUT=1
++ id -un
+ [[ dokku != \d\o\k\k\u ]]
+ [[ git-receive-pack =~ ^plugin:.* ]]
+ [[ git-receive-pack == \s\s\h\-\k\e\y\s\:\a\d\d ]]
+ [[ -n '' ]]
+ dokku_auth git-receive-pack ''\''cache-test'\'''
+ declare 'desc=calls user-auth plugin trigger'
+ export SSH_USER=dokku
+ SSH_USER=dokku
+ export SSH_NAME=lenin
+ SSH_NAME=lenin
+ plugn trigger user-auth dokku lenin git-receive-pack ''\''cache-test'\'''
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ [[ ! -n '' ]]
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ [[ git-receive-pack =~ (ssh-keys:add|ssh-keys:remove) ]]
+ return 0
+ case "$1" in
+ execute_dokku_cmd git-receive-pack ''\''cache-test'\'''
+ declare 'desc=executes dokku sub-commands'
+ local PLUGIN_NAME=git-receive-pack
+ local PLUGIN_CMD=git-receive-pack
+ local implemented=0
+ local script
+ argv=("$@")
+ local argv
+ case "$PLUGIN_NAME" in
++ readlink -f /var/lib/dokku/plugins/enabled/git-receive-pack
+ [[ /var/lib/dokku/plugins/enabled/git-receive-pack == *core-plugins* ]]
+ [[ -x /var/lib/dokku/plugins/enabled/git-receive-pack/subcommands/default ]]
+ [[ -x /var/lib/dokku/plugins/enabled/git-receive-pack/subcommands/git-receive-pack ]]
+ [[ -x /var/lib/dokku/plugins/enabled/git-receive-pack/subcommands/git-receive-pack ]]
+ [[ 0 -eq 0 ]]
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/00_dokku-standard/commands git-receive-pack ''\''cache-test'\'''
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/20_events/commands git-receive-pack ''\''cache-test'\'''
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/apps/commands git-receive-pack ''\''cache-test'\'''
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/certs/commands git-receive-pack ''\''cache-test'\'''
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/checks/commands git-receive-pack ''\''cache-test'\'''
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/config/commands git-receive-pack ''\''cache-test'\'''
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/docker-direct/commands git-receive-pack ''\''cache-test'\'''
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/docker-options/commands git-receive-pack ''\''cache-test'\'''
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/domains/commands git-receive-pack ''\''cache-test'\'''
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/enter/commands git-receive-pack ''\''cache-test'\'''
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/git/commands git-receive-pack ''\''cache-test'\'''
+ source /var/lib/dokku/plugins/available/git/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
++ source /var/lib/dokku/core-plugins/available/common/functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
++ source /var/lib/dokku/plugins/available/apps/functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
+++ source /var/lib/dokku/core-plugins/available/common/functions
++++ set -eo pipefail
++++ [[ -n 1 ]]
++++ set -x
+++ source /var/lib/dokku/plugins/available/config/functions
++++ set -eo pipefail
++++ [[ -n 1 ]]
++++ set -x
++++ source /var/lib/dokku/core-plugins/available/common/functions
+++++ set -eo pipefail
+++++ [[ -n 1 ]]
+++++ set -x
++ source /var/lib/dokku/plugins/available/config/functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
+++ source /var/lib/dokku/core-plugins/available/common/functions
++++ set -eo pipefail
++++ [[ -n 1 ]]
++++ set -x
+ case "$1" in
+ git_glob_cmd git-receive-pack ''\''cache-test'\'''
+ declare 'desc=catch-all for any other git-* commands'
+ local 'cmd=git-*'
++ sed 's/^\///g'
++ sed 's/\\'\''/'\''/g'
++ perl -pe 's/(?<!\\)'\''//g'
++ echo ''\''cache-test'\'''
+ local APP=cache-test
+ local APP_PATH=/home/dokku/cache-test
+ is_valid_app_name cache-test
+ declare 'desc=verify app name format'
+ local APP=cache-test
+ [[ ! -n cache-test ]]
+ [[ cache-test =~ ^[a-z].* ]]
+ [[ ! cache-test =~ [A-Z] ]]
+ [[ ! cache-test =~ [:] ]]
+ return 0
+ [[ git-receive-pack == \g\i\t\-\r\e\c\e\i\v\e\-\p\a\c\k ]]
+ [[ ! -d /home/dokku/cache-test/refs ]]
+ [[ ! -d /home/dokku/cache-test ]]
+ git init --bare /home/dokku/cache-test
+ local PRERECEIVE_HOOK=/home/dokku/cache-test/hooks/pre-receive
+ cat
+ chmod +x /home/dokku/cache-test/hooks/pre-receive
+ [[ git-receive-pack == \g\i\t\-\r\e\c\e\i\v\e\-\p\a\c\k ]]
+ local 'args=git-receive-pack '\''/home/dokku/cache-test'\'''
+ git-shell -c 'git-receive-pack '\''/home/dokku/cache-test'\'''
remote: + export DOKKU_DISTRO
remote: ++ . /etc/os-release
remote: ++ echo ubuntu
remote: + DOKKU_DISTRO=ubuntu
remote: + export DOKKU_IMAGE=gliderlabs/herokuish
remote: + DOKKU_IMAGE=gliderlabs/herokuish
remote: + export DOKKU_LIB_ROOT=/var/lib/dokku
remote: + DOKKU_LIB_ROOT=/var/lib/dokku
remote: + export PLUGIN_PATH=/var/lib/dokku/plugins
remote: + PLUGIN_PATH=/var/lib/dokku/plugins
remote: + export PLUGIN_AVAILABLE_PATH=/var/lib/dokku/plugins/available
remote: + PLUGIN_AVAILABLE_PATH=/var/lib/dokku/plugins/available
remote: + export PLUGIN_ENABLED_PATH=/var/lib/dokku/plugins/enabled
remote: + PLUGIN_ENABLED_PATH=/var/lib/dokku/plugins/enabled
remote: + export PLUGIN_CORE_PATH=/var/lib/dokku/core-plugins
remote: + PLUGIN_CORE_PATH=/var/lib/dokku/core-plugins
remote: + export PLUGIN_CORE_AVAILABLE_PATH=/var/lib/dokku/core-plugins/available
remote: + PLUGIN_CORE_AVAILABLE_PATH=/var/lib/dokku/core-plugins/available
remote: + export PLUGIN_CORE_ENABLED_PATH=/var/lib/dokku/core-plugins/enabled
remote: + PLUGIN_CORE_ENABLED_PATH=/var/lib/dokku/core-plugins/enabled
remote: + export DOKKU_API_VERSION=1
remote: + DOKKU_API_VERSION=1
remote: + export DOKKU_NOT_IMPLEMENTED_EXIT=10
remote: + DOKKU_NOT_IMPLEMENTED_EXIT=10
remote: + export DOKKU_VALID_EXIT=0
remote: + DOKKU_VALID_EXIT=0
remote: + export DOKKU_LOGS_DIR=/var/log/dokku
remote: + DOKKU_LOGS_DIR=/var/log/dokku
remote: + export DOKKU_EVENTS_LOGFILE=/var/log/dokku/events.log
remote: + DOKKU_EVENTS_LOGFILE=/var/log/dokku/events.log
remote: + export DOKKU_CONTAINER_LABEL=dokku
remote: + DOKKU_CONTAINER_LABEL=dokku
remote: + export DOKKU_GLOBAL_RUN_ARGS=--label=dokku
remote: + DOKKU_GLOBAL_RUN_ARGS=--label=dokku
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + parse_args git-hook cache-test
remote: + declare 'desc=top-level cli arg parser'
remote: + local next_index=1
remote: + local skip=false
remote: + args=("$@")
remote: + local args
remote: + for arg in '"$@"'
remote: + [[ false == \t\r\u\e ]]
remote: + case "$arg" in
remote: + next_index=2
remote: + for arg in '"$@"'
remote: + [[ false == \t\r\u\e ]]
remote: + case "$arg" in
remote: + next_index=3
remote: + return 0
remote: + args=("$@")
remote: + skip_arg=false
remote: + [[ git-hook =~ ^--.* ]]
remote: + has_tty
remote: + declare 'desc=return 0 if we have a tty'
remote: ++ /usr/bin/tty
remote: ++ true
remote: + [[ not a tty == \n\o\t\ \a\ \t\t\y ]]
remote: + return 1
remote: + DOKKU_QUIET_OUTPUT=1
remote: ++ id -un
remote: + [[ dokku != \d\o\k\k\u ]]
remote: + [[ git-hook =~ ^plugin:.* ]]
remote: + [[ git-hook == \s\s\h\-\k\e\y\s\:\a\d\d ]]
remote: + [[ -n '' ]]
remote: + dokku_auth git-hook cache-test
remote: + declare 'desc=calls user-auth plugin trigger'
remote: + export SSH_USER=dokku
remote: + SSH_USER=dokku
remote: + export SSH_NAME=lenin
remote: + SSH_NAME=lenin
remote: + plugn trigger user-auth dokku lenin git-hook cache-test
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + [[ ! -n '' ]]
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + [[ git-hook =~ (ssh-keys:add|ssh-keys:remove) ]]
remote: + return 0
remote: + case "$1" in
remote: + execute_dokku_cmd git-hook cache-test
remote: + declare 'desc=executes dokku sub-commands'
remote: + local PLUGIN_NAME=git-hook
remote: + local PLUGIN_CMD=git-hook
remote: + local implemented=0
remote: + local script
remote: + argv=("$@")
remote: + local argv
remote: + case "$PLUGIN_NAME" in
remote: ++ readlink -f /var/lib/dokku/plugins/enabled/git-hook
remote: + [[ /var/lib/dokku/plugins/enabled/git-hook == *core-plugins* ]]
remote: + [[ -x /var/lib/dokku/plugins/enabled/git-hook/subcommands/default ]]
remote: + [[ -x /var/lib/dokku/plugins/enabled/git-hook/subcommands/git-hook ]]
remote: + [[ -x /var/lib/dokku/plugins/enabled/git-hook/subcommands/git-hook ]]
remote: + [[ 0 -eq 0 ]]
remote: + for script in '$PLUGIN_ENABLED_PATH/*/commands'
remote: + set +e
remote: + /var/lib/dokku/plugins/enabled/00_dokku-standard/commands git-hook cache-test
remote: + exit_code=10
remote: + set -e
remote: + [[ 10 -eq 10 ]]
remote: + continue
remote: + for script in '$PLUGIN_ENABLED_PATH/*/commands'
remote: + set +e
remote: + /var/lib/dokku/plugins/enabled/20_events/commands git-hook cache-test
remote: + exit_code=10
remote: + set -e
remote: + [[ 10 -eq 10 ]]
remote: + continue
remote: + for script in '$PLUGIN_ENABLED_PATH/*/commands'
remote: + set +e
remote: + /var/lib/dokku/plugins/enabled/apps/commands git-hook cache-test
remote: + exit_code=10
remote: + set -e
remote: + [[ 10 -eq 10 ]]
remote: + continue
remote: + for script in '$PLUGIN_ENABLED_PATH/*/commands'
remote: + set +e
remote: + /var/lib/dokku/plugins/enabled/certs/commands git-hook cache-test
remote: + exit_code=10
remote: + set -e
remote: + [[ 10 -eq 10 ]]
remote: + continue
remote: + for script in '$PLUGIN_ENABLED_PATH/*/commands'
remote: + set +e
remote: + /var/lib/dokku/plugins/enabled/checks/commands git-hook cache-test
remote: + exit_code=10
remote: + set -e
remote: + [[ 10 -eq 10 ]]
remote: + continue
remote: + for script in '$PLUGIN_ENABLED_PATH/*/commands'
remote: + set +e
remote: + /var/lib/dokku/plugins/enabled/config/commands git-hook cache-test
remote: + exit_code=10
remote: + set -e
remote: + [[ 10 -eq 10 ]]
remote: + continue
remote: + for script in '$PLUGIN_ENABLED_PATH/*/commands'
remote: + set +e
remote: + /var/lib/dokku/plugins/enabled/docker-direct/commands git-hook cache-test
remote: + exit_code=10
remote: + set -e
remote: + [[ 10 -eq 10 ]]
remote: + continue
remote: + for script in '$PLUGIN_ENABLED_PATH/*/commands'
remote: + set +e
remote: + /var/lib/dokku/plugins/enabled/docker-options/commands git-hook cache-test
remote: + exit_code=10
remote: + set -e
remote: + [[ 10 -eq 10 ]]
remote: + continue
remote: + for script in '$PLUGIN_ENABLED_PATH/*/commands'
remote: + set +e
remote: + /var/lib/dokku/plugins/enabled/domains/commands git-hook cache-test
remote: + exit_code=10
remote: + set -e
remote: + [[ 10 -eq 10 ]]
remote: + continue
remote: + for script in '$PLUGIN_ENABLED_PATH/*/commands'
remote: + set +e
remote: + /var/lib/dokku/plugins/enabled/enter/commands git-hook cache-test
remote: + exit_code=10
remote: + set -e
remote: + [[ 10 -eq 10 ]]
remote: + continue
remote: + for script in '$PLUGIN_ENABLED_PATH/*/commands'
remote: + set +e
remote: + /var/lib/dokku/plugins/enabled/git/commands git-hook cache-test
remote: + source /var/lib/dokku/plugins/available/git/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: ++ source /var/lib/dokku/core-plugins/available/common/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
remote: ++ source /var/lib/dokku/plugins/available/apps/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
remote: +++ source /var/lib/dokku/core-plugins/available/common/functions
remote: ++++ set -eo pipefail
remote: ++++ [[ -n 1 ]]
remote: ++++ set -x
remote: +++ source /var/lib/dokku/plugins/available/config/functions
remote: ++++ set -eo pipefail
remote: ++++ [[ -n 1 ]]
remote: ++++ set -x
remote: ++++ source /var/lib/dokku/core-plugins/available/common/functions
remote: +++++ set -eo pipefail
remote: +++++ [[ -n 1 ]]
remote: +++++ set -x
remote: ++ source /var/lib/dokku/plugins/available/config/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
remote: +++ source /var/lib/dokku/core-plugins/available/common/functions
remote: ++++ set -eo pipefail
remote: ++++ [[ -n 1 ]]
remote: ++++ set -x
remote: + case "$1" in
remote: + git_hook_cmd git-hook cache-test
remote: + declare 'desc=kick off receive-app trigger from git prereceive hook'
remote: + local cmd=git-hook
remote: + local APP=cache-test
remote: + local DOKKU_DEPLOY_BRANCH
remote: + is_valid_app_name cache-test
remote: + declare 'desc=verify app name format'
remote: + local APP=cache-test
remote: + [[ ! -n cache-test ]]
remote: + [[ cache-test =~ ^[a-z].* ]]
remote: + [[ ! cache-test =~ [A-Z] ]]
remote: + [[ ! cache-test =~ [:] ]]
remote: + return 0
remote: ++ git_deploy_branch cache-test
remote: ++ declare 'desc=retrieve the deploy branch for a given application'
remote: ++ local cmd=git-hook
remote: ++ local APP=cache-test
remote: +++ config_get cache-test DOKKU_DEPLOY_BRANCH
remote: +++ declare 'desc=get value of given config var'
remote: +++ config_sub get cache-test DOKKU_DEPLOY_BRANCH
remote: +++ declare 'desc=executes a config subcommand'
remote: +++ local name=get
remote: +++ shift
remote: +++ /var/lib/dokku/plugins/available/config/subcommands/get config:get cache-test DOKKU_DEPLOY_BRANCH
remote: +++ true
remote: ++ local DOKKU_DEPLOY_BRANCH=
remote: +++ config_get --global DOKKU_DEPLOY_BRANCH
remote: +++ declare 'desc=get value of given config var'
remote: +++ config_sub get --global DOKKU_DEPLOY_BRANCH
remote: +++ declare 'desc=executes a config subcommand'
remote: +++ local name=get
remote: +++ shift
remote: +++ /var/lib/dokku/plugins/available/config/subcommands/get config:get --global DOKKU_DEPLOY_BRANCH
remote: +++ true
remote: ++ local DOKKU_GLOBAL_DEPLOY_BRANCH=
remote: ++ [[ -n '' ]]
remote: ++ [[ -n '' ]]
remote: ++ echo master
remote: + DOKKU_DEPLOY_BRANCH=master
remote: + git check-ref-format --branch master
remote: + local oldrev newrev refname
remote: + read -r oldrev newrev refname
remote: + [[ refs/heads/master = \r\e\f\s\/\h\e\a\d\s\/\m\a\s\t\e\r ]]
remote: + git_receive_app cache-test 76f7025f7bd0ae00b7ba61539faac7961f46a111
remote: + declare 'desc=git receive-app plugin trigger'
remote: + declare APP=cache-test REV=76f7025f7bd0ae00b7ba61539faac7961f46a111
remote: + [[ ! -d /home/dokku/cache-test/refs ]]
remote: + acquire_app_deploy_lock cache-test exclusive
remote: + declare 'desc=acquire advisory lock for use in git/tar deploys'
remote: + local APP=cache-test
remote: + verify_app_name cache-test
remote: + declare 'desc=verify app name format and app existence'
remote: + local APP=cache-test
remote: + is_valid_app_name cache-test
remote: + declare 'desc=verify app name format'
remote: + local APP=cache-test
remote: + [[ ! -n cache-test ]]
remote: + [[ cache-test =~ ^[a-z].* ]]
remote: + [[ ! cache-test =~ [A-Z] ]]
remote: + [[ ! cache-test =~ [:] ]]
remote: + return 0
remote: + [[ ! -d /home/dokku/cache-test ]]
remote: + return 0
remote: + local LOCK_TYPE=exclusive
remote: + local APP_DEPLOY_LOCK_FD=200
remote: + local APP_DEPLOY_LOCK_FILE=/home/dokku/cache-test/.deploy.lock
remote: + local 'LOCK_WAITING_MSG=cache-test currently has a deploy lock in place. Waiting...'
remote: + local 'LOCK_FAILED_MSG=cache-test currently has a deploy lock in place. Exiting...'
remote: + local SHOW_MSG=true
remote: + eval 'exec 200>/home/dokku/cache-test/.deploy.lock'
remote: ++ exec
remote: + [[ exclusive == \w\a\i\t\i\n\g ]]
remote: + flock -n 200
remote: + git_build cache-test 76f7025f7bd0ae00b7ba61539faac7961f46a111
remote: + declare 'desc=setup and call git_build_app_repo'
remote: + local APP=cache-test
remote: + local DOKKU_DEPLOY_BRANCH REF
remote: + [[ 2 -ge 2 ]]
remote: + local REF=76f7025f7bd0ae00b7ba61539faac7961f46a111
remote: + git_build_app_repo cache-test 76f7025f7bd0ae00b7ba61539faac7961f46a111
remote: + declare 'desc=builds local git app repo for app'
remote: + declare APP=cache-test
remote: + local REV=76f7025f7bd0ae00b7ba61539faac7961f46a111
remote: + local DOKKU_GLOBAL_DISABLE_AUTOCREATE
remote: + verify_app_name cache-test
remote: + declare 'desc=verify app name format and app existence'
remote: + local APP=cache-test
remote: + is_valid_app_name cache-test
remote: + declare 'desc=verify app name format'
remote: + local APP=cache-test
remote: + [[ ! -n cache-test ]]
remote: + [[ cache-test =~ ^[a-z].* ]]
remote: + [[ ! cache-test =~ [A-Z] ]]
remote: + [[ ! cache-test =~ [:] ]]
remote: + return 0
remote: + [[ ! -d /home/dokku/cache-test ]]
remote: + return 0
remote: ++ mktemp -d /tmp/dokku_git.XXXX
remote: + local GIT_BUILD_APP_REPO_TMP_WORK_DIR=/tmp/dokku_git.4gBK
remote: + trap 'rm -rf "$GIT_BUILD_APP_REPO_TMP_WORK_DIR" > /dev/null' RETURN INT TERM EXIT
remote: + local TMP_TAG=dokku/76f7025f7bd0ae00b7ba61539faac7961f46a111
remote: + chmod 755 /tmp/dokku_git.4gBK
remote: + unset GIT_DIR GIT_WORK_TREE
remote: + [[ ! -d /home/dokku/cache-test ]]
remote: + use_git_worktree
remote: + declare 'desc=detects whether to use git worktree'
remote: + local GIT_VERSION MAJOR_VERSION MINOR_VERSION
remote: ++ awk '{split($0,a," "); print a[3]}'
remote: ++ git --version
remote: + GIT_VERSION=2.7.4
remote: ++ awk '{split($0,a,"."); print a[1]}'
remote: ++ echo 2.7.4
remote: + MAJOR_VERSION=2
remote: ++ awk '{split($0,a,"."); print a[2]}'
remote: ++ echo 2.7.4
remote: + MINOR_VERSION=7
remote: + [[ 2 -ge 3 ]]
remote: + [[ 2 -eq 2 ]]
remote: + [[ 7 -ge 11 ]]
remote: + return 1
remote: + pushd /tmp/dokku_git.4gBK
remote: + GIT_DIR=/home/dokku/cache-test
remote: + git tag -d dokku/76f7025f7bd0ae00b7ba61539faac7961f46a111
remote: + true
remote: + GIT_DIR=/home/dokku/cache-test
remote: + git tag dokku/76f7025f7bd0ae00b7ba61539faac7961f46a111 76f7025f7bd0ae00b7ba61539faac7961f46a111
remote: + git init
remote: + git config advice.detachedHead false
remote: + git remote add origin /home/dokku/cache-test
remote: + git fetch --depth=1 origin refs/tags/dokku/76f7025f7bd0ae00b7ba61539faac7961f46a111
remote: + git reset --hard FETCH_HEAD
remote: + GIT_DIR=/home/dokku/cache-test
remote: + git tag -d dokku/76f7025f7bd0ae00b7ba61539faac7961f46a111
remote: + suppress_output git submodule update --init --recursive
remote: + declare 'desc=suppress all output from a given command unless there is an error'
remote: + local TMP_COMMAND_OUTPUT
remote: ++ mktemp /tmp/suppress_output.XXXX
remote: + TMP_COMMAND_OUTPUT=/tmp/suppress_output.htJG
remote: + trap 'rm -rf "$TMP_COMMAND_OUTPUT" > /dev/null' RETURN INT TERM EXIT
remote: + git submodule update --init --recursive
remote: + return 0
remote: ++ rm -rf /tmp/suppress_output.htJG
remote: + find . -name .git -prune -exec rm -rf '{}' ';'
remote: + use_git_worktree
remote: + declare 'desc=detects whether to use git worktree'
remote: + local GIT_VERSION MAJOR_VERSION MINOR_VERSION
remote: ++ awk '{split($0,a," "); print a[3]}'
remote: ++ git --version
remote: + GIT_VERSION=2.7.4
remote: ++ awk '{split($0,a,"."); print a[1]}'
remote: ++ echo 2.7.4
remote: + MAJOR_VERSION=2
remote: ++ awk '{split($0,a,"."); print a[2]}'
remote: ++ echo 2.7.4
remote: + MINOR_VERSION=7
remote: + [[ 2 -ge 3 ]]
remote: + [[ 2 -eq 2 ]]
remote: + [[ 7 -ge 11 ]]
remote: + return 1
remote: + local DOKKU_APP_DISABLE_ANSI_PREFIX_REMOVAL DOKKU_GLOBAL_DISABLE_ANSI_PREFIX_REMOVAL DOKKU_DISABLE_ANSI_PREFIX_REMOVAL
remote: ++ config_get cache-test DOKKU_DISABLE_ANSI_PREFIX_REMOVAL
remote: ++ declare 'desc=get value of given config var'
remote: ++ config_sub get cache-test DOKKU_DISABLE_ANSI_PREFIX_REMOVAL
remote: ++ declare 'desc=executes a config subcommand'
remote: ++ local name=get
remote: ++ shift
remote: ++ /var/lib/dokku/plugins/available/config/subcommands/get config:get cache-test DOKKU_DISABLE_ANSI_PREFIX_REMOVAL
remote: ++ true
remote: + DOKKU_APP_DISABLE_ANSI_PREFIX_REMOVAL=
remote: ++ config_get --global DOKKU_DISABLE_ANSI_PREFIX_REMOVAL
remote: ++ declare 'desc=get value of given config var'
remote: ++ config_sub get --global DOKKU_DISABLE_ANSI_PREFIX_REMOVAL
remote: ++ declare 'desc=executes a config subcommand'
remote: ++ local name=get
remote: ++ shift
remote: ++ /var/lib/dokku/plugins/available/config/subcommands/get config:get --global DOKKU_DISABLE_ANSI_PREFIX_REMOVAL
remote: ++ true
remote: + DOKKU_GLOBAL_DISABLE_ANSI_PREFIX_REMOVAL=
remote: + DOKKU_DISABLE_ANSI_PREFIX_REMOVAL=
remote: + [[ '' == \t\r\u\e ]]
remote: + sed -u 's/^//'
remote: + git_trigger_build cache-test /tmp/dokku_git.4gBK 76f7025f7bd0ae00b7ba61539faac7961f46a111
remote: + declare 'desc=triggers the actual build process for a given app within a directory at a particular revision'
remote: + declare APP=cache-test TMP_WORK_DIR=/tmp/dokku_git.4gBK REV=76f7025f7bd0ae00b7ba61539faac7961f46a111
remote: + plugn trigger post-extract cache-test /tmp/dokku_git.4gBK 76f7025f7bd0ae00b7ba61539faac7961f46a111
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + [[ ! -n '' ]]
remote: + [[ -f Dockerfile ]]
remote: ++ [[ -f .env ]]
remote: ++ echo 1
remote: + [[ 1 != \0 ]]
remote: + [[ ! -f .buildpacks ]]
remote: ++ config_get cache-test BUILDPACK_URL
remote: ++ declare 'desc=get value of given config var'
remote: ++ config_sub get cache-test BUILDPACK_URL
remote: ++ declare 'desc=executes a config subcommand'
remote: ++ local name=get
remote: ++ shift
remote: ++ /var/lib/dokku/plugins/available/config/subcommands/get config:get cache-test BUILDPACK_URL
remote: ++ true
remote: + [[ -z '' ]]
remote: + plugn trigger pre-receive-app cache-test dockerfile /tmp/dokku_git.4gBK 76f7025f7bd0ae00b7ba61539faac7961f46a111
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + [[ ! -n '' ]]
remote: + dokku_receive cache-test dockerfile /tmp/dokku_git.4gBK
remote: + declare 'desc=receives an app kicks off deploy process'
remote: + source /var/lib/dokku/plugins/available/config/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: ++ source /var/lib/dokku/core-plugins/available/common/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
remote: + local APP=cache-test
remote: ++ get_app_image_name cache-test
remote: ++ declare 'desc=return image identifier for a given app, tag tuple. validate if tag is presented'
remote: ++ local APP=cache-test
remote: ++ local IMAGE_TAG=
remote: ++ IMAGE_REPO=
remote: ++ is_valid_app_name cache-test
remote: ++ declare 'desc=verify app name format'
remote: ++ local APP=cache-test
remote: ++ [[ ! -n cache-test ]]
remote: ++ [[ cache-test =~ ^[a-z].* ]]
remote: ++ [[ ! cache-test =~ [A-Z] ]]
remote: ++ [[ ! cache-test =~ [:] ]]
remote: ++ return 0
remote: ++ [[ -z '' ]]
remote: +++ get_app_image_repo cache-test
remote: +++ declare 'desc=central definition of image repo pattern'
remote: +++ local APP=cache-test
remote: +++ local IMAGE_REPO=dokku/cache-test
remote: +++ is_valid_app_name cache-test
remote: +++ declare 'desc=verify app name format'
remote: +++ local APP=cache-test
remote: +++ [[ ! -n cache-test ]]
remote: +++ [[ cache-test =~ ^[a-z].* ]]
remote: +++ [[ ! cache-test =~ [A-Z] ]]
remote: +++ [[ ! cache-test =~ [:] ]]
remote: +++ return 0
remote: +++ echo dokku/cache-test
remote: ++ IMAGE_REPO=dokku/cache-test
remote: ++ [[ -n '' ]]
remote: ++ local IMAGE=dokku/cache-test:latest
remote: ++ echo dokku/cache-test:latest
remote: + local IMAGE=dokku/cache-test:latest
remote: + local IMAGE_SOURCE_TYPE=dockerfile
remote: + local TMP_WORK_DIR=/tmp/dokku_git.4gBK
remote: ++ config_get cache-test DOKKU_SKIP_CLEANUP
remote: ++ declare 'desc=get value of given config var'
remote: ++ config_sub get cache-test DOKKU_SKIP_CLEANUP
remote: ++ declare 'desc=executes a config subcommand'
remote: ++ local name=get
remote: ++ shift
remote: ++ /var/lib/dokku/plugins/available/config/subcommands/get config:get cache-test DOKKU_SKIP_CLEANUP
remote: ++ true
remote: + local DOKKU_SKIP_CLEANUP=
remote: + docker_cleanup cache-test
remote: + declare 'desc=cleans up all exited/dead containers and removes all dangling images'
remote: + declare APP=cache-test FORCE_CLEANUP=
remote: + local DOKKU_APP_SKIP_CLEANUP
remote: + [[ '' != \t\r\u\e ]]
remote: + [[ -z cache-test ]]
remote: + [[ -n '' ]]
remote: + [[ -n '' ]]
remote: + dokku_log_info1 'Cleaning up...'
remote: + declare 'desc=log info1 formatter'
remote: + echo '-----> Cleaning up...'
remote: -----> Cleaning up...
remote: ++ docker ps -a -f status=exited -f label=dokku -q
remote: + docker rm
remote: + true
remote: ++ docker ps -a -f status=dead -f label=dokku -q
remote: + docker rm
remote: + true
remote: + dokku_log_info1 'Building cache-test from dockerfile...'
remote: + declare 'desc=log info1 formatter'
remote: + echo '-----> Building cache-test from dockerfile...'
remote: + config_set --no-restart cache-test DOKKU_APP_TYPE=dockerfile
remote: -----> Building cache-test from dockerfile...
remote: ++ docker images -f dangling=true -q
remote: + docker rmi c81c505a96ac
remote: + dokku_build cache-test dockerfile /tmp/dokku_git.4gBK
remote: + declare 'desc=build phase'
remote: + source /var/lib/dokku/plugins/available/config/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: ++ source /var/lib/dokku/core-plugins/available/common/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
remote: + local APP=cache-test
remote: + local IMAGE_SOURCE_TYPE=dockerfile
remote: + local TMP_WORK_DIR=/tmp/dokku_git.4gBK
remote: ++ get_app_image_name cache-test
remote: ++ declare 'desc=return image identifier for a given app, tag tuple. validate if tag is presented'
remote: ++ local APP=cache-test
remote: ++ local IMAGE_TAG=
remote: ++ IMAGE_REPO=
remote: ++ is_valid_app_name cache-test
remote: ++ declare 'desc=verify app name format'
remote: ++ local APP=cache-test
remote: ++ [[ ! -n cache-test ]]
remote: ++ [[ cache-test =~ ^[a-z].* ]]
remote: ++ [[ ! cache-test =~ [A-Z] ]]
remote: ++ [[ ! cache-test =~ [:] ]]
remote: ++ return 0
remote: ++ [[ -z '' ]]
remote: +++ get_app_image_repo cache-test
remote: +++ declare 'desc=central definition of image repo pattern'
remote: +++ local APP=cache-test
remote: +++ local IMAGE_REPO=dokku/cache-test
remote: +++ is_valid_app_name cache-test
remote: +++ declare 'desc=verify app name format'
remote: +++ local APP=cache-test
remote: +++ [[ ! -n cache-test ]]
remote: +++ [[ cache-test =~ ^[a-z].* ]]
remote: +++ [[ ! cache-test =~ [A-Z] ]]
remote: +++ [[ ! cache-test =~ [:] ]]
remote: +++ return 0
remote: +++ echo dokku/cache-test
remote: ++ IMAGE_REPO=dokku/cache-test
remote: ++ [[ -n '' ]]
remote: ++ local IMAGE=dokku/cache-test:latest
remote: ++ echo dokku/cache-test:latest
remote: + local IMAGE=dokku/cache-test:latest
remote: + local cid
remote: + verify_app_name cache-test
remote: + declare 'desc=verify app name format and app existence'
remote: + local APP=cache-test
remote: + is_valid_app_name cache-test
remote: + declare 'desc=verify app name format'
remote: + local APP=cache-test
remote: + [[ ! -n cache-test ]]
remote: + [[ cache-test =~ ^[a-z].* ]]
remote: + [[ ! cache-test =~ [A-Z] ]]
remote: + [[ ! cache-test =~ [:] ]]
remote: + return 0
remote: + [[ ! -d /home/dokku/cache-test ]]
remote: + return 0
remote: + local DOKKU_APP_CACHE_DIR=/home/dokku/cache-test/cache
remote: ++ config_export app cache-test
remote: ++ declare 'desc=returns export command for config variable of specified type (app/global)'
remote: ++ local CONFIG_TYPE=app
remote: ++ shift
remote: ++ local APP=cache-test
remote: ++ [[ app == \g\l\o\b\a\l ]]
remote: ++ shift
remote: ++ config_sub export cache-test
remote: ++ declare 'desc=executes a config subcommand'
remote: ++ local name=export
remote: ++ shift
remote: ++ /var/lib/dokku/plugins/available/config/subcommands/export config:export cache-test
remote: ++ return 0
remote: + eval 'export DOKKU_APP_TYPE='\''dockerfile'\'''
remote: ++ export DOKKU_APP_TYPE=dockerfile
remote: ++ DOKKU_APP_TYPE=dockerfile
remote: + pushd /tmp/dokku_git.4gBK
remote: + case "$IMAGE_SOURCE_TYPE" in
remote: ++ get_dockerfile_exposed_ports Dockerfile
remote: ++ declare 'desc=return all exposed ports from passed file path'
remote: +++ xargs
remote: +++ awk '{ print $2 }'
remote: +++ egrep '^EXPOSE ' Dockerfile
remote: ++ local DOCKERFILE_PORTS=80
remote: ++ echo 80
remote: + local DOCKERFILE_PORTS=80
remote: + [[ -n 80 ]]
remote: + config_set --no-restart cache-test DOKKU_DOCKERFILE_PORTS=80
remote: + declare 'desc=set value of given config var'
remote: + config_sub set --no-restart cache-test DOKKU_DOCKERFILE_PORTS=80
remote: + declare 'desc=executes a config subcommand'
remote: + local name=set
remote: + shift
remote: + /var/lib/dokku/plugins/available/config/subcommands/set config:set --no-restart cache-test DOKKU_DOCKERFILE_PORTS=80
remote: -----> Setting config vars
remote:  DOKKU_DOCKERFILE_PORTS: 80
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + [[ ! -n '' ]]
remote: ++ extract_directive_from_dockerfile Dockerfile ENTRYPOINT
remote: ++ declare 'desc=return requested directive from passed file path'
remote: ++ local FILE_PATH=Dockerfile
remote: ++ local SEARCH_STRING=ENTRYPOINT
remote: +++ tail -n1
remote: +++ egrep '^ENTRYPOINT ' Dockerfile
remote: ++ local FOUND_LINE=
remote: ++ echo ''
remote: + local DOCKERFILE_ENTRYPOINT=
remote: + [[ -n '' ]]
remote: ++ extract_directive_from_dockerfile Dockerfile CMD
remote: ++ declare 'desc=return requested directive from passed file path'
remote: ++ local FILE_PATH=Dockerfile
remote: ++ local SEARCH_STRING=CMD
remote: +++ tail -n1
remote: +++ egrep '^CMD ' Dockerfile
remote: ++ local 'FOUND_LINE=CMD ["/bin/ash", "-c", "sleep 12000000"]'
remote: ++ echo 'CMD ["/bin/ash", "-c", "sleep 12000000"]'
remote: + local 'DOCKERFILE_CMD=CMD ["/bin/ash", "-c", "sleep 12000000"]'
remote: + [[ -n CMD ["/bin/ash", "-c", "sleep 12000000"] ]]
remote: + config_set --no-restart cache-test 'DOKKU_DOCKERFILE_CMD=CMD ["/bin/ash", "-c", "sleep 12000000"]'
remote: + declare 'desc=set value of given config var'
remote: + config_sub set --no-restart cache-test 'DOKKU_DOCKERFILE_CMD=CMD ["/bin/ash", "-c", "sleep 12000000"]'
remote: + declare 'desc=executes a config subcommand'
remote: + local name=set
remote: + shift
remote: + /var/lib/dokku/plugins/available/config/subcommands/set config:set --no-restart cache-test 'DOKKU_DOCKERFILE_CMD=CMD ["/bin/ash", "-c", "sleep 12000000"]'
remote: -----> Setting config vars
remote:  DOKKU_DOCKERFILE_CMD: CMD ["/bin/ash", "-c", "sleep 12000000"]
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + [[ ! -n '' ]]
remote: + plugn trigger pre-build-dockerfile cache-test
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + [[ ! -n '' ]]
remote: + [[ '' == \f\a\l\s\e ]]
remote: ++ plugn trigger docker-args-build cache-test dockerfile
remote: ++ :
remote: + source /var/lib/dokku/plugins/available/config/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: ++ source /var/lib/dokku/core-plugins/available/common/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
remote: + app_user_docker_args cache-test dockerfile
remote: + local APP=cache-test
remote: + local STDIN
remote: + local DOKKU_APP_TYPE
remote: + local DOKKU_APP_USER
remote: ++ cat
remote: + STDIN=
remote: ++ config_get cache-test DOKKU_APP_TYPE
remote: ++ declare 'desc=get value of given config var'
remote: ++ config_sub get cache-test DOKKU_APP_TYPE
remote: ++ declare 'desc=executes a config subcommand'
remote: ++ local name=get
remote: ++ shift
remote: ++ /var/lib/dokku/plugins/available/config/subcommands/get config:get cache-test DOKKU_APP_TYPE
remote: + DOKKU_APP_TYPE=dockerfile
remote: ++ config_get cache-test DOKKU_APP_USER
remote: ++ declare 'desc=get value of given config var'
remote: ++ config_sub get cache-test DOKKU_APP_USER
remote: ++ declare 'desc=executes a config subcommand'
remote: ++ local name=get
remote: ++ shift
remote: ++ /var/lib/dokku/plugins/available/config/subcommands/get config:get cache-test DOKKU_APP_USER
remote: ++ true
remote: + DOKKU_APP_USER=
remote: + DOKKU_APP_USER=herokuishuser
remote: + [[ dockerfile == \h\e\r\o\k\u\i\s\h ]]
remote: + local docker_args=
remote: + echo -n ''
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + [[ ! -n '' ]]
remote: + docker_args cache-test dockerfile
remote: + declare 'desc=docker args plugin trigger'
remote: + local trigger=/var/lib/dokku/plugins/enabled/docker-options/docker-args-build
remote: ++ cat
remote: + local STDIN=
remote: + local APP=cache-test
remote: + local IMAGE_SOURCE_TYPE=dockerfile
remote: + case "$0" in
remote: + local PHASE=BUILD
remote: + local FILE_PREFIX=DOCKER_OPTIONS_
remote: + local PHASE_FILE_PATH=/home/dokku/cache-test/DOCKER_OPTIONS_BUILD
remote: + local output=
remote: + [[ -f /home/dokku/cache-test/DOCKER_OPTIONS_BUILD ]]
remote: + echo -n ''
remote: + local DOCKER_ARGS=
remote: ++ sed -e 's/--volume=[[:graph:]]\+[[:blank:]]\?//g' -e 's/-v[[:blank:]]\?[[:graph:]]\+[[:blank:]]\?//g'
remote: + local DOCKER_ARGS=
remote: + declare -a ARG_ARRAY
remote: + eval 'ARG_ARRAY=()'
remote: ++ ARG_ARRAY=()
remote: + docker build -t dokku/cache-test:latest .
remote: Sending build context to Docker daemon 2.048kB
remote:
remote:
remote: Step 1/8 : FROM alpine AS builder
remote:  ---> 3fd9065eaf02
remote: Step 2/8 : WORKDIR /app
remote:  ---> 3472ba96ed78
remote: Removing intermediate container fd94772f6406
remote: Step 3/8 : RUN echo "He" > ./some_file.txt
remote:  ---> Running in 8241703c0a47
remote:  ---> b6b70aef959e
remote: Removing intermediate container 8241703c0a47
remote: Step 4/8 : FROM alpine
remote:  ---> 3fd9065eaf02
remote: Step 5/8 : WORKDIR /app
remote:  ---> Using cache
remote:  ---> 3472ba96ed78
remote: Step 6/8 : COPY --from=builder /app/some_file.txt ./some_file.txt
remote:  ---> c61b0bcd5c3a
remote: Removing intermediate container e7e172535dae
remote: Step 7/8 : CMD /bin/ash -c sleep 12000000
remote:  ---> Running in 9412bb11eb80
remote:  ---> e620b460b10e
remote: Removing intermediate container 9412bb11eb80
remote: Step 8/8 : EXPOSE 80
remote:  ---> Running in 5660c4d88f09
remote:  ---> a1177ce8c01d
remote: Removing intermediate container 5660c4d88f09
remote: Successfully built a1177ce8c01d
remote: Successfully tagged dokku/cache-test:latest
remote: + plugn trigger post-build-dockerfile cache-test
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + [[ ! -n '' ]]
remote: + release_and_deploy cache-test
remote: + declare 'desc=main function for releasing and deploying an app'
remote: + source /var/lib/dokku/plugins/available/config/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: ++ source /var/lib/dokku/core-plugins/available/common/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
remote: + local APP=cache-test
remote: + local IMAGE_TAG=
remote: ++ get_app_image_name cache-test ''
remote: ++ declare 'desc=return image identifier for a given app, tag tuple. validate if tag is presented'
remote: ++ local APP=cache-test
remote: ++ local IMAGE_TAG=
remote: ++ IMAGE_REPO=
remote: ++ is_valid_app_name cache-test
remote: ++ declare 'desc=verify app name format'
remote: ++ local APP=cache-test
remote: ++ [[ ! -n cache-test ]]
remote: ++ [[ cache-test =~ ^[a-z].* ]]
remote: ++ [[ ! cache-test =~ [A-Z] ]]
remote: ++ [[ ! cache-test =~ [:] ]]
remote: ++ return 0
remote: ++ [[ -z '' ]]
remote: +++ get_app_image_repo cache-test
remote: +++ declare 'desc=central definition of image repo pattern'
remote: +++ local APP=cache-test
remote: +++ local IMAGE_REPO=dokku/cache-test
remote: +++ is_valid_app_name cache-test
remote: +++ declare 'desc=verify app name format'
remote: +++ local APP=cache-test
remote: +++ [[ ! -n cache-test ]]
remote: +++ [[ cache-test =~ ^[a-z].* ]]
remote: +++ [[ ! cache-test =~ [A-Z] ]]
remote: +++ [[ ! cache-test =~ [:] ]]
remote: +++ return 0
remote: +++ echo dokku/cache-test
remote: ++ IMAGE_REPO=dokku/cache-test
remote: ++ [[ -n '' ]]
remote: ++ local IMAGE=dokku/cache-test:latest
remote: ++ echo dokku/cache-test:latest
remote: + local IMAGE=dokku/cache-test:latest
remote: + local DOKKU_DOCKERFILE_PORTS
remote: + verify_app_name cache-test
remote: + declare 'desc=verify app name format and app existence'
remote: + local APP=cache-test
remote: + is_valid_app_name cache-test
remote: + declare 'desc=verify app name format'
remote: + local APP=cache-test
remote: + [[ ! -n cache-test ]]
remote: + [[ cache-test =~ ^[a-z].* ]]
remote: + [[ ! cache-test =~ [A-Z] ]]
remote: + [[ ! cache-test =~ [:] ]]
remote: + return 0
remote: + [[ ! -d /home/dokku/cache-test ]]
remote: + return 0
remote: + verify_image dokku/cache-test:latest
remote: + declare 'desc=verify image existence'
remote: + local IMAGE=dokku/cache-test:latest
remote: + docker inspect dokku/cache-test:latest
remote: + return 0
remote: + is_image_herokuish_based dokku/cache-test:latest
remote: + declare 'desc=returns true if app image is based on herokuish'
remote: + [[ ! -f /home/ubuntu/.circlerc ]]
remote: + local DOCKER_ARGS=--rm
remote: + docker run --label=dokku --entrypoint=/bin/sh --rm dokku/cache-test:latest -c 'test -f /exec'
remote: + local IMAGE_SOURCE_TYPE=dockerfile
remote: ++ config_get cache-test DOKKU_DOCKERFILE_PORTS
remote: ++ declare 'desc=get value of given config var'
remote: ++ config_sub get cache-test DOKKU_DOCKERFILE_PORTS
remote: ++ declare 'desc=executes a config subcommand'
remote: ++ local name=get
remote: ++ shift
remote: ++ /var/lib/dokku/plugins/available/config/subcommands/get config:get cache-test DOKKU_DOCKERFILE_PORTS
remote: + DOKKU_DOCKERFILE_PORTS=80
remote: + [[ -z 80 ]]
remote: ++ config_get cache-test DOKKU_SKIP_DEPLOY
remote: ++ declare 'desc=get value of given config var'
remote: ++ config_sub get cache-test DOKKU_SKIP_DEPLOY
remote: ++ declare 'desc=executes a config subcommand'
remote: ++ local name=get
remote: ++ shift
remote: ++ /var/lib/dokku/plugins/available/config/subcommands/get config:get cache-test DOKKU_SKIP_DEPLOY
remote: ++ true
remote: + local DOKKU_APP_SKIP_DEPLOY=
remote: ++ config_get --global DOKKU_SKIP_DEPLOY
remote: ++ declare 'desc=get value of given config var'
remote: ++ config_sub get --global DOKKU_SKIP_DEPLOY
remote: ++ declare 'desc=executes a config subcommand'
remote: ++ local name=get
remote: ++ shift
remote: ++ /var/lib/dokku/plugins/available/config/subcommands/get config:get --global DOKKU_SKIP_DEPLOY
remote: ++ true
remote: + local DOKKU_GLOBAL_SKIP_DEPLOY=
remote: + local DOKKU_SKIP_DEPLOY=
remote: + dokku_log_info1 'Releasing cache-test (dokku/cache-test:latest)...'
remote: + declare 'desc=log info1 formatter'
remote: + echo '-----> Releasing cache-test (dokku/cache-test:latest)...'
remote: + dokku_release cache-test dockerfile ''
remote: + declare 'desc=release phase'
remote: + source /var/lib/dokku/plugins/available/config/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: ++ source /var/lib/dokku/core-plugins/available/common/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
remote: -----> Releasing cache-test (dokku/cache-test:latest)...
remote: + local APP=cache-test
remote: + local IMAGE_SOURCE_TYPE=dockerfile
remote: + local IMAGE_TAG=
remote: ++ get_app_image_name cache-test ''
remote: ++ declare 'desc=return image identifier for a given app, tag tuple. validate if tag is presented'
remote: ++ local APP=cache-test
remote: ++ local IMAGE_TAG=
remote: ++ IMAGE_REPO=
remote: ++ is_valid_app_name cache-test
remote: ++ declare 'desc=verify app name format'
remote: ++ local APP=cache-test
remote: ++ [[ ! -n cache-test ]]
remote: ++ [[ cache-test =~ ^[a-z].* ]]
remote: ++ [[ ! cache-test =~ [A-Z] ]]
remote: ++ [[ ! cache-test =~ [:] ]]
remote: ++ return 0
remote: ++ [[ -z '' ]]
remote: +++ get_app_image_repo cache-test
remote: +++ declare 'desc=central definition of image repo pattern'
remote: +++ local APP=cache-test
remote: +++ local IMAGE_REPO=dokku/cache-test
remote: +++ is_valid_app_name cache-test
remote: +++ declare 'desc=verify app name format'
remote: +++ local APP=cache-test
remote: +++ [[ ! -n cache-test ]]
remote: +++ [[ cache-test =~ ^[a-z].* ]]
remote: +++ [[ ! cache-test =~ [A-Z] ]]
remote: +++ [[ ! cache-test =~ [:] ]]
remote: +++ return 0
remote: +++ echo dokku/cache-test
remote: ++ IMAGE_REPO=dokku/cache-test
remote: ++ [[ -n '' ]]
remote: ++ local IMAGE=dokku/cache-test:latest
remote: ++ echo dokku/cache-test:latest
remote: + local IMAGE=dokku/cache-test:latest
remote: + local cid
remote: + verify_app_name cache-test
remote: + declare 'desc=verify app name format and app existence'
remote: + local APP=cache-test
remote: + is_valid_app_name cache-test
remote: + declare 'desc=verify app name format'
remote: + local APP=cache-test
remote: + [[ ! -n cache-test ]]
remote: + [[ cache-test =~ ^[a-z].* ]]
remote: + [[ ! cache-test =~ [A-Z] ]]
remote: + [[ ! cache-test =~ [:] ]]
remote: + return 0
remote: + [[ ! -d /home/dokku/cache-test ]]
remote: + return 0
remote: + case "$IMAGE_SOURCE_TYPE" in
remote: + plugn trigger pre-release-dockerfile cache-test ''
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + [[ ! -n '' ]]
remote: + plugn trigger post-release-dockerfile cache-test ''
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + [[ ! -n '' ]]
remote: + [[ '' != \t\r\u\e ]]
remote: + dokku_log_info1 'Deploying cache-test (dokku/cache-test:latest)...'
remote: + declare 'desc=log info1 formatter'
remote: + echo '-----> Deploying cache-test (dokku/cache-test:latest)...'
remote: + dokku_deploy_cmd cache-test ''
remote: + declare 'desc=deploy phase'
remote: + local cmd=deploy
remote: + source /var/lib/dokku/plugins/available/checks/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: ++ source /var/lib/dokku/core-plugins/available/common/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
remote: -----> Deploying cache-test (dokku/cache-test:latest)...
remote: ++ source /var/lib/dokku/plugins/available/config/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
remote: +++ source /var/lib/dokku/core-plugins/available/common/functions
remote: ++++ set -eo pipefail
remote: ++++ [[ -n 1 ]]
remote: ++++ set -x
remote: + source /var/lib/dokku/plugins/available/config/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: ++ source /var/lib/dokku/core-plugins/available/common/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
remote: + [[ -z cache-test ]]
remote: + local APP=cache-test IMAGE_TAG=
remote: + local DOKKU_DOCKER_STOP_TIMEOUT DOKKU_HEROKUISH DOKKU_NETWORK_BIND_ALL IMAGE
remote: + DOKKU_HEROKUISH=false
remote: ++ get_deploying_app_image_name cache-test ''
remote: ++ declare 'desc=return deploying image identifier for a given app, tag tuple. validate if tag is presented'
remote: ++ local APP=cache-test
remote: ++ local IMAGE_TAG=
remote: ++ IMAGE_REPO=
remote: ++ is_valid_app_name cache-test
remote: ++ declare 'desc=verify app name format'
remote: ++ local APP=cache-test
remote: ++ [[ ! -n cache-test ]]
remote: ++ [[ cache-test =~ ^[a-z].* ]]
remote: ++ [[ ! cache-test =~ [A-Z] ]]
remote: ++ [[ ! cache-test =~ [:] ]]
remote: ++ return 0
remote: +++ plugn trigger deployed-app-repository cache-test
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + [[ ! -n '' ]]
remote: ++ local IMAGE_REMOTE_REPOSITORY=
remote: +++ plugn trigger deployed-app-image-tag cache-test
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + [[ ! -n '' ]]
remote: ++ local NEW_IMAGE_TAG=
remote: +++ plugn trigger deployed-app-image-repo cache-test
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + [[ ! -n '' ]]
remote: ++ local NEW_IMAGE_REPO=
remote: ++ [[ -n '' ]]
remote: ++ [[ -n '' ]]
remote: ++ [[ -z '' ]]
remote: +++ get_app_image_repo cache-test
remote: +++ declare 'desc=central definition of image repo pattern'
remote: +++ local APP=cache-test
remote: +++ local IMAGE_REPO=dokku/cache-test
remote: +++ is_valid_app_name cache-test
remote: +++ declare 'desc=verify app name format'
remote: +++ local APP=cache-test
remote: +++ [[ ! -n cache-test ]]
remote: +++ [[ cache-test =~ ^[a-z].* ]]
remote: +++ [[ ! cache-test =~ [A-Z] ]]
remote: +++ [[ ! cache-test =~ [:] ]]
remote: +++ return 0
remote: +++ echo dokku/cache-test
remote: ++ IMAGE_REPO=dokku/cache-test
remote: ++ [[ -z '' ]]
remote: ++ IMAGE_TAG=latest
remote: ++ local IMAGE=dokku/cache-test:latest
remote: ++ verify_image dokku/cache-test:latest
remote: ++ declare 'desc=verify image existence'
remote: ++ local IMAGE=dokku/cache-test:latest
remote: ++ docker inspect dokku/cache-test:latest
remote: ++ return 0
remote: ++ echo dokku/cache-test:latest
remote: + IMAGE=dokku/cache-test:latest
remote: + verify_app_name cache-test
remote: + declare 'desc=verify app name format and app existence'
remote: + local APP=cache-test
remote: + is_valid_app_name cache-test
remote: + declare 'desc=verify app name format'
remote: + local APP=cache-test
remote: + [[ ! -n cache-test ]]
remote: + [[ cache-test =~ ^[a-z].* ]]
remote: + [[ ! cache-test =~ [A-Z] ]]
remote: + [[ ! cache-test =~ [:] ]]
remote: + return 0
remote: + [[ ! -d /home/dokku/cache-test ]]
remote: + return 0
remote: + plugn trigger pre-deploy cache-test ''
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + source /var/lib/dokku/core-plugins/available/00_dokku-standard/exec-app-json-scripts
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: ++ source /var/lib/dokku/core-plugins/available/common/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
remote: ++ source /var/lib/dokku/plugins/available/config/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
remote: +++ source /var/lib/dokku/core-plugins/available/common/functions
remote: ++++ set -eo pipefail
remote: ++++ [[ -n 1 ]]
remote: ++++ set -x
remote: + source /var/lib/dokku/plugins/available/config/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: ++ source /var/lib/dokku/core-plugins/available/common/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
remote: + exec_app_json_scripts cache-test ''
remote: + declare 'desc=core app.json scripts execution'
remote: + local 'trigger=pre-deploy app_json_scripts'
remote: + local APP=cache-test
remote: + local IMAGE_TAG=
remote: + local PHASE_SCRIPT_KEY=predeploy
remote: + dokku_log_info1 'Attempting to run scripts.dokku.predeploy from app.json (if defined)'
remote: + declare 'desc=log info1 formatter'
remote: + echo '-----> Attempting to run scripts.dokku.predeploy from app.json (if defined)'
remote: -----> Attempting to run scripts.dokku.predeploy from app.json (if defined)
remote: + execute_script cache-test '' predeploy
remote: + declare 'desc=executes appropriate phase script key from app.json'
remote: + local APP=cache-test
remote: + local IMAGE_TAG=
remote: + local PHASE_SCRIPT_KEY=predeploy
remote: + local IMAGE id
remote: ++ get_deploying_app_image_name cache-test ''
remote: ++ declare 'desc=return deploying image identifier for a given app, tag tuple. validate if tag is presented'
remote: ++ local APP=cache-test
remote: ++ local IMAGE_TAG=
remote: ++ IMAGE_REPO=
remote: ++ is_valid_app_name cache-test
remote: ++ declare 'desc=verify app name format'
remote: ++ local APP=cache-test
remote: ++ [[ ! -n cache-test ]]
remote: ++ [[ cache-test =~ ^[a-z].* ]]
remote: ++ [[ ! cache-test =~ [A-Z] ]]
remote: ++ [[ ! cache-test =~ [:] ]]
remote: ++ return 0
remote: +++ plugn trigger deployed-app-repository cache-test
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + [[ ! -n '' ]]
remote: ++ local IMAGE_REMOTE_REPOSITORY=
remote: +++ plugn trigger deployed-app-image-tag cache-test
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + [[ ! -n '' ]]
remote: ++ local NEW_IMAGE_TAG=
remote: +++ plugn trigger deployed-app-image-repo cache-test
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + [[ ! -n '' ]]
remote: ++ local NEW_IMAGE_REPO=
remote: ++ [[ -n '' ]]
remote: ++ [[ -n '' ]]
remote: ++ [[ -z '' ]]
remote: +++ get_app_image_repo cache-test
remote: +++ declare 'desc=central definition of image repo pattern'
remote: +++ local APP=cache-test
remote: +++ local IMAGE_REPO=dokku/cache-test
remote: +++ is_valid_app_name cache-test
remote: +++ declare 'desc=verify app name format'
remote: +++ local APP=cache-test
remote: +++ [[ ! -n cache-test ]]
remote: +++ [[ cache-test =~ ^[a-z].* ]]
remote: +++ [[ ! cache-test =~ [A-Z] ]]
remote: +++ [[ ! cache-test =~ [:] ]]
remote: +++ return 0
remote: +++ echo dokku/cache-test
remote: ++ IMAGE_REPO=dokku/cache-test
remote: ++ [[ -z '' ]]
remote: ++ IMAGE_TAG=latest
remote: ++ local IMAGE=dokku/cache-test:latest
remote: ++ verify_image dokku/cache-test:latest
remote: ++ declare 'desc=verify image existence'
remote: ++ local IMAGE=dokku/cache-test:latest
remote: ++ docker inspect dokku/cache-test:latest
remote: ++ return 0
remote: ++ echo dokku/cache-test:latest
remote: + IMAGE=dokku/cache-test:latest
remote: ++ get_phase_script dokku/cache-test:latest predeploy
remote: + local SCRIPT_CMD=
remote: + [[ -n '' ]]
remote: + app_user_pre_deploy_trigger cache-test ''
remote: + local 'desc=app user pre-deploy trigger'
remote: + local APP=cache-test
remote: + local IMAGE_TAG=
remote: + local IMAGE
remote: + local DOCKER_ARGS
remote: + local DOKKU_APP_TYPE DOKKU_APP_USER APP_PATHS CONTAINER_PATHS
remote: + declare -a ARG_ARRAY
remote: ++ get_app_image_name cache-test ''
remote: ++ declare 'desc=return image identifier for a given app, tag tuple. validate if tag is presented'
remote: ++ local APP=cache-test
remote: ++ local IMAGE_TAG=
remote: ++ IMAGE_REPO=
remote: ++ is_valid_app_name cache-test
remote: ++ declare 'desc=verify app name format'
remote: ++ local APP=cache-test
remote: ++ [[ ! -n cache-test ]]
remote: ++ [[ cache-test =~ ^[a-z].* ]]
remote: ++ [[ ! cache-test =~ [A-Z] ]]
remote: ++ [[ ! cache-test =~ [:] ]]
remote: ++ return 0
remote: ++ [[ -z '' ]]
remote: +++ get_app_image_repo cache-test
remote: +++ declare 'desc=central definition of image repo pattern'
remote: +++ local APP=cache-test
remote: +++ local IMAGE_REPO=dokku/cache-test
remote: +++ is_valid_app_name cache-test
remote: +++ declare 'desc=verify app name format'
remote: +++ local APP=cache-test
remote: +++ [[ ! -n cache-test ]]
remote: +++ [[ cache-test =~ ^[a-z].* ]]
remote: +++ [[ ! cache-test =~ [A-Z] ]]
remote: +++ [[ ! cache-test =~ [:] ]]
remote: +++ return 0
remote: +++ echo dokku/cache-test
remote: ++ IMAGE_REPO=dokku/cache-test
remote: ++ [[ -n '' ]]
remote: ++ local IMAGE=dokku/cache-test:latest
remote: ++ echo dokku/cache-test:latest
remote: + IMAGE=dokku/cache-test:latest
remote: ++ config_get cache-test DOKKU_APP_TYPE
remote: ++ declare 'desc=get value of given config var'
remote: ++ config_sub get cache-test DOKKU_APP_TYPE
remote: ++ declare 'desc=executes a config subcommand'
remote: ++ local name=get
remote: ++ shift
remote: ++ /var/lib/dokku/plugins/available/config/subcommands/get config:get cache-test DOKKU_APP_TYPE
remote: + DOKKU_APP_TYPE=dockerfile
remote: ++ config_get cache-test DOKKU_APP_USER
remote: ++ declare 'desc=get value of given config var'
remote: ++ config_sub get cache-test DOKKU_APP_USER
remote: ++ declare 'desc=executes a config subcommand'
remote: ++ local name=get
remote: ++ shift
remote: ++ /var/lib/dokku/plugins/available/config/subcommands/get config:get cache-test DOKKU_APP_USER
remote: ++ true
remote: + DOKKU_APP_USER=
remote: + DOKKU_APP_USER=herokuishuser
remote: ++ dokku --quiet storage:list cache-test
remote: + export DOKKU_DISTRO
remote: ++ . /etc/os-release
remote: ++ echo ubuntu
remote: + DOKKU_DISTRO=ubuntu
remote: + export DOKKU_IMAGE=gliderlabs/herokuish
remote: + DOKKU_IMAGE=gliderlabs/herokuish
remote: + export DOKKU_LIB_ROOT=/var/lib/dokku
remote: + DOKKU_LIB_ROOT=/var/lib/dokku
remote: + export PLUGIN_PATH=/var/lib/dokku/plugins
remote: + PLUGIN_PATH=/var/lib/dokku/plugins
remote: + export PLUGIN_AVAILABLE_PATH=/var/lib/dokku/plugins/available
remote: + PLUGIN_AVAILABLE_PATH=/var/lib/dokku/plugins/available
remote: + export PLUGIN_ENABLED_PATH=/var/lib/dokku/plugins/enabled
remote: + PLUGIN_ENABLED_PATH=/var/lib/dokku/plugins/enabled
remote: + export PLUGIN_CORE_PATH=/var/lib/dokku/core-plugins
remote: + PLUGIN_CORE_PATH=/var/lib/dokku/core-plugins
remote: + export PLUGIN_CORE_AVAILABLE_PATH=/var/lib/dokku/core-plugins/available
remote: + PLUGIN_CORE_AVAILABLE_PATH=/var/lib/dokku/core-plugins/available
remote: + export PLUGIN_CORE_ENABLED_PATH=/var/lib/dokku/core-plugins/enabled
remote: + PLUGIN_CORE_ENABLED_PATH=/var/lib/dokku/core-plugins/enabled
remote: + export DOKKU_API_VERSION=1
remote: + DOKKU_API_VERSION=1
remote: + export DOKKU_NOT_IMPLEMENTED_EXIT=10
remote: + DOKKU_NOT_IMPLEMENTED_EXIT=10
remote: + export DOKKU_VALID_EXIT=0
remote: + DOKKU_VALID_EXIT=0
remote: + export DOKKU_LOGS_DIR=/var/log/dokku
remote: + DOKKU_LOGS_DIR=/var/log/dokku
remote: + export DOKKU_EVENTS_LOGFILE=/var/log/dokku/events.log
remote: + DOKKU_EVENTS_LOGFILE=/var/log/dokku/events.log
remote: + export DOKKU_CONTAINER_LABEL=dokku
remote: + DOKKU_CONTAINER_LABEL=dokku
remote: + export DOKKU_GLOBAL_RUN_ARGS=--label=dokku
remote: + DOKKU_GLOBAL_RUN_ARGS=--label=dokku
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + parse_args --quiet storage:list cache-test
remote: + declare 'desc=top-level cli arg parser'
remote: + local next_index=1
remote: + local skip=false
remote: + args=("$@")
remote: + local args
remote: + for arg in '"$@"'
remote: + [[ false == \t\r\u\e ]]
remote: + case "$arg" in
remote: + export DOKKU_QUIET_OUTPUT=1
remote: + DOKKU_QUIET_OUTPUT=1
remote: + next_index=2
remote: + for arg in '"$@"'
remote: + [[ false == \t\r\u\e ]]
remote: + case "$arg" in
remote: + next_index=3
remote: + for arg in '"$@"'
remote: + [[ false == \t\r\u\e ]]
remote: + case "$arg" in
remote: + next_index=4
remote: + return 0
remote: + args=("$@")
remote: + skip_arg=false
remote: + [[ --quiet =~ ^--.* ]]
remote: + for arg in '"$@"'
remote: + false
remote: + [[ --quiet == \-\-\a\p\p ]]
remote: + [[ --quiet =~ ^--.* ]]
remote: + shift 1
remote: + for arg in '"$@"'
remote: + false
remote: + [[ storage:list == \-\-\a\p\p ]]
remote: + [[ storage:list =~ ^--.* ]]
remote: + break
remote: + has_tty
remote: + declare 'desc=return 0 if we have a tty'
remote: ++ /usr/bin/tty
remote: ++ true
remote: + [[ not a tty == \n\o\t\ \a\ \t\t\y ]]
remote: + return 1
remote: + DOKKU_QUIET_OUTPUT=1
remote: ++ id -un
remote: + [[ dokku != \d\o\k\k\u ]]
remote: + [[ storage:list =~ ^plugin:.* ]]
remote: + [[ storage:list == \s\s\h\-\k\e\y\s\:\a\d\d ]]
remote: + [[ -n '' ]]
remote: + dokku_auth storage:list cache-test
remote: + declare 'desc=calls user-auth plugin trigger'
remote: + export SSH_USER=dokku
remote: + SSH_USER=dokku
remote: + export SSH_NAME=lenin
remote: + SSH_NAME=lenin
remote: + plugn trigger user-auth dokku lenin storage:list cache-test
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + [[ ! -n '' ]]
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + [[ storage:list =~ (ssh-keys:add|ssh-keys:remove) ]]
remote: + return 0
remote: + case "$1" in
remote: + execute_dokku_cmd storage:list cache-test
remote: + declare 'desc=executes dokku sub-commands'
remote: + local PLUGIN_NAME=storage:list
remote: + local PLUGIN_CMD=storage:list
remote: + local implemented=0
remote: + local script
remote: + argv=("$@")
remote: + local argv
remote: + case "$PLUGIN_NAME" in
remote: ++ readlink -f /var/lib/dokku/plugins/enabled/storage
remote: + [[ /var/lib/dokku/core-plugins/available/storage == *core-plugins* ]]
remote: + [[ storage:list == \s\t\o\r\a\g\e\:\l\i\s\t ]]
remote: + shift 1
remote: + [[ ! -z '' ]]
remote: + set -- storage:list cache-test
remote: + [[ -x /var/lib/dokku/plugins/enabled/storage:list/subcommands/default ]]
remote: + [[ -x /var/lib/dokku/plugins/enabled/storage:list/subcommands/storage:list ]]
remote: + [[ -x /var/lib/dokku/plugins/enabled/storage/subcommands/list ]]
remote: + [[ -n list ]]
remote: + /var/lib/dokku/plugins/enabled/storage/subcommands/list storage:list cache-test
remote: + source /var/lib/dokku/plugins/available/storage/internal-functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: ++ source /var/lib/dokku/core-plugins/available/common/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
remote: ++ source /var/lib/dokku/plugins/available/docker-options/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
remote: +++ source /var/lib/dokku/core-plugins/available/common/functions
remote: ++++ set -eo pipefail
remote: ++++ [[ -n 1 ]]
remote: ++++ set -x
remote: +++ AVAILABLE_PHASES=(build deploy run)
remote: ++ source /var/lib/dokku/plugins/available/storage/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
remote: +++ source /var/lib/dokku/core-plugins/available/common/functions
remote: ++++ set -eo pipefail
remote: ++++ [[ -n 1 ]]
remote: ++++ set -x
remote: +++ source /var/lib/dokku/plugins/available/docker-options/functions
remote: ++++ set -eo pipefail
remote: ++++ [[ -n 1 ]]
remote: ++++ set -x
remote: ++++ source /var/lib/dokku/core-plugins/available/common/functions
remote: +++++ set -eo pipefail
remote: +++++ [[ -n 1 ]]
remote: +++++ set -x
remote: ++++ AVAILABLE_PHASES=(build deploy run)
remote: + storage_list_cmd storage:list cache-test
remote: + declare 'desc=List all bound mounts'
remote: + local cmd=storage:list
remote: + local passed_phases=deploy
remote: + [[ -z cache-test ]]
remote: + verify_app_name cache-test
remote: + declare 'desc=verify app name format and app existence'
remote: + local APP=cache-test
remote: + is_valid_app_name cache-test
remote: + declare 'desc=verify app name format'
remote: + local APP=cache-test
remote: + [[ ! -n cache-test ]]
remote: + [[ cache-test =~ ^[a-z].* ]]
remote: + [[ ! cache-test =~ [A-Z] ]]
remote: + [[ ! cache-test =~ [:] ]]
remote: + return 0
remote: + [[ ! -d /home/dokku/cache-test ]]
remote: + return 0
remote: + local APP=cache-test
remote: + echo 'cache-test volume bind-mounts:'
remote: ++ get_phase_file_path deploy
remote: ++ declare 'desc=return docker-options config file path for specified phase'
remote: ++ local phase_file_prefix=DOCKER_OPTIONS_
remote: ++ local phase=deploy
remote: ++ [[ -n cache-test ]]
remote: ++ [[ -n deploy ]]
remote: ++ fn-get-phase-file-path cache-test deploy
remote: ++ declare 'desc=return docker-options config file path for specified phase'
remote: ++ local APP=cache-test PHASE=deploy
remote: ++ local PHASE_FILE=/home/dokku/cache-test/DOCKER_OPTIONS_DEPLOY
remote: ++ echo /home/dokku/cache-test/DOCKER_OPTIONS_DEPLOY
remote: + get_bind_mounts /home/dokku/cache-test/DOCKER_OPTIONS_DEPLOY
remote: + declare 'desc=strips docker options and prints mounts'
remote: + local -r phase_file_path=/home/dokku/cache-test/DOCKER_OPTIONS_DEPLOY
remote: + [[ -r /home/dokku/cache-test/DOCKER_OPTIONS_DEPLOY ]]
remote: + sed -e '/^-v/!d' -e 's/^-v/ /'
remote: + implemented=1
remote: + [[ 1 -eq 0 ]]
remote: + [[ 1 -eq 0 ]]
remote: + APP_PATHS='cache-test volume bind-mounts:'
remote: + [[ -n cache-test volume bind-mounts: ]]
remote: ++ xargs
remote: ++ awk -F : '{ print $2 }'
remote: ++ echo 'cache-test volume bind-mounts:'
remote: + CONTAINER_PATHS=
remote: ++ plugn trigger docker-args-deploy cache-test ''
remote: ++ :
remote: + source /var/lib/dokku/plugins/available/config/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: ++ source /var/lib/dokku/core-plugins/available/common/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
remote: + app_user_docker_args cache-test ''
remote: + local APP=cache-test
remote: + local STDIN
remote: + local DOKKU_APP_TYPE
remote: + local DOKKU_APP_USER
remote: ++ cat
remote: + STDIN=
remote: ++ config_get cache-test DOKKU_APP_TYPE
remote: ++ declare 'desc=get value of given config var'
remote: ++ config_sub get cache-test DOKKU_APP_TYPE
remote: ++ declare 'desc=executes a config subcommand'
remote: ++ local name=get
remote: ++ shift
remote: ++ /var/lib/dokku/plugins/available/config/subcommands/get config:get cache-test DOKKU_APP_TYPE
remote: + DOKKU_APP_TYPE=dockerfile
remote: ++ config_get cache-test DOKKU_APP_USER
remote: ++ declare 'desc=get value of given config var'
remote: ++ config_sub get cache-test DOKKU_APP_USER
remote: ++ declare 'desc=executes a config subcommand'
remote: ++ local name=get
remote: ++ shift
remote: ++ /var/lib/dokku/plugins/available/config/subcommands/get config:get cache-test DOKKU_APP_USER
remote: ++ true
remote: + DOKKU_APP_USER=
remote: + DOKKU_APP_USER=herokuishuser
remote: + [[ dockerfile == \h\e\r\o\k\u\i\s\h ]]
remote: + local docker_args=
remote: + echo -n ''
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + [[ ! -n '' ]]
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + source /var/lib/dokku/plugins/available/config/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: ++ source /var/lib/dokku/core-plugins/available/common/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
remote: + config_docker_args cache-test ''
remote: + declare 'desc=config docker-args plugin trigger'
remote: + declare APP=cache-test IMAGE_TAG=
remote: + local ENV_ARGS IMAGE STDIN trigger
remote: ++ get_deploying_app_image_name cache-test ''
remote: ++ declare 'desc=return deploying image identifier for a given app, tag tuple. validate if tag is presented'
remote: ++ local APP=cache-test
remote: ++ local IMAGE_TAG=
remote: ++ IMAGE_REPO=
remote: ++ is_valid_app_name cache-test
remote: ++ declare 'desc=verify app name format'
remote: ++ local APP=cache-test
remote: ++ [[ ! -n cache-test ]]
remote: ++ [[ cache-test =~ ^[a-z].* ]]
remote: ++ [[ ! cache-test =~ [A-Z] ]]
remote: ++ [[ ! cache-test =~ [:] ]]
remote: ++ return 0
remote: +++ plugn trigger deployed-app-repository cache-test
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + [[ ! -n '' ]]
remote: ++ local IMAGE_REMOTE_REPOSITORY=
remote: +++ plugn trigger deployed-app-image-tag cache-test
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + [[ ! -n '' ]]
remote: ++ local NEW_IMAGE_TAG=
remote: +++ plugn trigger deployed-app-image-repo cache-test
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + [[ ! -n '' ]]
remote: ++ local NEW_IMAGE_REPO=
remote: ++ [[ -n '' ]]
remote: ++ [[ -n '' ]]
remote: ++ [[ -z '' ]]
remote: +++ get_app_image_repo cache-test
remote: +++ declare 'desc=central definition of image repo pattern'
remote: +++ local APP=cache-test
remote: +++ local IMAGE_REPO=dokku/cache-test
remote: +++ is_valid_app_name cache-test
remote: +++ declare 'desc=verify app name format'
remote: +++ local APP=cache-test
remote: +++ [[ ! -n cache-test ]]
remote: +++ [[ cache-test =~ ^[a-z].* ]]
remote: +++ [[ ! cache-test =~ [A-Z] ]]
remote: +++ [[ ! cache-test =~ [:] ]]
remote: +++ return 0
remote: +++ echo dokku/cache-test
remote: ++ IMAGE_REPO=dokku/cache-test
remote: ++ [[ -z '' ]]
remote: ++ IMAGE_TAG=latest
remote: ++ local IMAGE=dokku/cache-test:latest
remote: ++ verify_image dokku/cache-test:latest
remote: ++ declare 'desc=verify image existence'
remote: ++ local IMAGE=dokku/cache-test:latest
remote: ++ docker inspect dokku/cache-test:latest
remote: ++ return 0
remote: ++ echo dokku/cache-test:latest
remote: + IMAGE=dokku/cache-test:latest
remote: ++ cat
remote: + STDIN=
remote: + trigger='/var/lib/dokku/plugins/enabled/config/docker-args-deploy config_docker_args'
remote: + verify_app_name cache-test
remote: + declare 'desc=verify app name format and app existence'
remote: + local APP=cache-test
remote: + is_valid_app_name cache-test
remote: + declare 'desc=verify app name format'
remote: + local APP=cache-test
remote: + [[ ! -n cache-test ]]
remote: + [[ cache-test =~ ^[a-z].* ]]
remote: + [[ ! cache-test =~ [A-Z] ]]
remote: + [[ ! cache-test =~ [:] ]]
remote: + return 0
remote: + [[ ! -d /home/dokku/cache-test ]]
remote: + return 0
remote: + is_image_herokuish_based dokku/cache-test:latest
remote: + declare 'desc=returns true if app image is based on herokuish'
remote: + [[ ! -f /home/ubuntu/.circlerc ]]
remote: + local DOCKER_ARGS=--rm
remote: + docker run --label=dokku --entrypoint=/bin/sh --rm dokku/cache-test:latest -c 'test -f /exec'
remote: ++ config_export app cache-test --format docker-args --merged
remote: ++ declare 'desc=returns export command for config variable of specified type (app/global)'
remote: ++ local CONFIG_TYPE=app
remote: ++ shift
remote: ++ local APP=cache-test
remote: ++ [[ app == \g\l\o\b\a\l ]]
remote: ++ shift
remote: ++ config_sub export --format docker-args --merged cache-test
remote: ++ declare 'desc=executes a config subcommand'
remote: ++ local name=export
remote: ++ shift
remote: ++ /var/lib/dokku/plugins/available/config/subcommands/export config:export --format docker-args --merged cache-test
remote: ++ return 0
remote: + ENV_ARGS='--env=DOKKU_APP_TYPE='\''dockerfile'\'' --env=DOKKU_DOCKERFILE_CMD='\''CMD ["/bin/ash", "-c", "sleep 12000000"]'\'' --env=DOKKU_DOCKERFILE_PORTS='\''80'\'''
remote: + echo -n ' --env=DOKKU_APP_TYPE='\''dockerfile'\'' --env=DOKKU_DOCKERFILE_CMD='\''CMD ["/bin/ash", "-c", "sleep 12000000"]'\'' --env=DOKKU_DOCKERFILE_PORTS='\''80'\'''
remote: + docker_args cache-test ''
remote: + declare 'desc=docker args plugin trigger'
remote: + local trigger=/var/lib/dokku/plugins/enabled/docker-options/docker-args-deploy
remote: ++ cat
remote: + local STDIN=
remote: + local APP=cache-test
remote: + local IMAGE_SOURCE_TYPE=
remote: + case "$0" in
remote: + local PHASE=DEPLOY
remote: + local FILE_PREFIX=DOCKER_OPTIONS_
remote: + local PHASE_FILE_PATH=/home/dokku/cache-test/DOCKER_OPTIONS_DEPLOY
remote: + local output=
remote: + [[ -f /home/dokku/cache-test/DOCKER_OPTIONS_DEPLOY ]]
remote: + local DONE=false
remote: + false
remote: + local line
remote: + read -r line
remote: + [[ ! -n --restart=on-failure:10 ]]
remote: + case "$line" in
remote: + case "$IMAGE_SOURCE_TYPE" in
remote: + local 'output= --restart=on-failure:10'
remote: + false
remote: + local line
remote: + read -r line
remote: + local DONE=true
remote: + [[ ! -n '' ]]
remote: + continue
remote: + true
remote: + echo -n ' --restart=on-failure:10'
remote: + DOCKER_ARGS=' --env=DOKKU_APP_TYPE='\''dockerfile'\'' --env=DOKKU_DOCKERFILE_CMD='\''CMD ["/bin/ash", "-c", "sleep 12000000"]'\'' --env=DOKKU_DOCKERFILE_PORTS='\''80'\'' --restart=on-failure:10'
remote: ++ sed -e 's/--restart=[[:graph:]]\+[[:blank:]]\?//g'
remote: + DOCKER_ARGS=' --env=DOKKU_APP_TYPE='\''dockerfile'\'' --env=DOKKU_DOCKERFILE_CMD='\''CMD ["/bin/ash", "-c", "sleep 12000000"]'\'' --env=DOKKU_DOCKERFILE_PORTS='\''80'\'' '
remote: + eval 'ARG_ARRAY=( --env=DOKKU_APP_TYPE='\''dockerfile'\'' --env=DOKKU_DOCKERFILE_CMD='\''CMD ["/bin/ash", "-c", "sleep 12000000"]'\'' --env=DOKKU_DOCKERFILE_PORTS='\''80'\'' )'
remote: ++ ARG_ARRAY=(--env=DOKKU_APP_TYPE='dockerfile' --env=DOKKU_DOCKERFILE_CMD='CMD ["/bin/ash", "-c", "sleep 12000000"]' --env=DOKKU_DOCKERFILE_PORTS='80')
remote: + [[ dockerfile == \h\e\r\o\k\u\i\s\h ]]
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + [[ ! -n '' ]]
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + source /var/lib/dokku/plugins/available/ps/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: ++ source /var/lib/dokku/core-plugins/available/common/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
remote: ++ source /var/lib/dokku/plugins/available/config/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
remote: +++ source /var/lib/dokku/core-plugins/available/common/functions
remote: ++++ set -eo pipefail
remote: ++++ [[ -n 1 ]]
remote: ++++ set -x
remote: + ps_pre_deploy cache-test ''
remote: + declare 'desc=ps pre-deploy plugin trigger'
remote: + local trigger=ps_pre_deploy
remote: + local APP=cache-test
remote: + local IMAGE_TAG=
remote: + extract_procfile cache-test ''
remote: + declare 'desc=extracts procfile from app image'
remote: + local APP=cache-test
remote: + local IMAGE_TAG=
remote: ++ get_deploying_app_image_name cache-test ''
remote: ++ declare 'desc=return deploying image identifier for a given app, tag tuple. validate if tag is presented'
remote: ++ local APP=cache-test
remote: ++ local IMAGE_TAG=
remote: ++ IMAGE_REPO=
remote: ++ is_valid_app_name cache-test
remote: ++ declare 'desc=verify app name format'
remote: ++ local APP=cache-test
remote: ++ [[ ! -n cache-test ]]
remote: ++ [[ cache-test =~ ^[a-z].* ]]
remote: ++ [[ ! cache-test =~ [A-Z] ]]
remote: ++ [[ ! cache-test =~ [:] ]]
remote: ++ return 0
remote: +++ plugn trigger deployed-app-repository cache-test
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + [[ ! -n '' ]]
remote: ++ local IMAGE_REMOTE_REPOSITORY=
remote: +++ plugn trigger deployed-app-image-tag cache-test
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + [[ ! -n '' ]]
remote: ++ local NEW_IMAGE_TAG=
remote: +++ plugn trigger deployed-app-image-repo cache-test
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + [[ ! -n '' ]]
remote: ++ local NEW_IMAGE_REPO=
remote: ++ [[ -n '' ]]
remote: ++ [[ -n '' ]]
remote: ++ [[ -z '' ]]
remote: +++ get_app_image_repo cache-test
remote: +++ declare 'desc=central definition of image repo pattern'
remote: +++ local APP=cache-test
remote: +++ local IMAGE_REPO=dokku/cache-test
remote: +++ is_valid_app_name cache-test
remote: +++ declare 'desc=verify app name format'
remote: +++ local APP=cache-test
remote: +++ [[ ! -n cache-test ]]
remote: +++ [[ cache-test =~ ^[a-z].* ]]
remote: +++ [[ ! cache-test =~ [A-Z] ]]
remote: +++ [[ ! cache-test =~ [:] ]]
remote: +++ return 0
remote: +++ echo dokku/cache-test
remote: ++ IMAGE_REPO=dokku/cache-test
remote: ++ [[ -z '' ]]
remote: ++ IMAGE_TAG=latest
remote: ++ local IMAGE=dokku/cache-test:latest
remote: ++ verify_image dokku/cache-test:latest
remote: ++ declare 'desc=verify image existence'
remote: ++ local IMAGE=dokku/cache-test:latest
remote: ++ docker inspect dokku/cache-test:latest
remote: ++ return 0
remote: ++ echo dokku/cache-test:latest
remote: + local IMAGE=dokku/cache-test:latest
remote: + local DOKKU_PROCFILE=/home/dokku/cache-test/DOKKU_PROCFILE
remote: + verify_app_name cache-test
remote: + declare 'desc=verify app name format and app existence'
remote: + local APP=cache-test
remote: + is_valid_app_name cache-test
remote: + declare 'desc=verify app name format'
remote: + local APP=cache-test
remote: + [[ ! -n cache-test ]]
remote: + [[ cache-test =~ ^[a-z].* ]]
remote: + [[ ! cache-test =~ [A-Z] ]]
remote: + [[ ! cache-test =~ [:] ]]
remote: + return 0
remote: + [[ ! -d /home/dokku/cache-test ]]
remote: + return 0
remote: + remove_procfile cache-test
remote: + declare 'desc=removes DOKKU_PROCFILE'
remote: + local APP=cache-test
remote: + local DOKKU_PROCFILE=/home/dokku/cache-test/DOKKU_PROCFILE
remote: + [[ -f /home/dokku/cache-test/DOKKU_PROCFILE ]]
remote: + copy_from_image dokku/cache-test:latest Procfile /home/dokku/cache-test/DOKKU_PROCFILE
remote: + [[ -f /home/dokku/cache-test/DOKKU_PROCFILE ]]
remote: + dokku_log_info1_quiet 'No Procfile found in app image'
remote: + declare 'desc=log info1 formatter (with quiet option)'
remote: + [[ -z '' ]]
remote: + echo '-----> No Procfile found in app image'
remote: + generate_scale_file cache-test ''
remote: + declare 'desc=generates DOKKU_SCALE file'
remote: + local APP=cache-test
remote: + local IMAGE_TAG=
remote: -----> No Procfile found in app image
remote: ++ get_deploying_app_image_name cache-test ''
remote: ++ declare 'desc=return deploying image identifier for a given app, tag tuple. validate if tag is presented'
remote: ++ local APP=cache-test
remote: ++ local IMAGE_TAG=
remote: ++ IMAGE_REPO=
remote: ++ is_valid_app_name cache-test
remote: ++ declare 'desc=verify app name format'
remote: ++ local APP=cache-test
remote: ++ [[ ! -n cache-test ]]
remote: ++ [[ cache-test =~ ^[a-z].* ]]
remote: ++ [[ ! cache-test =~ [A-Z] ]]
remote: ++ [[ ! cache-test =~ [:] ]]
remote: ++ return 0
remote: +++ plugn trigger deployed-app-repository cache-test
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + [[ ! -n '' ]]
remote: ++ local IMAGE_REMOTE_REPOSITORY=
remote: +++ plugn trigger deployed-app-image-tag cache-test
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + [[ ! -n '' ]]
remote: ++ local NEW_IMAGE_TAG=
remote: +++ plugn trigger deployed-app-image-repo cache-test
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + [[ ! -n '' ]]
remote: ++ local NEW_IMAGE_REPO=
remote: ++ [[ -n '' ]]
remote: ++ [[ -n '' ]]
remote: ++ [[ -z '' ]]
remote: +++ get_app_image_repo cache-test
remote: +++ declare 'desc=central definition of image repo pattern'
remote: +++ local APP=cache-test
remote: +++ local IMAGE_REPO=dokku/cache-test
remote: +++ is_valid_app_name cache-test
remote: +++ declare 'desc=verify app name format'
remote: +++ local APP=cache-test
remote: +++ [[ ! -n cache-test ]]
remote: +++ [[ cache-test =~ ^[a-z].* ]]
remote: +++ [[ ! cache-test =~ [A-Z] ]]
remote: +++ [[ ! cache-test =~ [:] ]]
remote: +++ return 0
remote: +++ echo dokku/cache-test
remote: ++ IMAGE_REPO=dokku/cache-test
remote: ++ [[ -z '' ]]
remote: ++ IMAGE_TAG=latest
remote: ++ local IMAGE=dokku/cache-test:latest
remote: ++ verify_image dokku/cache-test:latest
remote: ++ declare 'desc=verify image existence'
remote: ++ local IMAGE=dokku/cache-test:latest
remote: ++ docker inspect dokku/cache-test:latest
remote: ++ return 0
remote: ++ echo dokku/cache-test:latest
remote: + local IMAGE=dokku/cache-test:latest
remote: + local DOKKU_SCALE_FILE=/home/dokku/cache-test/DOKKU_SCALE
remote: + local DOKKU_PROCFILE=/home/dokku/cache-test/DOKKU_PROCFILE
remote: + verify_app_name cache-test
remote: + declare 'desc=verify app name format and app existence'
remote: + local APP=cache-test
remote: + is_valid_app_name cache-test
remote: + declare 'desc=verify app name format'
remote: + local APP=cache-test
remote: + [[ ! -n cache-test ]]
remote: + [[ cache-test =~ ^[a-z].* ]]
remote: + [[ ! cache-test =~ [A-Z] ]]
remote: + [[ ! cache-test =~ [:] ]]
remote: + return 0
remote: + [[ ! -d /home/dokku/cache-test ]]
remote: + return 0
remote: + copy_from_image dokku/cache-test:latest DOKKU_SCALE /home/dokku/cache-test
remote: + [[ ! -f /home/dokku/cache-test/DOKKU_SCALE ]]
remote: + dokku_log_info1_quiet 'DOKKU_SCALE file not found in app image. Generating one based on Procfile...'
remote: + declare 'desc=log info1 formatter (with quiet option)'
remote: + [[ -z '' ]]
remote: + echo '-----> DOKKU_SCALE file not found in app image. Generating one based on Procfile...'
remote: -----> DOKKU_SCALE file not found in app image. Generating one based on Procfile...
remote: ++ mktemp -d /tmp/dokku_scale.XXXX
remote: + local GENERATE_SCALE_FILE_TMP_WORK_DIR=/tmp/dokku_scale.QVe4
remote: + trap 'rm -rf "$GENERATE_SCALE_FILE_TMP_WORK_DIR" > /dev/null' RETURN
remote: + [[ -f /home/dokku/cache-test/DOKKU_PROCFILE ]]
remote: + echo web=1
remote: + dokku_log_info1_quiet 'New DOKKU_SCALE file generated'
remote: + declare 'desc=log info1 formatter (with quiet option)'
remote: + [[ -z '' ]]
remote: + echo '-----> New DOKKU_SCALE file generated'
remote: + print_dokku_scale_file cache-test
remote: + declare 'desc=prints contents of DOKKU_SCALE file'
remote: + local APP=cache-test
remote: + local DOKKU_SCALE_FILE=/home/dokku/cache-test/DOKKU_SCALE
remote: + read -r line
remote: + dokku_log_info2_quiet web=1
remote: + declare 'desc=log info2 formatter (with quiet option)'
remote: + [[ -z '' ]]
remote: + echo '=====> web=1'
remote: + read -r line
remote: + [[ -n '' ]]
remote: ++ rm -rf /tmp/dokku_scale.QVe4
remote: -----> New DOKKU_SCALE file generated
remote: =====> web=1
remote: ++ rm -rf ''
remote: + is_image_herokuish_based dokku/cache-test:latest
remote: + declare 'desc=returns true if app image is based on herokuish'
remote: + [[ ! -f /home/ubuntu/.circlerc ]]
remote: + local DOCKER_ARGS=--rm
remote: + docker run --label=dokku --entrypoint=/bin/sh --rm dokku/cache-test:latest -c 'test -f /exec'
remote: + local DOKKU_SCALE_FILE=/home/dokku/cache-test/DOKKU_SCALE
remote: ++ get_app_container_ids cache-test
remote: ++ declare 'desc=returns list of docker container ids for given app and optional container_type'
remote: ++ local APP=cache-test
remote: ++ local CONTAINER_TYPE=
remote: ++ verify_app_name cache-test
remote: ++ declare 'desc=verify app name format and app existence'
remote: ++ local APP=cache-test
remote: ++ is_valid_app_name cache-test
remote: ++ declare 'desc=verify app name format'
remote: ++ local APP=cache-test
remote: ++ [[ ! -n cache-test ]]
remote: ++ [[ cache-test =~ ^[a-z].* ]]
remote: ++ [[ ! cache-test =~ [A-Z] ]]
remote: ++ [[ ! cache-test =~ [:] ]]
remote: ++ return 0
remote: ++ [[ ! -d /home/dokku/cache-test ]]
remote: ++ return 0
remote: ++ [[ -f /home/dokku/cache-test/CONTAINER ]]
remote: ++ [[ -n '' ]]
remote: ++ local 'CONTAINER_PATTERN=/home/dokku/cache-test/CONTAINER.*'
remote: ++ shopt -s nullglob
remote: ++ local DOKKU_CID_FILE
remote: ++ shopt -u nullglob
remote: ++ echo ''
remote: + local oldids=
remote: ++ plugn trigger network-get-property cache-test bind-all-interfaces
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + [[ ! -n '' ]]
remote: + DOKKU_NETWORK_BIND_ALL=false
remote: ++ config_get cache-test DOKKU_DOCKER_STOP_TIMEOUT
remote: ++ declare 'desc=get value of given config var'
remote: ++ config_sub get cache-test DOKKU_DOCKER_STOP_TIMEOUT
remote: ++ declare 'desc=executes a config subcommand'
remote: ++ local name=get
remote: ++ shift
remote: ++ /var/lib/dokku/plugins/available/config/subcommands/get config:get cache-test DOKKU_DOCKER_STOP_TIMEOUT
remote: ++ true
remote: + DOKKU_DOCKER_STOP_TIMEOUT=
remote: + [[ -n '' ]]
remote: + local line
remote: + local PROC_TYPE
remote: + local PROC_COUNT
remote: + local CONTAINER_INDEX
remote: + read -r line
remote: + [[ web=1 =~ ^#.* ]]
remote: ++ strip_inline_comments web=1
remote: ++ declare 'desc=removes bash-style comment from input line'
remote: ++ local line=web=1
remote: ++ local stripped_line=web=1
remote: ++ echo web=1
remote: + line=web=1
remote: + PROC_TYPE=web
remote: + PROC_COUNT=1
remote: + CONTAINER_INDEX=1
remote: ++ is_app_proctype_checks_disabled cache-test web
remote: ++ declare 'desc=return true if app'\''s proctype(s) checks are disabled'
remote: ++ local APP=cache-test
remote: ++ verify_app_name cache-test
remote: ++ declare 'desc=verify app name format and app existence'
remote: ++ local APP=cache-test
remote: ++ is_valid_app_name cache-test
remote: ++ declare 'desc=verify app name format'
remote: ++ local APP=cache-test
remote: ++ [[ ! -n cache-test ]]
remote: ++ [[ cache-test =~ ^[a-z].* ]]
remote: ++ [[ ! cache-test =~ [A-Z] ]]
remote: ++ [[ ! cache-test =~ [:] ]]
remote: ++ return 0
remote: ++ [[ ! -d /home/dokku/cache-test ]]
remote: ++ return 0
remote: ++ local PROCTYPE=web status=false
remote: +++ config_get cache-test DOKKU_CHECKS_DISABLED
remote: +++ declare 'desc=get value of given config var'
remote: +++ config_sub get cache-test DOKKU_CHECKS_DISABLED
remote: +++ declare 'desc=executes a config subcommand'
remote: +++ local name=get
remote: +++ shift
remote: +++ /var/lib/dokku/plugins/available/config/subcommands/get config:get cache-test DOKKU_CHECKS_DISABLED
remote: +++ true
remote: ++ local DOKKU_CHECKS_DISABLED=
remote: ++ [[ '' == \_\a\l\l\_ ]]
remote: +++ is_val_in_list web ''
remote: +++ declare 'desc=return true if value (web) is in list () separated by delimiter (); delimiter defaults to comma'
remote: +++ local value=web list= delimiter=,
remote: +++ local IFS=, val_in_list=false
remote: +++ echo false
remote: ++ [[ false == \t\r\u\e ]]
remote: ++ echo false
remote: + [[ false == \t\r\u\e ]]
remote: + [[ 1 -le 1 ]]
remote: + local cid=
remote: + local port=
remote: + local ipaddr=
remote: + local DOKKU_CONTAINER_ID_FILE=/home/dokku/cache-test/CONTAINER.web.1
remote: + local DOCKER_ARGS
remote: ++ plugn trigger docker-args-deploy cache-test '' web 1
remote: ++ :
remote: + source /var/lib/dokku/plugins/available/config/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: ++ source /var/lib/dokku/core-plugins/available/common/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
remote: + app_user_docker_args cache-test '' web 1
remote: + local APP=cache-test
remote: + local STDIN
remote: + local DOKKU_APP_TYPE
remote: + local DOKKU_APP_USER
remote: ++ cat
remote: + STDIN=
remote: ++ config_get cache-test DOKKU_APP_TYPE
remote: ++ declare 'desc=get value of given config var'
remote: ++ config_sub get cache-test DOKKU_APP_TYPE
remote: ++ declare 'desc=executes a config subcommand'
remote: ++ local name=get
remote: ++ shift
remote: ++ /var/lib/dokku/plugins/available/config/subcommands/get config:get cache-test DOKKU_APP_TYPE
remote: + DOKKU_APP_TYPE=dockerfile
remote: ++ config_get cache-test DOKKU_APP_USER
remote: ++ declare 'desc=get value of given config var'
remote: ++ config_sub get cache-test DOKKU_APP_USER
remote: ++ declare 'desc=executes a config subcommand'
remote: ++ local name=get
remote: ++ shift
remote: ++ /var/lib/dokku/plugins/available/config/subcommands/get config:get cache-test DOKKU_APP_USER
remote: ++ true
remote: + DOKKU_APP_USER=
remote: + DOKKU_APP_USER=herokuishuser
remote: + [[ dockerfile == \h\e\r\o\k\u\i\s\h ]]
remote: + local docker_args=
remote: + echo -n ''
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + [[ ! -n '' ]]
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + source /var/lib/dokku/plugins/available/config/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: ++ source /var/lib/dokku/core-plugins/available/common/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
remote: + config_docker_args cache-test '' web 1
remote: + declare 'desc=config docker-args plugin trigger'
remote: + declare APP=cache-test IMAGE_TAG=
remote: + local ENV_ARGS IMAGE STDIN trigger
remote: ++ get_deploying_app_image_name cache-test ''
remote: ++ declare 'desc=return deploying image identifier for a given app, tag tuple. validate if tag is presented'
remote: ++ local APP=cache-test
remote: ++ local IMAGE_TAG=
remote: ++ IMAGE_REPO=
remote: ++ is_valid_app_name cache-test
remote: ++ declare 'desc=verify app name format'
remote: ++ local APP=cache-test
remote: ++ [[ ! -n cache-test ]]
remote: ++ [[ cache-test =~ ^[a-z].* ]]
remote: ++ [[ ! cache-test =~ [A-Z] ]]
remote: ++ [[ ! cache-test =~ [:] ]]
remote: ++ return 0
remote: +++ plugn trigger deployed-app-repository cache-test
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + [[ ! -n '' ]]
remote: ++ local IMAGE_REMOTE_REPOSITORY=
remote: +++ plugn trigger deployed-app-image-tag cache-test
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + [[ ! -n '' ]]
remote: ++ local NEW_IMAGE_TAG=
remote: +++ plugn trigger deployed-app-image-repo cache-test
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + [[ ! -n '' ]]
remote: ++ local NEW_IMAGE_REPO=
remote: ++ [[ -n '' ]]
remote: ++ [[ -n '' ]]
remote: ++ [[ -z '' ]]
remote: +++ get_app_image_repo cache-test
remote: +++ declare 'desc=central definition of image repo pattern'
remote: +++ local APP=cache-test
remote: +++ local IMAGE_REPO=dokku/cache-test
remote: +++ is_valid_app_name cache-test
remote: +++ declare 'desc=verify app name format'
remote: +++ local APP=cache-test
remote: +++ [[ ! -n cache-test ]]
remote: +++ [[ cache-test =~ ^[a-z].* ]]
remote: +++ [[ ! cache-test =~ [A-Z] ]]
remote: +++ [[ ! cache-test =~ [:] ]]
remote: +++ return 0
remote: +++ echo dokku/cache-test
remote: ++ IMAGE_REPO=dokku/cache-test
remote: ++ [[ -z '' ]]
remote: ++ IMAGE_TAG=latest
remote: ++ local IMAGE=dokku/cache-test:latest
remote: ++ verify_image dokku/cache-test:latest
remote: ++ declare 'desc=verify image existence'
remote: ++ local IMAGE=dokku/cache-test:latest
remote: ++ docker inspect dokku/cache-test:latest
remote: ++ return 0
remote: ++ echo dokku/cache-test:latest
remote: + IMAGE=dokku/cache-test:latest
remote: ++ cat
remote: + STDIN=
remote: + trigger='/var/lib/dokku/plugins/enabled/config/docker-args-deploy config_docker_args'
remote: + verify_app_name cache-test
remote: + declare 'desc=verify app name format and app existence'
remote: + local APP=cache-test
remote: + is_valid_app_name cache-test
remote: + declare 'desc=verify app name format'
remote: + local APP=cache-test
remote: + [[ ! -n cache-test ]]
remote: + [[ cache-test =~ ^[a-z].* ]]
remote: + [[ ! cache-test =~ [A-Z] ]]
remote: + [[ ! cache-test =~ [:] ]]
remote: + return 0
remote: + [[ ! -d /home/dokku/cache-test ]]
remote: + return 0
remote: + is_image_herokuish_based dokku/cache-test:latest
remote: + declare 'desc=returns true if app image is based on herokuish'
remote: + [[ ! -f /home/ubuntu/.circlerc ]]
remote: + local DOCKER_ARGS=--rm
remote: + docker run --label=dokku --entrypoint=/bin/sh --rm dokku/cache-test:latest -c 'test -f /exec'
remote: ++ config_export app cache-test --format docker-args --merged
remote: ++ declare 'desc=returns export command for config variable of specified type (app/global)'
remote: ++ local CONFIG_TYPE=app
remote: ++ shift
remote: ++ local APP=cache-test
remote: ++ [[ app == \g\l\o\b\a\l ]]
remote: ++ shift
remote: ++ config_sub export --format docker-args --merged cache-test
remote: ++ declare 'desc=executes a config subcommand'
remote: ++ local name=export
remote: ++ shift
remote: ++ /var/lib/dokku/plugins/available/config/subcommands/export config:export --format docker-args --merged cache-test
remote: ++ return 0
remote: + ENV_ARGS='--env=DOKKU_APP_TYPE='\''dockerfile'\'' --env=DOKKU_DOCKERFILE_CMD='\''CMD ["/bin/ash", "-c", "sleep 12000000"]'\'' --env=DOKKU_DOCKERFILE_PORTS='\''80'\'''
remote: + echo -n ' --env=DOKKU_APP_TYPE='\''dockerfile'\'' --env=DOKKU_DOCKERFILE_CMD='\''CMD ["/bin/ash", "-c", "sleep 12000000"]'\'' --env=DOKKU_DOCKERFILE_PORTS='\''80'\'''
remote: + docker_args cache-test '' web 1
remote: + declare 'desc=docker args plugin trigger'
remote: + local trigger=/var/lib/dokku/plugins/enabled/docker-options/docker-args-deploy
remote: ++ cat
remote: + local STDIN=
remote: + local APP=cache-test
remote: + local IMAGE_SOURCE_TYPE=
remote: + case "$0" in
remote: + local PHASE=DEPLOY
remote: + local FILE_PREFIX=DOCKER_OPTIONS_
remote: + local PHASE_FILE_PATH=/home/dokku/cache-test/DOCKER_OPTIONS_DEPLOY
remote: + local output=
remote: + [[ -f /home/dokku/cache-test/DOCKER_OPTIONS_DEPLOY ]]
remote: + local DONE=false
remote: + false
remote: + local line
remote: + read -r line
remote: + [[ ! -n --restart=on-failure:10 ]]
remote: + case "$line" in
remote: + case "$IMAGE_SOURCE_TYPE" in
remote: + local 'output= --restart=on-failure:10'
remote: + false
remote: + local line
remote: + read -r line
remote: + local DONE=true
remote: + [[ ! -n '' ]]
remote: + continue
remote: + true
remote: + echo -n ' --restart=on-failure:10'
remote: + DOCKER_ARGS=' --env=DOKKU_APP_TYPE='\''dockerfile'\'' --env=DOKKU_DOCKERFILE_CMD='\''CMD ["/bin/ash", "-c", "sleep 12000000"]'\'' --env=DOKKU_DOCKERFILE_PORTS='\''80'\'' --restart=on-failure:10'
remote: + DOCKER_ARGS+=' -e DYNO=web.1 '
remote: + [[ -n 1 ]]
remote: + DOCKER_ARGS+=' -e TRACE=true '
remote: + declare -a ARG_ARRAY
remote: + eval 'ARG_ARRAY=( --env=DOKKU_APP_TYPE='\''dockerfile'\'' --env=DOKKU_DOCKERFILE_CMD='\''CMD ["/bin/ash", "-c", "sleep 12000000"]'\'' --env=DOKKU_DOCKERFILE_PORTS='\''80'\'' --restart=on-failure:10 -e DYNO=web.1 -e TRACE=true )'
remote: ++ ARG_ARRAY=(--env=DOKKU_APP_TYPE='dockerfile' --env=DOKKU_DOCKERFILE_CMD='CMD ["/bin/ash", "-c", "sleep 12000000"]' --env=DOKKU_DOCKERFILE_PORTS='80' --restart=on-failure:10 -e DYNO=web.1 -e TRACE=true)
remote: + [[ false == \t\r\u\e ]]
remote: + [[ false == \f\a\l\s\e ]]
remote: ++ config_get cache-test DOKKU_DOCKERFILE_START_CMD
remote: ++ declare 'desc=get value of given config var'
remote: ++ config_sub get cache-test DOKKU_DOCKERFILE_START_CMD
remote: ++ declare 'desc=executes a config subcommand'
remote: ++ local name=get
remote: ++ shift
remote: ++ /var/lib/dokku/plugins/available/config/subcommands/get config:get cache-test DOKKU_DOCKERFILE_START_CMD
remote: ++ true
remote: + local DOKKU_DOCKERFILE_START_CMD=
remote: ++ get_cmd_from_procfile cache-test web
remote: ++ declare 'desc=parse cmd from app Procfile'
remote: ++ local APP=cache-test
remote: ++ local PROC_TYPE=web
remote: ++ local DOKKU_PROCFILE=/home/dokku/cache-test/DOKKU_PROCFILE
remote: ++ verify_app_name cache-test
remote: ++ declare 'desc=verify app name format and app existence'
remote: ++ local APP=cache-test
remote: ++ is_valid_app_name cache-test
remote: ++ declare 'desc=verify app name format'
remote: ++ local APP=cache-test
remote: ++ [[ ! -n cache-test ]]
remote: ++ [[ cache-test =~ ^[a-z].* ]]
remote: ++ [[ ! cache-test =~ [A-Z] ]]
remote: ++ [[ ! cache-test =~ [:] ]]
remote: ++ return 0
remote: ++ [[ ! -d /home/dokku/cache-test ]]
remote: ++ return 0
remote: ++ [[ -f /home/dokku/cache-test/DOKKU_PROCFILE ]]
remote: + local DOKKU_PROCFILE_START_CMD=
remote: + local START_CMD=
remote: + [[ web == \w\e\b ]]
remote: + ports=($(plugn trigger network-compute-ports "$APP" "$PROC_TYPE" "$DOKKU_HEROKUISH"))
remote: ++ plugn trigger network-compute-ports cache-test web false
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + [[ ! -n '' ]]
remote: + local DOKKU_DOCKER_PORT_ARGS=
remote: + local DOKKU_PORT=
remote: + for p in '"${ports[@]}"'
remote: + [[ ! 80 =~ .*udp.* ]]
remote: + DOKKU_PORT=80
remote: + DOKKU_DOCKER_PORT_ARGS+=' -p 80 '
remote: + [[ false == \f\a\l\s\e ]]
remote: ++ docker run --label=dokku -d -e PORT=80 --env=DOKKU_APP_TYPE=dockerfile '--env=DOKKU_DOCKERFILE_CMD=CMD ["/bin/ash", "-c", "sleep 12000000"]' --env=DOKKU_DOCKERFILE_PORTS=80 --restart=on-failure:10 -e DYNO=web.1 -e TRACE=true dokku/cache-test:latest
remote: + cid=690aa0c40a4a9f4c2f44cb5fc91d600652f1fee7c210696fa526d26e5b9e443d
remote: ++ plugn trigger network-get-ipaddr cache-test web 690aa0c40a4a9f4c2f44cb5fc91d600652f1fee7c210696fa526d26e5b9e443d
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + [[ ! -n '' ]]
remote: + ipaddr=172.17.0.3
remote: ++ plugn trigger network-get-port cache-test web false 690aa0c40a4a9f4c2f44cb5fc91d600652f1fee7c210696fa526d26e5b9e443d
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + [[ ! -n '' ]]
remote: + port=80
remote: + trap 'kill_new $cid' INT TERM EXIT
remote: ++ is_app_proctype_checks_disabled cache-test web
remote: ++ declare 'desc=return true if app'\''s proctype(s) checks are disabled'
remote: ++ local APP=cache-test
remote: ++ verify_app_name cache-test
remote: ++ declare 'desc=verify app name format and app existence'
remote: ++ local APP=cache-test
remote: ++ is_valid_app_name cache-test
remote: ++ declare 'desc=verify app name format'
remote: ++ local APP=cache-test
remote: ++ [[ ! -n cache-test ]]
remote: ++ [[ cache-test =~ ^[a-z].* ]]
remote: ++ [[ ! cache-test =~ [A-Z] ]]
remote: ++ [[ ! cache-test =~ [:] ]]
remote: ++ return 0
remote: ++ [[ ! -d /home/dokku/cache-test ]]
remote: ++ return 0
remote: ++ local PROCTYPE=web status=false
remote: +++ config_get cache-test DOKKU_CHECKS_DISABLED
remote: +++ declare 'desc=get value of given config var'
remote: +++ config_sub get cache-test DOKKU_CHECKS_DISABLED
remote: +++ declare 'desc=executes a config subcommand'
remote: +++ local name=get
remote: +++ shift
remote: +++ /var/lib/dokku/plugins/available/config/subcommands/get config:get cache-test DOKKU_CHECKS_DISABLED
remote: +++ true
remote: ++ local DOKKU_CHECKS_DISABLED=
remote: ++ [[ '' == \_\a\l\l\_ ]]
remote: +++ is_val_in_list web ''
remote: +++ declare 'desc=return true if value (web) is in list () separated by delimiter (); delimiter defaults to comma'
remote: +++ local value=web list= delimiter=,
remote: +++ local IFS=, val_in_list=false
remote: +++ echo false
remote: ++ [[ false == \t\r\u\e ]]
remote: ++ echo false
remote: + [[ false == \f\a\l\s\e ]]
remote: + dokku_log_info1 'Attempting pre-flight checks'
remote: + declare 'desc=log info1 formatter'
remote: + echo '-----> Attempting pre-flight checks'
remote: + plugn trigger check-deploy cache-test 690aa0c40a4a9f4c2f44cb5fc91d600652f1fee7c210696fa526d26e5b9e443d web 80 172.17.0.3
remote: -----> Attempting pre-flight checks
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + [[ ! -n '' ]]
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + source /var/lib/dokku/plugins/available/checks/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: ++ source /var/lib/dokku/core-plugins/available/common/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
remote: ++ source /var/lib/dokku/plugins/available/config/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
remote: +++ source /var/lib/dokku/core-plugins/available/common/functions
remote: ++++ set -eo pipefail
remote: ++++ [[ -n 1 ]]
remote: ++++ set -x
remote: + source /var/lib/dokku/plugins/available/config/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: ++ source /var/lib/dokku/core-plugins/available/common/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
remote: + checks_check_deploy cache-test 690aa0c40a4a9f4c2f44cb5fc91d600652f1fee7c210696fa526d26e5b9e443d web 80 172.17.0.3
remote: + declare 'desc=checks check-deploy plugin trigger'
remote: + local trigger=checks_check_deploy
remote: + local APP=cache-test
remote: + local DOKKU_APP_CONTAINER_ID=690aa0c40a4a9f4c2f44cb5fc91d600652f1fee7c210696fa526d26e5b9e443d
remote: + local DOKKU_APP_CONTAINER_TYPE=web
remote: + local DOKKU_APP_LISTEN_PORT=80
remote: + local DOKKU_APP_LISTEN_IP=172.17.0.3
remote: + [[ -z 80 ]]
remote: + [[ -z 172.17.0.3 ]]
remote: + [[ -z 690aa0c40a4a9f4c2f44cb5fc91d600652f1fee7c210696fa526d26e5b9e443d ]]
remote: ++ config_export global
remote: ++ declare 'desc=returns export command for config variable of specified type (app/global)'
remote: ++ local CONFIG_TYPE=global
remote: ++ shift
remote: ++ local APP=
remote: ++ [[ global == \g\l\o\b\a\l ]]
remote: ++ APP=--global
remote: ++ config_sub export --global
remote: ++ declare 'desc=executes a config subcommand'
remote: ++ local name=export
remote: ++ shift
remote: ++ /var/lib/dokku/plugins/available/config/subcommands/export config:export --global
remote: ++ return 0
remote: + eval ''
remote: ++ config_export app cache-test
remote: ++ declare 'desc=returns export command for config variable of specified type (app/global)'
remote: ++ local CONFIG_TYPE=app
remote: ++ shift
remote: ++ local APP=cache-test
remote: ++ [[ app == \g\l\o\b\a\l ]]
remote: ++ shift
remote: ++ config_sub export cache-test
remote: ++ declare 'desc=executes a config subcommand'
remote: ++ local name=export
remote: ++ shift
remote: ++ /var/lib/dokku/plugins/available/config/subcommands/export config:export cache-test
remote: ++ return 0
remote: + eval 'export DOKKU_APP_TYPE='\''dockerfile'\''
remote: export DOKKU_DOCKERFILE_CMD='\''CMD ["/bin/ash", "-c", "sleep 12000000"]'\''
remote: export DOKKU_DOCKERFILE_PORTS='\''80'\'''
remote: ++ export DOKKU_APP_TYPE=dockerfile
remote: ++ DOKKU_APP_TYPE=dockerfile
remote: ++ export 'DOKKU_DOCKERFILE_CMD=CMD ["/bin/ash", "-c", "sleep 12000000"]'
remote: ++ DOKKU_DOCKERFILE_CMD='CMD ["/bin/ash", "-c", "sleep 12000000"]'
remote: ++ export DOKKU_DOCKERFILE_PORTS=80
remote: ++ DOKKU_DOCKERFILE_PORTS=80
remote: ++ is_app_proctype_checks_skipped cache-test web
remote: ++ declare 'desc=return true if app'\''s proctype(s) checks are skipped'
remote: ++ local APP=cache-test
remote: ++ verify_app_name cache-test
remote: ++ declare 'desc=verify app name format and app existence'
remote: ++ local APP=cache-test
remote: ++ is_valid_app_name cache-test
remote: ++ declare 'desc=verify app name format'
remote: ++ local APP=cache-test
remote: ++ [[ ! -n cache-test ]]
remote: ++ [[ cache-test =~ ^[a-z].* ]]
remote: ++ [[ ! cache-test =~ [A-Z] ]]
remote: ++ [[ ! cache-test =~ [:] ]]
remote: ++ return 0
remote: ++ [[ ! -d /home/dokku/cache-test ]]
remote: ++ return 0
remote: ++ local PROCTYPE=web status=false
remote: +++ config_get cache-test DOKKU_CHECKS_SKIPPED
remote: +++ declare 'desc=get value of given config var'
remote: +++ config_sub get cache-test DOKKU_CHECKS_SKIPPED
remote: +++ declare 'desc=executes a config subcommand'
remote: +++ local name=get
remote: +++ shift
remote: +++ /var/lib/dokku/plugins/available/config/subcommands/get config:get cache-test DOKKU_CHECKS_SKIPPED
remote: +++ true
remote: ++ local DOKKU_CHECKS_SKIPPED=
remote: ++ [[ '' == \_\a\l\l\_ ]]
remote: +++ is_val_in_list web ''
remote: +++ declare 'desc=return true if value (web) is in list () separated by delimiter (); delimiter defaults to comma'
remote: +++ local value=web list= delimiter=,
remote: +++ local IFS=, val_in_list=false
remote: +++ echo false
remote: ++ [[ false == \t\r\u\e ]]
remote: ++ echo false
remote: + [[ false == \t\r\u\e ]]
remote: + local WAIT=5
remote: + local TIMEOUT=30
remote: + local ATTEMPTS=5
remote: ++ mktemp -d /tmp/dokku_CHECKS.XXXXX
remote: + local CHECK_DEPLOY_TMP_WORK_DIR=/tmp/dokku_CHECKS.3BDVq
remote: + docker cp 690aa0c40a4a9f4c2f44cb5fc91d600652f1fee7c210696fa526d26e5b9e443d:/app/CHECKS /tmp/dokku_CHECKS.3BDVq
remote: + true
remote: + local FILENAME=/tmp/dokku_CHECKS.3BDVq/CHECKS
remote: + trap 'checks_check_deploy_cleanup $DOKKU_APP_CONTAINER_ID' RETURN INT TERM EXIT
remote: + [[ ! -s /tmp/dokku_CHECKS.3BDVq/CHECKS ]]
remote: + [[ web == \w\e\b ]]
remote: + dokku_log_verbose 'For more efficient zero downtime deployments, create a file CHECKS.'
remote: + declare 'desc=log verbose formatter'
remote: + echo ' For more efficient zero downtime deployments, create a file CHECKS.'
remote: + dokku_log_verbose 'See http://dokku.viewdocs.io/dokku/deployment/zero-downtime-deploys/ for examples'
remote: + declare 'desc=log verbose formatter'
remote: + echo ' See http://dokku.viewdocs.io/dokku/deployment/zero-downtime-deploys/ for examples'
remote: + dokku_log_verbose 'CHECKS file not found in container: Running simple container check...'
remote: + declare 'desc=log verbose formatter'
remote: + echo ' CHECKS file not found in container: Running simple container check...'
remote: + rm -rf /tmp/dokku_CHECKS.3BDVq
remote:  For more efficient zero downtime deployments, create a file CHECKS.
remote:  See http://dokku.viewdocs.io/dokku/deployment/zero-downtime-deploys/ for examples
remote:  CHECKS file not found in container: Running simple container check...
remote: + local DOKKU_DEFAULT_CHECKS_WAIT=10
remote: + dokku_log_info1 'Waiting for 10 seconds ...'
remote: + declare 'desc=log info1 formatter'
remote: + echo '-----> Waiting for 10 seconds ...'
remote: + sleep 10
remote: -----> Waiting for 10 seconds ...
remote: + is_container_running 690aa0c40a4a9f4c2f44cb5fc91d600652f1fee7c210696fa526d26e5b9e443d
remote: + declare 'desc=return 0 if given docker container id is in running state'
remote: + local CID=690aa0c40a4a9f4c2f44cb5fc91d600652f1fee7c210696fa526d26e5b9e443d
remote: ++ docker inspect -f '{{.State.Running}}' 690aa0c40a4a9f4c2f44cb5fc91d600652f1fee7c210696fa526d26e5b9e443d
remote: + local CONTAINER_STATUS=true
remote: + [[ true == \t\r\u\e ]]
remote: + return 0
remote: ++ docker inspect -f '{{ .RestartCount }}' 690aa0c40a4a9f4c2f44cb5fc91d600652f1fee7c210696fa526d26e5b9e443d
remote: + local container_restarts=0
remote: + [[ 0 -ne 0 ]]
remote: + trap - EXIT
remote: + dokku_log_info1 'Default container check successful!'
remote: + declare 'desc=log info1 formatter'
remote: + echo '-----> Default container check successful!'
remote: + exit 0
remote: -----> Default container check successful!
remote: + trap - INT TERM EXIT
remote: + [[ -n 690aa0c40a4a9f4c2f44cb5fc91d600652f1fee7c210696fa526d26e5b9e443d ]]
remote: + echo 690aa0c40a4a9f4c2f44cb5fc91d600652f1fee7c210696fa526d26e5b9e443d
remote: + [[ -n 172.17.0.3 ]]
remote: + plugn trigger network-write-ipaddr cache-test web 1 172.17.0.3
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + [[ ! -n '' ]]
remote: + [[ -n 80 ]]
remote: + plugn trigger network-write-port cache-test web 1 80
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + [[ ! -n '' ]]
remote: + rm -f /home/dokku/cache-test/CONTAINER /home/dokku/cache-test/IP /home/dokku/cache-test/PORT
remote: + local CONTAINER_INDEX=2
remote: + [[ 2 -le 1 ]]
remote: + [[ 1 == 0 ]]
remote: + local CONTAINER_IDX_OFFSET=2
remote: + local container_state_filetype
remote: + for container_state_filetype in CONTAINER IP PORT
remote: + cd /home/dokku/cache-test
remote: + xargs rm -f
remote: + tail -n +2
remote: + sort -t . -k 3 -n
remote: + find . -maxdepth 1 -name 'CONTAINER.web.*' -printf '%f\n'
remote: + for container_state_filetype in CONTAINER IP PORT
remote: + cd /home/dokku/cache-test
remote: + xargs rm -f
remote: + tail -n +2
remote: + sort -t . -k 3 -n
remote: + find . -maxdepth 1 -name 'IP.web.*' -printf '%f\n'
remote: + for container_state_filetype in CONTAINER IP PORT
remote: + cd /home/dokku/cache-test
remote: + xargs rm -f
remote: + tail -n +2
remote: + find . -maxdepth 1 -name 'PORT.web.*' -printf '%f\n'
remote: + sort -t . -k 3 -n
remote: + read -r line
remote: + [[ -n '' ]]
remote: + dokku_log_info1 'Running post-deploy'
remote: + declare 'desc=log info1 formatter'
remote: + echo '-----> Running post-deploy'
remote: + plugn trigger core-post-deploy cache-test 80 172.17.0.3 ''
remote: -----> Running post-deploy
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + cleanup_container_state cache-test 80 172.17.0.3 ''
remote: + declare 'desc=core post-deploy state cleanup'
remote: + local 'trigger=core-post-deploy cleanup_container_state'
remote: + local APP=cache-test
remote: ++ xargs
remote: ++ awk -F = '{ print $1 }'
remote: ++ egrep -v '^#' /home/dokku/cache-test/DOKKU_SCALE
remote: + local PROCTYPES=web
remote: ++ xargs
remote: ++ sort -t . -k 3 -n
remote: ++ find /home/dokku/cache-test -maxdepth 1 -name 'CONTAINER.*' -printf '%f\n'
remote: + local CONTAINER_FILES=CONTAINER.web.1
remote: + local CONTAINER_FILE
remote: + for CONTAINER_FILE in '$CONTAINER_FILES'
remote: ++ awk -F . '{ print $2 }'
remote: + local CONTAINER_TYPE=web
remote: ++ is_val_in_list web web ' '
remote: ++ declare 'desc=return true if value (web) is in list (web) separated by delimiter ( ); delimiter defaults to comma'
remote: ++ local value=web list=web 'delimiter= '
remote: ++ local 'IFS= ' val_in_list=false
remote: ++ for val in '$list'
remote: ++ [[ web == \w\e\b ]]
remote: ++ val_in_list=true
remote: ++ echo true
remote: + [[ true == \f\a\l\s\e ]]
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + [[ ! -n '' ]]
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + named_containers_core_post_deploy cache-test 80 172.17.0.3 ''
remote: + declare 'desc=names deployed app container is consistent manner'
remote: + local trigger=named_containers_core_post_deploy
remote: + local APP=cache-test
remote: + local APP_ROOT=/home/dokku/cache-test
remote: + local container
remote: + shopt -s nullglob
remote: + for container in '$APP_ROOT/CONTAINER.*'
remote: ++ sed -r 's/.*CONTAINER\.(.*)/\1/'
remote: ++ echo /home/dokku/cache-test/CONTAINER.web.1
remote: + local DYNO=web.1
remote: + local NAME=cache-test.web.1
remote: + local CURRENT_CONTAINER_ID=690aa0c40a4a9f4c2f44cb5fc91d600652f1fee7c210696fa526d26e5b9e443d
remote: ++ xargs
remote: ++ docker ps -a -q -f 'name=^.?cache-test.web.1$'
remote: + local PREVIOUS_CIDS=
remote: + [[ -n '' ]]
remote: ++ cat /home/dokku/cache-test/CONTAINER.web.1
remote: + local ID=690aa0c40a4a9f4c2f44cb5fc91d600652f1fee7c210696fa526d26e5b9e443d
remote: ++ tr -d /
remote: ++ docker inspect -f '{{.Name}}' 690aa0c40a4a9f4c2f44cb5fc91d600652f1fee7c210696fa526d26e5b9e443d
remote: + local CURRENT_NAME=peaceful_edison
remote: + [[ -n peaceful_edison ]]
remote: + dokku_log_info2_quiet 'renaming container (690aa0c40a4a) peaceful_edison to cache-test.web.1'
remote: + declare 'desc=log info2 formatter (with quiet option)'
remote: + [[ -z '' ]]
remote: + echo '=====> renaming container (690aa0c40a4a) peaceful_edison to cache-test.web.1'
remote: + docker rename peaceful_edison cache-test.web.1
remote: =====> renaming container (690aa0c40a4a) peaceful_edison to cache-test.web.1
remote: + shopt -u nullglob
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + source /var/lib/dokku/plugins/available/domains/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: ++ source /var/lib/dokku/core-plugins/available/common/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
remote: + source /var/lib/dokku/plugins/available/nginx-vhosts/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: ++ source /var/lib/dokku/core-plugins/available/common/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
remote: ++ source /var/lib/dokku/plugins/available/certs/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
remote: +++ source /var/lib/dokku/core-plugins/available/common/functions
remote: ++++ set -eo pipefail
remote: ++++ [[ -n 1 ]]
remote: ++++ set -x
remote: ++ source /var/lib/dokku/plugins/available/config/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
remote: +++ source /var/lib/dokku/core-plugins/available/common/functions
remote: ++++ set -eo pipefail
remote: ++++ [[ -n 1 ]]
remote: ++++ set -x
remote: ++ source /var/lib/dokku/plugins/available/domains/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
remote: +++ source /var/lib/dokku/core-plugins/available/common/functions
remote: ++++ set -eo pipefail
remote: ++++ [[ -n 1 ]]
remote: ++++ set -x
remote: ++ source /var/lib/dokku/plugins/available/proxy/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
remote: +++ source /var/lib/dokku/core-plugins/available/common/functions
remote: ++++ set -eo pipefail
remote: ++++ [[ -n 1 ]]
remote: ++++ set -x
remote: +++ source /var/lib/dokku/plugins/available/config/functions
remote: ++++ set -eo pipefail
remote: ++++ [[ -n 1 ]]
remote: ++++ set -x
remote: ++++ source /var/lib/dokku/core-plugins/available/common/functions
remote: +++++ set -eo pipefail
remote: +++++ [[ -n 1 ]]
remote: +++++ set -x
remote: ++ source /var/lib/dokku/plugins/available/ps/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
remote: +++ source /var/lib/dokku/core-plugins/available/common/functions
remote: ++++ set -eo pipefail
remote: ++++ [[ -n 1 ]]
remote: ++++ set -x
remote: +++ source /var/lib/dokku/plugins/available/config/functions
remote: ++++ set -eo pipefail
remote: ++++ [[ -n 1 ]]
remote: ++++ set -x
remote: ++++ source /var/lib/dokku/core-plugins/available/common/functions
remote: +++++ set -eo pipefail
remote: +++++ [[ -n 1 ]]
remote: +++++ set -x
remote: + source /var/lib/dokku/plugins/available/proxy/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: ++ source /var/lib/dokku/core-plugins/available/common/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
remote: ++ source /var/lib/dokku/plugins/available/config/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
remote: +++ source /var/lib/dokku/core-plugins/available/common/functions
remote: ++++ set -eo pipefail
remote: ++++ [[ -n 1 ]]
remote: ++++ set -x
remote: ++ get_app_proxy_type cache-test
remote: ++ declare 'desc=return app proxy type'
remote: ++ local APP=cache-test
remote: ++ verify_app_name cache-test
remote: ++ declare 'desc=verify app name format and app existence'
remote: ++ local APP=cache-test
remote: ++ is_valid_app_name cache-test
remote: ++ declare 'desc=verify app name format'
remote: ++ local APP=cache-test
remote: ++ [[ ! -n cache-test ]]
remote: ++ [[ cache-test =~ ^[a-z].* ]]
remote: ++ [[ ! cache-test =~ [A-Z] ]]
remote: ++ [[ ! cache-test =~ [:] ]]
remote: ++ return 0
remote: ++ [[ ! -d /home/dokku/cache-test ]]
remote: ++ return 0
remote: +++ config_get cache-test DOKKU_APP_PROXY_TYPE
remote: +++ declare 'desc=get value of given config var'
remote: +++ config_sub get cache-test DOKKU_APP_PROXY_TYPE
remote: +++ declare 'desc=executes a config subcommand'
remote: +++ local name=get
remote: +++ shift
remote: +++ /var/lib/dokku/plugins/available/config/subcommands/get config:get cache-test DOKKU_APP_PROXY_TYPE
remote: +++ true
remote: ++ local DOKKU_APP_PROXY_TYPE=
remote: ++ local APP_PROXY_TYPE=nginx
remote: ++ echo nginx
remote: + [[ nginx == \n\g\i\n\x ]]
remote: + nginx_core_post_deploy cache-test 80 172.17.0.3 ''
remote: + declare 'desc=nginx-vhosts core-post-deploy plugin trigger'
remote: + local trigger=nginx_core_post_deploy
remote: + local APP=cache-test
remote: + local HAS_NETWORK_CONFIG
remote: ++ plugn trigger network-config-exists cache-test
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + [[ ! -n '' ]]
remote: + HAS_NETWORK_CONFIG=true
remote: + [[ true == \t\r\u\e ]]
remote: ++ is_app_vhost_enabled cache-test
remote: ++ declare 'desc=returns true or false if vhost support is enabled for a given application'
remote: ++ source /var/lib/dokku/plugins/available/config/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
remote: +++ source /var/lib/dokku/core-plugins/available/common/functions
remote: ++++ set -eo pipefail
remote: ++++ [[ -n 1 ]]
remote: ++++ set -x
remote: ++ local APP=cache-test
remote: ++ verify_app_name cache-test
remote: ++ declare 'desc=verify app name format and app existence'
remote: ++ local APP=cache-test
remote: ++ is_valid_app_name cache-test
remote: ++ declare 'desc=verify app name format'
remote: ++ local APP=cache-test
remote: ++ [[ ! -n cache-test ]]
remote: ++ [[ cache-test =~ ^[a-z].* ]]
remote: ++ [[ ! cache-test =~ [A-Z] ]]
remote: ++ [[ ! cache-test =~ [:] ]]
remote: ++ return 0
remote: ++ [[ ! -d /home/dokku/cache-test ]]
remote: ++ return 0
remote: +++ config_get cache-test NO_VHOST
remote: +++ declare 'desc=get value of given config var'
remote: +++ config_sub get cache-test NO_VHOST
remote: +++ declare 'desc=executes a config subcommand'
remote: +++ local name=get
remote: +++ shift
remote: +++ /var/lib/dokku/plugins/available/config/subcommands/get config:get cache-test NO_VHOST
remote: ++ local NO_VHOST=
remote: ++ local APP_VHOST_ENABLED=true
remote: ++ [[ '' == \1 ]]
remote: ++ echo true
remote: + [[ true == \f\a\l\s\e ]]
remote: + [[ ! -f /home/dokku/cache-test/VHOST ]]
remote: + domains_setup cache-test
remote: + declare 'desc=setup domains to default state'
remote: + verify_app_name cache-test
remote: + declare 'desc=verify app name format and app existence'
remote: + local APP=cache-test
remote: + is_valid_app_name cache-test
remote: + declare 'desc=verify app name format'
remote: + local APP=cache-test
remote: + [[ ! -n cache-test ]]
remote: + [[ cache-test =~ ^[a-z].* ]]
remote: + [[ ! cache-test =~ [A-Z] ]]
remote: + [[ ! cache-test =~ [:] ]]
remote: + return 0
remote: + [[ ! -d /home/dokku/cache-test ]]
remote: + return 0
remote: + local APP=cache-test
remote: + local APP_VHOST_PATH=/home/dokku/cache-test/VHOST
remote: + local GLOBAL_VHOST_PATH=/home/dokku/VHOST
remote: ++ get_ipv4_regex
remote: ++ declare 'desc=returns ipv4 regex'
remote: +++ _ipv4_regex
remote: +++ declare 'desc=ipv4 regex'
remote: +++ echo '([0-9]{1,3}[\.]){3}[0-9]{1,3}'
remote: ++ local 'RE_IPV4=([0-9]{1,3}[\.]){3}[0-9]{1,3}'
remote: ++ echo '([0-9]{1,3}[\.]){3}[0-9]{1,3}$'
remote: + local 'RE_IPV4=([0-9]{1,3}[\.]){3}[0-9]{1,3}$'
remote: ++ get_ipv6_regex
remote: ++ declare 'desc=returns ipv6 regex'
remote: +++ _ipv6_regex
remote: +++ declare 'desc=ipv6 regex'
remote: ++++ _ipv4_regex
remote: ++++ declare 'desc=ipv4 regex'
remote: ++++ echo '([0-9]{1,3}[\.]){3}[0-9]{1,3}'
remote: +++ local 'RE_IPV4=([0-9]{1,3}[\.]){3}[0-9]{1,3}'
remote: +++ local 'RE_IPV6=([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|'
remote: +++ local 'RE_IPV6=([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|'
remote: +++ local 'RE_IPV6=([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|'
remote: +++ local 'RE_IPV6=([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|'
remote: +++ local 'RE_IPV6=([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|'
remote: +++ local 'RE_IPV6=([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|'
remote: +++ local 'RE_IPV6=([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-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(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe08:(:[0-9a-fA-F]{1,4}){2,2}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}([0-9]{1,3}[\.]){3}[0-9]{1,3}|([0-9a-fA-F]{1,4}:){1,4}:([0-9]{1,3}[\.]){3}[0-9]{1,3}$'
remote: ++ get_default_vhosts cache-test
remote: ++ declare 'desc=return default vhosts'
remote: ++ verify_app_name cache-test
remote: ++ declare 'desc=verify app name format and app existence'
remote: ++ local APP=cache-test
remote: ++ is_valid_app_name cache-test
remote: ++ declare 'desc=verify app name format'
remote: ++ local APP=cache-test
remote: ++ [[ ! -n cache-test ]]
remote: ++ [[ cache-test =~ ^[a-z].* ]]
remote: ++ [[ ! cache-test =~ [A-Z] ]]
remote: ++ [[ ! cache-test =~ [:] ]]
remote: ++ return 0
remote: ++ [[ ! -d /home/dokku/cache-test ]]
remote: ++ return 0
remote: ++ local APP=cache-test
remote: +++ get_ipv4_regex
remote: +++ declare 'desc=returns ipv4 regex'
remote: ++++ _ipv4_regex
remote: ++++ declare 'desc=ipv4 regex'
remote: ++++ echo '([0-9]{1,3}[\.]){3}[0-9]{1,3}'
remote: +++ local 'RE_IPV4=([0-9]{1,3}[\.]){3}[0-9]{1,3}'
remote: +++ echo '([0-9]{1,3}[\.]){3}[0-9]{1,3}$'
remote: ++ local 'RE_IPV4=([0-9]{1,3}[\.]){3}[0-9]{1,3}$'
remote: +++ get_ipv6_regex
remote: +++ declare 'desc=returns ipv6 regex'
remote: ++++ _ipv6_regex
remote: ++++ declare 'desc=ipv6 regex'
remote: +++++ _ipv4_regex
remote: +++++ declare 'desc=ipv4 regex'
remote: +++++ echo '([0-9]{1,3}[\.]){3}[0-9]{1,3}'
remote: ++++ local 'RE_IPV4=([0-9]{1,3}[\.]){3}[0-9]{1,3}'
remote: ++++ local 'RE_IPV6=([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|'
remote: ++++ local 'RE_IPV6=([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|'
remote: ++++ local 'RE_IPV6=([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|'
remote: ++++ local 'RE_IPV6=([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|'
remote: ++++ local 'RE_IPV6=([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|'
remote: ++++ local 'RE_IPV6=([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|'
remote: ++++ local 'RE_IPV6=([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}: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]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe08:(:[0-9a-fA-F]{1,4}){2,2}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}([0-9]{1,3}[\.]){3}[0-9]{1,3}|([0-9a-fA-F]{1,4}:){1,4}:([0-9]{1,3}[\.]){3}[0-9]{1,3}$'
remote: +++ is_global_vhost_enabled
remote: +++ declare 'desc=returns true if we have a valid global vhost set; otherwise returns false'
remote: ++++ get_global_vhosts
remote: ++++ declare 'desc=return global vhosts'
remote: ++++ local GLOBAL_VHOST_FILE=/home/dokku/VHOST
remote: ++++ [[ -f /home/dokku/VHOST ]]
remote: ++++ local GLOBAL_VHOSTS=dev.skycenter.aero
remote: ++++ echo dev.skycenter.aero
remote: +++ local GLOBAL_VHOSTS=dev.skycenter.aero
remote: +++ local GLOBAL_VHOSTS_ENABLED=false
remote: ++++ get_ipv4_regex
remote: ++++ declare 'desc=returns ipv4 regex'
remote: +++++ _ipv4_regex
remote: +++++ declare 'desc=ipv4 regex'
remote: +++++ echo '([0-9]{1,3}[\.]){3}[0-9]{1,3}'
remote: ++++ local 'RE_IPV4=([0-9]{1,3}[\.]){3}[0-9]{1,3}'
remote: ++++ echo '([0-9]{1,3}[\.]){3}[0-9]{1,3}$'
remote: +++ local 'RE_IPV4=([0-9]{1,3}[\.]){3}[0-9]{1,3}$'
remote: ++++ get_ipv6_regex
remote: ++++ declare 'desc=returns ipv6 regex'
remote: +++++ _ipv6_regex
remote: +++++ declare 'desc=ipv6 regex'
remote: ++++++ _ipv4_regex
remote: ++++++ declare 'desc=ipv4 regex'
remote: ++++++ echo '([0-9]{1,3}[\.]){3}[0-9]{1,3}'
remote: +++++ local 'RE_IPV4=([0-9]{1,3}[\.]){3}[0-9]{1,3}'
remote: +++++ local 'RE_IPV6=([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|'
remote: +++++ local 'RE_IPV6=([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|'
remote: +++++ local 'RE_IPV6=([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|'
remote: +++++ local 'RE_IPV6=([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|'
remote: +++++ local 'RE_IPV6=([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|'
remote: +++++ local 'RE_IPV6=([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|'
remote: +++++ local 'RE_IPV6=([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([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-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe08:(:[0-9a-fA-F]{1,4}){2,2}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}([0-9]{1,3}[\.]){3}[0-9]{1,3}|([0-9a-fA-F]{1,4}:){1,4}:([0-9]{1,3}[\.]){3}[0-9]{1,3}$'
remote: +++ read -r GLOBAL_VHOST
remote: +++ is_valid_hostname dev.skycenter.aero
remote: +++ declare 'desc=return 0 if argument is a valid hostname; else return 1'
remote: +++ local hostname_string=dev.skycenter.aero
remote: +++ local 'hostname_regex=^([a-z0-9\*-]+\.)*[a-z0-9\*-]+$'
remote: +++ [[ dev.skycenter.aero =~ ^([a-z0-9\*-]+\.)*[a-z0-9\*-]+$ ]]
remote: +++ return 0
remote: +++ local GLOBAL_VHOSTS_ENABLED=true
remote: +++ break
remote: +++ echo true
remote: ++ [[ true == \t\r\u\e ]]
remote: +++ get_global_vhosts
remote: +++ declare 'desc=return global vhosts'
remote: +++ local GLOBAL_VHOST_FILE=/home/dokku/VHOST
remote: +++ [[ -f /home/dokku/VHOST ]]
remote: +++ local GLOBAL_VHOSTS=dev.skycenter.aero
remote: +++ echo dev.skycenter.aero
remote: ++ local VHOSTS=dev.skycenter.aero
remote: ++ read -r VHOST
remote: ++ [[ dev.skycenter.aero =~ ([0-9]{1,3}[\.]){3}[0-9]{1,3}$ ]]
remote: ++ [[ dev.skycenter.aero =~ ([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe08:(:[0-9a-fA-F]{1,4}){2,2}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}([0-9]{1,3}[\.]){3}[0-9]{1,3}|([0-9a-fA-F]{1,4}:){1,4}:([0-9]{1,3}[\.]){3}[0-9]{1,3}$ ]]
remote: ++ local SUBDOMAIN=cache-test
remote: +++ plugn trigger nginx-hostname cache-test cache-test dev.skycenter.aero
remote: +++ :
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + [[ ! -n '' ]]
remote: ++ local hostname=
remote: ++ [[ ! -n '' ]]
remote: ++ [[ cache-test == *.* ]]
remote: ++ local hostname=cache-test.dev.skycenter.aero
remote: ++ echo cache-test.dev.skycenter.aero
remote: ++ read -r VHOST
remote: + local DEFAULT_VHOSTS=cache-test.dev.skycenter.aero
remote: + [[ ! -f /home/dokku/cache-test/VHOST ]]
remote: + [[ -n cache-test.dev.skycenter.aero ]]
remote: + dokku_log_info1 'Creating new /home/dokku/cache-test/VHOST...'
remote: + declare 'desc=log info1 formatter'
remote: + echo '-----> Creating new /home/dokku/cache-test/VHOST...'
remote: + echo cache-test.dev.skycenter.aero
remote: + nginx_build_config cache-test
remote: + declare 'desc=build nginx config to proxy app containers using sigil'
remote: + local APP=cache-test
remote: + verify_app_name cache-test
remote: + declare 'desc=verify app name format and app existence'
remote: + local APP=cache-test
remote: + is_valid_app_name cache-test
remote: + declare 'desc=verify app name format'
remote: + local APP=cache-test
remote: + [[ ! -n cache-test ]]
remote: + [[ cache-test =~ ^[a-z].* ]]
remote: + [[ ! cache-test =~ [A-Z] ]]
remote: + [[ ! cache-test =~ [:] ]]
remote: + return 0
remote: + [[ ! -d /home/dokku/cache-test ]]
remote: + return 0
remote: + local DOKKU_APP_LISTEN_PORT=
remote: + local DOKKU_APP_LISTEN_IP=
remote: + local VHOST_PATH=/home/dokku/cache-test/VHOST
remote: + local URLS_PATH=/home/dokku/cache-test/URLS
remote: + local NGINX_TEMPLATE_NAME=nginx.conf.sigil
remote: + local DEFAULT_NGINX_TEMPLATE=/var/lib/dokku/plugins/available/nginx-vhosts/templates/nginx.conf.sigil
remote: + local NGINX_TEMPLATE=/var/lib/dokku/plugins/available/nginx-vhosts/templates/nginx.conf.sigil
remote: + local SCHEME=http
remote: + local NGINX_TEMPLATE_SOURCE=built-in
remote: + local APP_SSL_PATH=/home/dokku/cache-test/tls
remote: -----> Creating new /home/dokku/cache-test/VHOST...
remote: ++ get_app_raw_tcp_ports cache-test
remote: ++ declare 'desc=extracts raw tcp port numbers from DOCKERFILE_PORTS config variable'
remote: ++ source /var/lib/dokku/plugins/available/config/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
remote: +++ source /var/lib/dokku/core-plugins/available/common/functions
remote: ++++ set -eo pipefail
remote: ++++ [[ -n 1 ]]
remote: ++++ set -x
remote: ++ local APP=cache-test
remote: ++ verify_app_name cache-test
remote: ++ declare 'desc=verify app name format and app existence'
remote: ++ local APP=cache-test
remote: ++ is_valid_app_name cache-test
remote: ++ declare 'desc=verify app name format'
remote: ++ local APP=cache-test
remote: ++ [[ ! -n cache-test ]]
remote: ++ [[ cache-test =~ ^[a-z].* ]]
remote: ++ [[ ! cache-test =~ [A-Z] ]]
remote: ++ [[ ! cache-test =~ [:] ]]
remote: ++ return 0
remote: ++ [[ ! -d /home/dokku/cache-test ]]
remote: ++ return 0
remote: +++ config_get cache-test DOKKU_DOCKERFILE_PORTS
remote: +++ declare 'desc=get value of given config var'
remote: +++ config_sub get cache-test DOKKU_DOCKERFILE_PORTS
remote: +++ declare 'desc=executes a config subcommand'
remote: +++ local name=get
remote: +++ shift
remote: +++ /var/lib/dokku/plugins/available/config/subcommands/get config:get cache-test DOKKU_DOCKERFILE_PORTS
remote: ++ local DOCKERFILE_PORTS=80
remote: ++ for p in '$DOCKERFILE_PORTS'
remote: ++ [[ ! 80 =~ .*udp.* ]]
remote: ++ p=80
remote: ++ raw_tcp_ports+='80 '
remote: +++ xargs
remote: +++ echo '80 '
remote: ++ local raw_tcp_ports=80
remote: ++ echo 80
remote: + local RAW_TCP_PORTS=80
remote: + local DOKKU_APP_LISTENERS
remote: ++ is_app_vhost_enabled cache-test
remote: ++ declare 'desc=returns true or false if vhost support is enabled for a given application'
remote: ++ source /var/lib/dokku/plugins/available/config/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
remote: +++ source /var/lib/dokku/core-plugins/available/common/functions
remote: ++++ set -eo pipefail
remote: ++++ [[ -n 1 ]]
remote: ++++ set -x
remote: ++ local APP=cache-test
remote: ++ verify_app_name cache-test
remote: ++ declare 'desc=verify app name format and app existence'
remote: ++ local APP=cache-test
remote: ++ is_valid_app_name cache-test
remote: ++ declare 'desc=verify app name format'
remote: ++ local APP=cache-test
remote: ++ [[ ! -n cache-test ]]
remote: ++ [[ cache-test =~ ^[a-z].* ]]
remote: ++ [[ ! cache-test =~ [A-Z] ]]
remote: ++ [[ ! cache-test =~ [:] ]]
remote: ++ return 0
remote: ++ [[ ! -d /home/dokku/cache-test ]]
remote: ++ return 0
remote: +++ config_get cache-test NO_VHOST
remote: +++ declare 'desc=get value of given config var'
remote: +++ config_sub get cache-test NO_VHOST
remote: +++ declare 'desc=executes a config subcommand'
remote: +++ local name=get
remote: +++ shift
remote: +++ /var/lib/dokku/plugins/available/config/subcommands/get config:get cache-test NO_VHOST
remote: ++ local NO_VHOST=
remote: ++ local APP_VHOST_ENABLED=true
remote: ++ [[ '' == \1 ]]
remote: ++ echo true
remote: + local IS_APP_VHOST_ENABLED=true
remote: ++ is_app_proxy_enabled cache-test
remote: ++ declare 'desc=return true if proxy is enabled; otherwise return false'
remote: ++ local APP=cache-test
remote: ++ verify_app_name cache-test
remote: ++ declare 'desc=verify app name format and app existence'
remote: ++ local APP=cache-test
remote: ++ is_valid_app_name cache-test
remote: ++ declare 'desc=verify app name format'
remote: ++ local APP=cache-test
remote: ++ [[ ! -n cache-test ]]
remote: ++ [[ cache-test =~ ^[a-z].* ]]
remote: ++ [[ ! cache-test =~ [A-Z] ]]
remote: ++ [[ ! cache-test =~ [:] ]]
remote: ++ return 0
remote: ++ [[ ! -d /home/dokku/cache-test ]]
remote: ++ return 0
remote: ++ local APP_PROXY_ENABLED=true
remote: +++ config_get cache-test DOKKU_DISABLE_PROXY
remote: +++ declare 'desc=get value of given config var'
remote: +++ config_sub get cache-test DOKKU_DISABLE_PROXY
remote: +++ declare 'desc=executes a config subcommand'
remote: +++ local name=get
remote: +++ shift
remote: +++ /var/lib/dokku/plugins/available/config/subcommands/get config:get cache-test DOKKU_DISABLE_PROXY
remote: ++ local DOKKU_DISABLE_PROXY=
remote: ++ [[ -n '' ]]
remote: ++ echo true
remote: + [[ true == \t\r\u\e ]]
remote: + [[ -z '' ]]
remote: + [[ -z '' ]]
remote: ++ xargs
remote: ++ plugn trigger network-get-listeners cache-test
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + [[ ! -n '' ]]
remote: + DOKKU_APP_LISTENERS=172.17.0.3:80
remote: + configure_nginx_ports cache-test
remote: + declare 'desc=configure nginx listening ports'
remote: + local APP=cache-test
remote: + verify_app_name cache-test
remote: + declare 'desc=verify app name format and app existence'
remote: + local APP=cache-test
remote: + is_valid_app_name cache-test
remote: + declare 'desc=verify app name format'
remote: + local APP=cache-test
remote: + [[ ! -n cache-test ]]
remote: + [[ cache-test =~ ^[a-z].* ]]
remote: + [[ ! cache-test =~ [A-Z] ]]
remote: + [[ ! cache-test =~ [:] ]]
remote: + return 0
remote: + [[ ! -d /home/dokku/cache-test ]]
remote: + return 0
remote: ++ get_app_raw_tcp_ports cache-test
remote: ++ declare 'desc=extracts raw tcp port numbers from DOCKERFILE_PORTS config variable'
remote: ++ source /var/lib/dokku/plugins/available/config/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
remote: +++ source /var/lib/dokku/core-plugins/available/common/functions
remote: ++++ set -eo pipefail
remote: ++++ [[ -n 1 ]]
remote: ++++ set -x
remote: ++ local APP=cache-test
remote: ++ verify_app_name cache-test
remote: ++ declare 'desc=verify app name format and app existence'
remote: ++ local APP=cache-test
remote: ++ is_valid_app_name cache-test
remote: ++ declare 'desc=verify app name format'
remote: ++ local APP=cache-test
remote: ++ [[ ! -n cache-test ]]
remote: ++ [[ cache-test =~ ^[a-z].* ]]
remote: ++ [[ ! cache-test =~ [A-Z] ]]
remote: ++ [[ ! cache-test =~ [:] ]]
remote: ++ return 0
remote: ++ [[ ! -d /home/dokku/cache-test ]]
remote: ++ return 0
remote: +++ config_get cache-test DOKKU_DOCKERFILE_PORTS
remote: +++ declare 'desc=get value of given config var'
remote: +++ config_sub get cache-test DOKKU_DOCKERFILE_PORTS
remote: +++ declare 'desc=executes a config subcommand'
remote: +++ local name=get
remote: +++ shift
remote: +++ /var/lib/dokku/plugins/available/config/subcommands/get config:get cache-test DOKKU_DOCKERFILE_PORTS
remote: ++ local DOCKERFILE_PORTS=80
remote: ++ for p in '$DOCKERFILE_PORTS'
remote: ++ [[ ! 80 =~ .*udp.* ]]
remote: ++ p=80
remote: ++ raw_tcp_ports+='80 '
remote: +++ xargs
remote: +++ echo '80 '
remote: ++ local raw_tcp_ports=80
remote: ++ echo 80
remote: + local RAW_TCP_PORTS=80
remote: ++ config_get cache-test DOKKU_NGINX_PORT
remote: ++ declare 'desc=get value of given config var'
remote: ++ config_sub get cache-test DOKKU_NGINX_PORT
remote: ++ declare 'desc=executes a config subcommand'
remote: ++ local name=get
remote: ++ shift
remote: ++ /var/lib/dokku/plugins/available/config/subcommands/get config:get cache-test DOKKU_NGINX_PORT
remote: + local DOKKU_NGINX_PORT=
remote: ++ config_get cache-test DOKKU_NGINX_SSL_PORT
remote: ++ declare 'desc=get value of given config var'
remote: ++ config_sub get cache-test DOKKU_NGINX_SSL_PORT
remote: ++ declare 'desc=executes a config subcommand'
remote: ++ local name=get
remote: ++ shift
remote: ++ /var/lib/dokku/plugins/available/config/subcommands/get config:get cache-test DOKKU_NGINX_SSL_PORT
remote: + local DOKKU_NGINX_SSL_PORT=
remote: ++ config_get cache-test DOKKU_PROXY_PORT_MAP
remote: ++ declare 'desc=get value of given config var'
remote: ++ config_sub get cache-test DOKKU_PROXY_PORT_MAP
remote: ++ declare 'desc=executes a config subcommand'
remote: ++ local name=get
remote: ++ shift
remote: ++ /var/lib/dokku/plugins/available/config/subcommands/get config:get cache-test DOKKU_PROXY_PORT_MAP
remote: + local DOKKU_PROXY_PORT_MAP=
remote: ++ is_app_vhost_enabled cache-test
remote: ++ declare 'desc=returns true or false if vhost support is enabled for a given application'
remote: ++ source /var/lib/dokku/plugins/available/config/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
remote: +++ source /var/lib/dokku/core-plugins/available/common/functions
remote: ++++ set -eo pipefail
remote: ++++ [[ -n 1 ]]
remote: ++++ set -x
remote: ++ local APP=cache-test
remote: ++ verify_app_name cache-test
remote: ++ declare 'desc=verify app name format and app existence'
remote: ++ local APP=cache-test
remote: ++ is_valid_app_name cache-test
remote: ++ declare 'desc=verify app name format'
remote: ++ local APP=cache-test
remote: ++ [[ ! -n cache-test ]]
remote: ++ [[ cache-test =~ ^[a-z].* ]]
remote: ++ [[ ! cache-test =~ [A-Z] ]]
remote: ++ [[ ! cache-test =~ [:] ]]
remote: ++ return 0
remote: ++ [[ ! -d /home/dokku/cache-test ]]
remote: ++ return 0
remote: +++ config_get cache-test NO_VHOST
remote: +++ declare 'desc=get value of given config var'
remote: +++ config_sub get cache-test NO_VHOST
remote: +++ declare 'desc=executes a config subcommand'
remote: +++ local name=get
remote: +++ shift
remote: +++ /var/lib/dokku/plugins/available/config/subcommands/get config:get cache-test NO_VHOST
remote: ++ local NO_VHOST=
remote: ++ local APP_VHOST_ENABLED=true
remote: ++ [[ '' == \1 ]]
remote: ++ echo true
remote: + local IS_APP_VHOST_ENABLED=true
remote: + local UPSTREAM_PORT=5000
remote: + [[ -z '' ]]
remote: + [[ -z 80 ]]
remote: + [[ -z '' ]]
remote: + is_ssl_enabled cache-test
remote: + declare 'desc=returns 0 if ssl is enabled for given app'
remote: + local APP=cache-test
remote: + verify_app_name cache-test
remote: + declare 'desc=verify app name format and app existence'
remote: + local APP=cache-test
remote: + is_valid_app_name cache-test
remote: + declare 'desc=verify app name format'
remote: + local APP=cache-test
remote: + [[ ! -n cache-test ]]
remote: + [[ cache-test =~ ^[a-z].* ]]
remote: + [[ ! cache-test =~ [A-Z] ]]
remote: + [[ ! cache-test =~ [:] ]]
remote: + return 0
remote: + [[ ! -d /home/dokku/cache-test ]]
remote: + return 0
remote: + local APP_SSL_PATH=/home/dokku/cache-test/tls
remote: + [[ -e /home/dokku/cache-test/tls/server.crt ]]
remote: + return 1
remote: + [[ -z '' ]]
remote: + [[ -n 80 ]]
remote: + local RAW_TCP_PORT
remote: + for RAW_TCP_PORT in '$RAW_TCP_PORTS'
remote: + local 'PROXY_PORT_MAP+= http:80:80 '
remote: + [[ -n http:80:80 ]]
remote: ++ xargs
remote: ++ echo ' http:80:80 '
remote: + local PROXY_PORT_MAP=http:80:80
remote: +++ remove_val_from_list '' '' ' '
remote: +++ declare 'desc=remove value () from list () separated by delimiter ( ) (delimiter defaults to comma) and return list'
remote: +++ local value= list= 'delimiter= '
remote: +++ list=
remote: +++ list=
remote: +++ list=
remote: +++ list=
remote: +++ echo ''
remote: ++ merge_dedupe_list '' ' '
remote: ++ declare 'desc=combine lists () separated by delimiter ( ) (delimiter defaults to comma), dedupe and return list'
remote: ++ local input_lists= 'delimiter= '
remote: +++ xargs
remote: +++ uniq
remote: +++ sort
remote: +++ tr ' ' '
remote: '
remote: ++ local merged_list=
remote: ++ echo ''
remote: + local 'PROXY_PORT_MAP+= '
remote: + config_set --no-restart cache-test 'DOKKU_PROXY_PORT_MAP=http:80:80 '
remote: + declare 'desc=set value of given config var'
remote: + config_sub set --no-restart cache-test 'DOKKU_PROXY_PORT_MAP=http:80:80 '
remote: + declare 'desc=executes a config subcommand'
remote: + local name=set
remote: + shift
remote: + /var/lib/dokku/plugins/available/config/subcommands/set config:set --no-restart cache-test 'DOKKU_PROXY_PORT_MAP=http:80:80 '
remote: -----> Setting config vars
remote:  DOKKU_PROXY_PORT_MAP: http:80:80
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + [[ ! -n '' ]]
remote: ++ config_get cache-test DOKKU_NGINX_PORT
remote: ++ declare 'desc=get value of given config var'
remote: ++ config_sub get cache-test DOKKU_NGINX_PORT
remote: ++ declare 'desc=executes a config subcommand'
remote: ++ local name=get
remote: ++ shift
remote: ++ /var/lib/dokku/plugins/available/config/subcommands/get config:get cache-test DOKKU_NGINX_PORT
remote: + local NGINX_PORT=
remote: ++ config_get cache-test DOKKU_NGINX_SSL_PORT
remote: ++ declare 'desc=get value of given config var'
remote: ++ config_sub get cache-test DOKKU_NGINX_SSL_PORT
remote: ++ declare 'desc=executes a config subcommand'
remote: ++ local name=get
remote: ++ shift
remote: ++ /var/lib/dokku/plugins/available/config/subcommands/get config:get cache-test DOKKU_NGINX_SSL_PORT
remote: + local NGINX_SSL_PORT=
remote: ++ config_get cache-test DOKKU_PROXY_PORT_MAP
remote: ++ declare 'desc=get value of given config var'
remote: ++ config_sub get cache-test DOKKU_PROXY_PORT_MAP
remote: ++ declare 'desc=executes a config subcommand'
remote: ++ local name=get
remote: ++ shift
remote: ++ /var/lib/dokku/plugins/available/config/subcommands/get config:get cache-test DOKKU_PROXY_PORT_MAP
remote: + local 'PROXY_PORT_MAP=http:80:80 '
remote: + local PORT_MAP
remote: + for PORT_MAP in '$PROXY_PORT_MAP'
remote: ++ awk -F : '{ print $3 }'
remote: + local PROXY_UPSTREAM_PORT=80
remote: ++ is_val_in_list 80 '' ' '
remote: ++ declare 'desc=return true if value (80) is in list () separated by delimiter ( ); delimiter defaults to comma'
remote: ++ local value=80 list= 'delimiter= '
remote: ++ local 'IFS= ' val_in_list=false
remote: ++ echo false
remote: + [[ false == \f\a\l\s\e ]]
remote: + local 'PROXY_UPSTREAM_PORTS+=80 '
remote: ++ xargs
remote: ++ echo '80 '
remote: + local PROXY_UPSTREAM_PORTS=80
remote: ++ mktemp -d /tmp/dokku_nginx_template.XXXXX
remote: + local NGINX_BUILD_CONFIG_TMP_WORK_DIR=/tmp/dokku_nginx_template.fAcL9
remote: ++ mktemp --tmpdir=/tmp/dokku_nginx_template.fAcL9 nginx.conf.XXXXXX
remote: + local NGINX_CONF=/tmp/dokku_nginx_template.fAcL9/nginx.conf.OhGSLA
remote: + local CUSTOM_NGINX_TEMPLATE=/tmp/dokku_nginx_template.fAcL9/nginx.conf.sigil
remote: + trap 'rm -rf $NGINX_CONF $NGINX_BUILD_CONFIG_TMP_WORK_DIR > /dev/null' RETURN INT TERM EXIT
remote: + get_custom_nginx_template cache-test /tmp/dokku_nginx_template.fAcL9/nginx.conf.sigil
remote: + declare 'desc=attempts to copy custom nginx template from app image'
remote: + local APP=cache-test
remote: + verify_app_name cache-test
remote: + declare 'desc=verify app name format and app existence'
remote: + local APP=cache-test
remote: + is_valid_app_name cache-test
remote: + declare 'desc=verify app name format'
remote: + local APP=cache-test
remote: + [[ ! -n cache-test ]]
remote: + [[ cache-test =~ ^[a-z].* ]]
remote: + [[ ! cache-test =~ [A-Z] ]]
remote: + [[ ! cache-test =~ [:] ]]
remote: + return 0
remote: + [[ ! -d /home/dokku/cache-test ]]
remote: + return 0
remote: + local DESTINATION=/tmp/dokku_nginx_template.fAcL9/nginx.conf.sigil
remote: ++ get_running_image_tag cache-test
remote: ++ declare 'desc=retrieve current image tag for a given app. returns empty string if no deployed containers are found'
remote: ++ local APP=cache-test
remote: ++ verify_app_name cache-test
remote: ++ declare 'desc=verify app name format and app existence'
remote: ++ local APP=cache-test
remote: ++ is_valid_app_name cache-test
remote: ++ declare 'desc=verify app name format'
remote: ++ local APP=cache-test
remote: ++ [[ ! -n cache-test ]]
remote: ++ [[ cache-test =~ ^[a-z].* ]]
remote: ++ [[ ! cache-test =~ [A-Z] ]]
remote: ++ [[ ! cache-test =~ [:] ]]
remote: ++ return 0
remote: ++ [[ ! -d /home/dokku/cache-test ]]
remote: ++ return 0
remote: ++ CIDS=($(get_app_container_ids "$APP"))
remote: +++ get_app_container_ids cache-test
remote: +++ declare 'desc=returns list of docker container ids for given app and optional container_type'
remote: +++ local APP=cache-test
remote: +++ local CONTAINER_TYPE=
remote: +++ verify_app_name cache-test
remote: +++ declare 'desc=verify app name format and app existence'
remote: +++ local APP=cache-test
remote: +++ is_valid_app_name cache-test
remote: +++ declare 'desc=verify app name format'
remote: +++ local APP=cache-test
remote: +++ [[ ! -n cache-test ]]
remote: +++ [[ cache-test =~ ^[a-z].* ]]
remote: +++ [[ ! cache-test =~ [A-Z] ]]
remote: +++ [[ ! cache-test =~ [:] ]]
remote: +++ return 0
remote: +++ [[ ! -d /home/dokku/cache-test ]]
remote: +++ return 0
remote: +++ [[ -f /home/dokku/cache-test/CONTAINER ]]
remote: +++ [[ -n '' ]]
remote: +++ local 'CONTAINER_PATTERN=/home/dokku/cache-test/CONTAINER.*'
remote: +++ shopt -s nullglob
remote: +++ local DOKKU_CID_FILE
remote: +++ for DOKKU_CID_FILE in '$CONTAINER_PATTERN'
remote: +++ local 'DOKKU_CIDS+= '
remote: +++ local DOKKU_CIDS+=690aa0c40a4a9f4c2f44cb5fc91d600652f1fee7c210696fa526d26e5b9e443d
remote: +++ local 'DOKKU_CIDS+= '
remote: +++ shopt -u nullglob
remote: +++ echo ' 690aa0c40a4a9f4c2f44cb5fc91d600652f1fee7c210696fa526d26e5b9e443d '
remote: ++ local CIDS
remote: +++ awk -F: '{ print $2 }'
remote: +++ docker inspect -f '{{ .Config.Image }}' 690aa0c40a4a9f4c2f44cb5fc91d600652f1fee7c210696fa526d26e5b9e443d
remote: ++ local RUNNING_IMAGE_TAG=latest
remote: ++ echo latest
remote: + local IMAGE_TAG=latest
remote: ++ get_deploying_app_image_name cache-test latest
remote: ++ declare 'desc=return deploying image identifier for a given app, tag tuple. validate if tag is presented'
remote: ++ local APP=cache-test
remote: ++ local IMAGE_TAG=latest
remote: ++ IMAGE_REPO=
remote: ++ is_valid_app_name cache-test
remote: ++ declare 'desc=verify app name format'
remote: ++ local APP=cache-test
remote: ++ [[ ! -n cache-test ]]
remote: ++ [[ cache-test =~ ^[a-z].* ]]
remote: ++ [[ ! cache-test =~ [A-Z] ]]
remote: ++ [[ ! cache-test =~ [:] ]]
remote: ++ return 0
remote: +++ plugn trigger deployed-app-repository cache-test
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + [[ ! -n '' ]]
remote: ++ local IMAGE_REMOTE_REPOSITORY=
remote: +++ plugn trigger deployed-app-image-tag cache-test
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + [[ ! -n '' ]]
remote: ++ local NEW_IMAGE_TAG=
remote: +++ plugn trigger deployed-app-image-repo cache-test
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + [[ ! -n '' ]]
remote: ++ local NEW_IMAGE_REPO=
remote: ++ [[ -n '' ]]
remote: ++ [[ -n '' ]]
remote: ++ [[ -z '' ]]
remote: +++ get_app_image_repo cache-test
remote: +++ declare 'desc=central definition of image repo pattern'
remote: +++ local APP=cache-test
remote: +++ local IMAGE_REPO=dokku/cache-test
remote: +++ is_valid_app_name cache-test
remote: +++ declare 'desc=verify app name format'
remote: +++ local APP=cache-test
remote: +++ [[ ! -n cache-test ]]
remote: +++ [[ cache-test =~ ^[a-z].* ]]
remote: +++ [[ ! cache-test =~ [A-Z] ]]
remote: +++ [[ ! cache-test =~ [:] ]]
remote: +++ return 0
remote: +++ echo dokku/cache-test
remote: ++ IMAGE_REPO=dokku/cache-test
remote: ++ [[ -z latest ]]
remote: ++ local IMAGE=dokku/cache-test:latest
remote: ++ verify_image dokku/cache-test:latest
remote: ++ declare 'desc=verify image existence'
remote: ++ local IMAGE=dokku/cache-test:latest
remote: ++ docker inspect dokku/cache-test:latest
remote: ++ return 0
remote: ++ echo dokku/cache-test:latest
remote: + local IMAGE=dokku/cache-test:latest
remote: + local NGINX_TEMPLATE_NAME=nginx.conf.sigil
remote: + copy_from_image dokku/cache-test:latest nginx.conf.sigil /tmp/dokku_nginx_template.fAcL9/nginx.conf.sigil
remote: + [[ -f /tmp/dokku_nginx_template.fAcL9/nginx.conf.sigil ]]
remote: ++ get_app_domains cache-test
remote: ++ declare 'desc=return app domains'
remote: ++ verify_app_name cache-test
remote: ++ declare 'desc=verify app name format and app existence'
remote: ++ local APP=cache-test
remote: ++ is_valid_app_name cache-test
remote: ++ declare 'desc=verify app name format'
remote: ++ local APP=cache-test
remote: ++ [[ ! -n cache-test ]]
remote: ++ [[ cache-test =~ ^[a-z].* ]]
remote: ++ [[ ! cache-test =~ [A-Z] ]]
remote: ++ [[ ! cache-test =~ [:] ]]
remote: ++ return 0
remote: ++ [[ ! -d /home/dokku/cache-test ]]
remote: ++ return 0
remote: ++ local APP=cache-test
remote: ++ local APP_VHOST_FILE=/home/dokku/cache-test/VHOST
remote: ++ local GLOBAL_VHOST_PATH=/home/dokku/VHOST
remote: ++ local GLOBAL_HOSTNAME_PATH=/home/dokku/HOSTNAME
remote: +++ is_app_vhost_enabled cache-test
remote: +++ declare 'desc=returns true or false if vhost support is enabled for a given application'
remote: +++ source /var/lib/dokku/plugins/available/config/functions
remote: ++++ set -eo pipefail
remote: ++++ [[ -n 1 ]]
remote: ++++ set -x
remote: ++++ source /var/lib/dokku/core-plugins/available/common/functions
remote: +++++ set -eo pipefail
remote: +++++ [[ -n 1 ]]
remote: +++++ set -x
remote: +++ local APP=cache-test
remote: +++ verify_app_name cache-test
remote: +++ declare 'desc=verify app name format and app existence'
remote: +++ local APP=cache-test
remote: +++ is_valid_app_name cache-test
remote: +++ declare 'desc=verify app name format'
remote: +++ local APP=cache-test
remote: +++ [[ ! -n cache-test ]]
remote: +++ [[ cache-test =~ ^[a-z].* ]]
remote: +++ [[ ! cache-test =~ [A-Z] ]]
remote: +++ [[ ! cache-test =~ [:] ]]
remote: +++ return 0
remote: +++ [[ ! -d /home/dokku/cache-test ]]
remote: +++ return 0
remote: ++++ config_get cache-test NO_VHOST
remote: ++++ declare 'desc=get value of given config var'
remote: ++++ config_sub get cache-test NO_VHOST
remote: ++++ declare 'desc=executes a config subcommand'
remote: ++++ local name=get
remote: ++++ shift
remote: ++++ /var/lib/dokku/plugins/available/config/subcommands/get config:get cache-test NO_VHOST
remote: +++ local NO_VHOST=
remote: +++ local APP_VHOST_ENABLED=true
remote: +++ [[ '' == \1 ]]
remote: +++ echo true
remote: ++ [[ true == \t\r\u\e ]]
remote: ++ [[ -f /home/dokku/cache-test/VHOST ]]
remote: ++ cat /home/dokku/cache-test/VHOST
remote: + local NONSSL_VHOSTS=cache-test.dev.skycenter.aero
remote: ++ xargs
remote: ++ echo cache-test.dev.skycenter.aero
remote: + local NOSSL_SERVER_NAME=cache-test.dev.skycenter.aero
remote: + is_ssl_enabled cache-test
remote: + declare 'desc=returns 0 if ssl is enabled for given app'
remote: + local APP=cache-test
remote: + verify_app_name cache-test
remote: + declare 'desc=verify app name format and app existence'
remote: + local APP=cache-test
remote: + is_valid_app_name cache-test
remote: + declare 'desc=verify app name format'
remote: + local APP=cache-test
remote: + [[ ! -n cache-test ]]
remote: + [[ cache-test =~ ^[a-z].* ]]
remote: + [[ ! cache-test =~ [A-Z] ]]
remote: + [[ ! cache-test =~ [:] ]]
remote: + return 0
remote: + [[ ! -d /home/dokku/cache-test ]]
remote: + return 0
remote: + local APP_SSL_PATH=/home/dokku/cache-test/tls
remote: + [[ -e /home/dokku/cache-test/tls/server.crt ]]
remote: + return 1
remote: + local NGINX_LOCATION NGINX_VERSION SPDY_SUPPORTED HTTP2_SUPPORTED
remote: ++ get_nginx_location
remote: ++ declare 'desc=check that nginx is at the expected location and return it'
remote: ++ local NGINX_LOCATION
remote: +++ which nginx
remote: ++ NGINX_LOCATION=/usr/sbin/nginx
remote: ++ [[ -z /usr/sbin/nginx ]]
remote: ++ [[ ! -x /usr/sbin/nginx ]]
remote: ++ echo /usr/sbin/nginx
remote: + NGINX_LOCATION=/usr/sbin/nginx
remote: + [[ -z /usr/sbin/nginx ]]
remote: ++ cut -d/ -f 2
remote: ++ /usr/sbin/nginx -v
remote: + NGINX_VERSION='1.10.3 (Ubuntu)'
remote: ++ is_spdy_enabled '1.10.3 (Ubuntu)'
remote: ++ declare 'desc=detects whether the installed nginx version has spdy support'
remote: ++ local 'NGINX_VERSION=1.10.3 (Ubuntu)'
remote: ++ local MAJOR_VERSION MINOR_VERSION PATCH_VERSION
remote: ++ local HAS_SUPPORT=true
remote: +++ awk '{split($0,a,"."); print a[1]}'
remote: +++ echo '1.10.3 (Ubuntu)'
remote: ++ MAJOR_VERSION=1
remote: +++ awk '{split($0,a,"."); print a[2]}'
remote: +++ echo '1.10.3 (Ubuntu)'
remote: ++ MINOR_VERSION=10
remote: +++ awk '{split($0,a,"."); print a[3]}'
remote: +++ echo '1.10.3 (Ubuntu)'
remote: ++ PATCH_VERSION='3 (Ubuntu)'
remote: ++ [[ 1 -ge 2 ]]
remote: ++ [[ 1 -eq 1 ]]
remote: ++ [[ 10 -ge 10 ]]
remote: ++ HAS_SUPPORT=false
remote: ++ echo false
remote: + SPDY_SUPPORTED=false
remote: ++ is_http2_enabled '1.10.3 (Ubuntu)'
remote: ++ declare 'desc=detects whether the installed nginx version has http2 support'
remote: ++ local 'NGINX_VERSION=1.10.3 (Ubuntu)'
remote: ++ local MAJOR_VERSION MINOR_VERSION PATCH_VERSION
remote: ++ local HAS_SUPPORT=false
remote: +++ awk '{split($0,a,"."); print a[1]}'
remote: +++ echo '1.10.3 (Ubuntu)'
remote: ++ MAJOR_VERSION=1
remote: +++ awk '{split($0,a,"."); print a[2]}'
remote: +++ echo '1.10.3 (Ubuntu)'
remote: ++ MINOR_VERSION=10
remote: +++ awk '{split($0,a,"."); print a[3]}'
remote: +++ echo '1.10.3 (Ubuntu)'
remote: ++ PATCH_VERSION='3 (Ubuntu)'
remote: ++ [[ 1 -ge 2 ]]
remote: ++ [[ 1 -eq 1 ]]
remote: ++ [[ 10 -eq 11 ]]
remote: ++ [[ 10 -ge 12 ]]
remote: ++ echo false
remote: + HTTP2_SUPPORTED=false
remote: ++ xargs
remote: ++ echo 'http:80:80 '
remote: + PROXY_PORT_MAP=http:80:80
remote: ++ config_export app cache-test
remote: ++ declare 'desc=returns export command for config variable of specified type (app/global)'
remote: ++ local CONFIG_TYPE=app
remote: ++ shift
remote: ++ local APP=cache-test
remote: ++ [[ app == \g\l\o\b\a\l ]]
remote: ++ shift
remote: ++ config_sub export cache-test
remote: ++ declare 'desc=executes a config subcommand'
remote: ++ local name=export
remote: ++ shift
remote: ++ /var/lib/dokku/plugins/available/config/subcommands/export config:export cache-test
remote: ++ return 0
remote: + eval 'export DOKKU_APP_TYPE='\''dockerfile'\''
remote: export DOKKU_DOCKERFILE_CMD='\''CMD ["/bin/ash", "-c", "sleep 12000000"]'\''
remote: export DOKKU_DOCKERFILE_PORTS='\''80'\''
remote: export DOKKU_PROXY_PORT_MAP='\''http:80:80 '\'''
remote: ++ export DOKKU_APP_TYPE=dockerfile
remote: ++ DOKKU_APP_TYPE=dockerfile
remote: ++ export 'DOKKU_DOCKERFILE_CMD=CMD ["/bin/ash", "-c", "sleep 12000000"]'
remote: ++ DOKKU_DOCKERFILE_CMD='CMD ["/bin/ash", "-c", "sleep 12000000"]'
remote: ++ export DOKKU_DOCKERFILE_PORTS=80
remote: ++ DOKKU_DOCKERFILE_PORTS=80
remote: ++ export 'DOKKU_PROXY_PORT_MAP=http:80:80 '
remote: ++ DOKKU_PROXY_PORT_MAP='http:80:80 '
remote: + SIGIL_PARAMS=(-f $NGINX_TEMPLATE APP="$APP" DOKKU_ROOT="$DOKKU_ROOT" NOSSL_SERVER_NAME="$NOSSL_SERVER_NAME" DOKKU_APP_LISTENERS="$DOKKU_APP_LISTENERS" DOKKU_LIB_ROOT="$DOKKU_LIB_ROOT" PASSED_LISTEN_IP_PORT="$PASSED_LISTEN_IP_PORT" SPDY_SUPPORTED="$SPDY_SUPPORTED" HTTP2_SUPPORTED="$HTTP2_SUPPORTED" DOKKU_APP_LISTEN_PORT="$DOKKU_APP_LISTEN_PORT" DOKKU_APP_LISTEN_IP="$DOKKU_APP_LISTEN_IP" APP_SSL_PATH="$APP_SSL_PATH" SSL_INUSE="$SSL_INUSE" SSL_SERVER_NAME="$SSL_SERVER_NAME" NGINX_PORT="$NGINX_PORT" NGINX_SSL_PORT="$NGINX_SSL_PORT" RAW_TCP_PORTS="$RAW_TCP_PORTS" PROXY_PORT_MAP="$PROXY_PORT_MAP" PROXY_UPSTREAM_PORTS="$PROXY_UPSTREAM_PORTS")
remote: + local SIGIL_PARAMS
remote: + xargs -i echo '-----> Configuring {}...(using built-in template)'
remote: ++ sort -u
remote: ++ tr ' ' '\n'
remote: ++ echo '' cache-test.dev.skycenter.aero
remote: -----> Configuring cache-test.dev.skycenter.aero...(using built-in template)
remote: + cat -s
remote: + sigil -f /var/lib/dokku/plugins/available/nginx-vhosts/templates/nginx.conf.sigil APP=cache-test DOKKU_ROOT=/home/dokku NOSSL_SERVER_NAME=cache-test.dev.skycenter.aero DOKKU_APP_LISTENERS=172.17.0.3:80 DOKKU_LIB_ROOT=/var/lib/dokku PASSED_LISTEN_IP_PORT= SPDY_SUPPORTED=false HTTP2_SUPPORTED=false DOKKU_APP_LISTEN_PORT= DOKKU_APP_LISTEN_IP= APP_SSL_PATH=/home/dokku/cache-test/tls SSL_INUSE= SSL_SERVER_NAME= NGINX_PORT= NGINX_SSL_PORT= RAW_TCP_PORTS=80 PROXY_PORT_MAP=http:80:80 PROXY_UPSTREAM_PORTS=80
remote: + is_deployed cache-test
remote: + declare 'desc=return 0 if given app has a running container'
remote: + local APP=cache-test
remote: + [[ -f /home/dokku/cache-test/CONTAINER ]]
remote: ++ ls /home/dokku/cache-test/CONTAINER.web.1
remote: ++ echo 0
remote: + [[ 0 -eq 0 ]]
remote: + return 0
remote: + dokku_log_info1 'Creating http nginx.conf'
remote: + declare 'desc=log info1 formatter'
remote: + echo '-----> Creating http nginx.conf'
remote: + mv /tmp/dokku_nginx_template.fAcL9/nginx.conf.OhGSLA /home/dokku/cache-test/nginx.conf
remote: -----> Creating http nginx.conf
remote: + is_deployed cache-test
remote: + declare 'desc=return 0 if given app has a running container'
remote: + local APP=cache-test
remote: + [[ -f /home/dokku/cache-test/CONTAINER ]]
remote: ++ ls /home/dokku/cache-test/CONTAINER.web.1
remote: ++ echo 0
remote: + [[ 0 -eq 0 ]]
remote: + return 0
remote: + dokku_log_info1 'Running nginx-pre-reload'
remote: + declare 'desc=log info1 formatter'
remote: + echo '-----> Running nginx-pre-reload'
remote: + plugn trigger nginx-pre-reload cache-test '' ''
remote: -----> Running nginx-pre-reload
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + [[ ! -n '' ]]
remote: + source /var/lib/dokku/plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + source /var/lib/dokku/plugins/available/certs/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: ++ source /var/lib/dokku/core-plugins/available/common/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
remote: + source /var/lib/dokku/plugins/available/config/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: ++ source /var/lib/dokku/core-plugins/available/common/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
remote: + source /var/lib/dokku/plugins/available/proxy/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: ++ source /var/lib/dokku/core-plugins/available/common/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
remote: ++ source /var/lib/dokku/plugins/available/config/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
remote: +++ source /var/lib/dokku/core-plugins/available/common/functions
remote: ++++ set -eo pipefail
remote: ++++ [[ -n 1 ]]
remote: ++++ set -x
remote: + source /var/lib/dokku/plugins/available/nginx-vhosts/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: ++ source /var/lib/dokku/core-plugins/available/common/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
remote: ++ source /var/lib/dokku/plugins/available/certs/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
remote: +++ source /var/lib/dokku/core-plugins/available/common/functions
remote: ++++ set -eo pipefail
remote: ++++ [[ -n 1 ]]
remote: ++++ set -x
remote: ++ source /var/lib/dokku/plugins/available/config/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
remote: +++ source /var/lib/dokku/core-plugins/available/common/functions
remote: ++++ set -eo pipefail
remote: ++++ [[ -n 1 ]]
remote: ++++ set -x
remote: ++ source /var/lib/dokku/plugins/available/domains/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
remote: +++ source /var/lib/dokku/core-plugins/available/common/functions
remote: ++++ set -eo pipefail
remote: ++++ [[ -n 1 ]]
remote: ++++ set -x
remote: ++ source /var/lib/dokku/plugins/available/proxy/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
remote: +++ source /var/lib/dokku/core-plugins/available/common/functions
remote: ++++ set -eo pipefail
remote: ++++ [[ -n 1 ]]
remote: ++++ set -x
remote: +++ source /var/lib/dokku/plugins/available/config/functions
remote: ++++ set -eo pipefail
remote: ++++ [[ -n 1 ]]
remote: ++++ set -x
remote: ++++ source /var/lib/dokku/core-plugins/available/common/functions
remote: +++++ set -eo pipefail
remote: +++++ [[ -n 1 ]]
remote: +++++ set -x
remote: ++ source /var/lib/dokku/plugins/available/ps/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
remote: +++ source /var/lib/dokku/core-plugins/available/common/functions
remote: ++++ set -eo pipefail
remote: ++++ [[ -n 1 ]]
remote: ++++ set -x
remote: +++ source /var/lib/dokku/plugins/available/config/functions
remote: ++++ set -eo pipefail
remote: ++++ [[ -n 1 ]]
remote: ++++ set -x
remote: ++++ source /var/lib/dokku/core-plugins/available/common/functions
remote: +++++ set -eo pipefail
remote: +++++ [[ -n 1 ]]
remote: +++++ set -x
remote: + redirect_nginx_pre_load_trigger cache-test '' ''
remote: + declare 'desc=add nginx redirect servers'
remote: + local trigger=redirect_nginx_pre_load_trigger
remote: + local APP=cache-test
remote: + local APP_ROOT=/home/dokku/cache-test
remote: + local REDIRECT_FILE=/home/dokku/cache-test/REDIRECTS
remote: + [[ ! -s /home/dokku/cache-test/REDIRECTS ]]
remote: + exit 0
remote: + dokku_log_verbose 'Reloading nginx'
remote: + declare 'desc=log verbose formatter'
remote: + echo ' Reloading nginx'
remote: + validate_nginx
remote: + declare 'desc=validate entire nginx config'
remote: + local NGINX_LOCATION
remote:  Reloading nginx
remote: ++ get_nginx_location
remote: ++ declare 'desc=check that nginx is at the expected location and return it'
remote: ++ local NGINX_LOCATION
remote: +++ which nginx
remote: ++ NGINX_LOCATION=/usr/sbin/nginx
remote: ++ [[ -z /usr/sbin/nginx ]]
remote: ++ [[ ! -x /usr/sbin/nginx ]]
remote: ++ echo /usr/sbin/nginx
remote: + NGINX_LOCATION=/usr/sbin/nginx
remote: + [[ -z /usr/sbin/nginx ]]
remote: + set +e
remote: + sudo /usr/sbin/nginx -t
remote: + local exit_code=0
remote: + set -e
remote: + [[ 0 -ne 0 ]]
remote: + restart_nginx
remote: + declare 'desc=restart nginx for given distros'
remote: + case "$DOKKU_DISTRO" in
remote: + sudo /etc/init.d/nginx reload
remote: + [[ -n cache-test.dev.skycenter.aero ]]
remote: + [[ true == \t\r\u\e ]]
remote: + echo '# THIS FILE IS GENERATED BY DOKKU - DO NOT EDIT, YOUR CHANGES WILL BE OVERWRITTEN'
remote: + xargs -i echo 'http://{}'
remote: ++ sort -u
remote: ++ tr ' ' '\n'
remote: ++ echo '' cache-test.dev.skycenter.aero
remote: ++ rm -rf /tmp/dokku_nginx_template.fAcL9/nginx.conf.OhGSLA /tmp/dokku_nginx_template.fAcL9
remote: ++ rm -rf
remote: + rm -rf
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + source /var/lib/dokku/plugins/available/config/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: ++ source /var/lib/dokku/core-plugins/available/common/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
remote: + source /var/lib/dokku/plugins/available/ps/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: ++ source /var/lib/dokku/core-plugins/available/common/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
remote: ++ source /var/lib/dokku/plugins/available/config/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
remote: +++ source /var/lib/dokku/core-plugins/available/common/functions
remote: ++++ set -eo pipefail
remote: ++++ [[ -n 1 ]]
remote: ++++ set -x
remote: + ps_core_post_deploy cache-test 80 172.17.0.3 ''
remote: + declare 'desc=ps core-post-deploy plugin trigger'
remote: + local trigger=ps_core_post_deploy
remote: + local APP=cache-test
remote: + remove_procfile cache-test
remote: + declare 'desc=removes DOKKU_PROCFILE'
remote: + local APP=cache-test
remote: + local DOKKU_PROCFILE=/home/dokku/cache-test/DOKKU_PROCFILE
remote: + [[ -f /home/dokku/cache-test/DOKKU_PROCFILE ]]
remote: + config_set --no-restart cache-test DOKKU_APP_RESTORE=1
remote: + declare 'desc=set value of given config var'
remote: + config_sub set --no-restart cache-test DOKKU_APP_RESTORE=1
remote: + declare 'desc=executes a config subcommand'
remote: + local name=set
remote: + shift
remote: + /var/lib/dokku/plugins/available/config/subcommands/set config:set --no-restart cache-test DOKKU_APP_RESTORE=1
remote: -----> Setting config vars
remote:  DOKKU_APP_RESTORE: 1
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + [[ ! -n '' ]]
remote: + plugn trigger post-deploy cache-test 80 172.17.0.3 ''
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + source /var/lib/dokku/core-plugins/available/00_dokku-standard/exec-app-json-scripts
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: ++ source /var/lib/dokku/core-plugins/available/common/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
remote: ++ source /var/lib/dokku/plugins/available/config/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
remote: +++ source /var/lib/dokku/core-plugins/available/common/functions
remote: ++++ set -eo pipefail
remote: ++++ [[ -n 1 ]]
remote: ++++ set -x
remote: + exec_app_json_scripts cache-test 80 172.17.0.3 ''
remote: + declare 'desc=core app.json scripts execution'
remote: + local 'trigger=post-deploy app_json_scripts'
remote: + local APP=cache-test
remote: + local IMAGE_TAG=
remote: + local PHASE_SCRIPT_KEY=postdeploy
remote: + dokku_log_info1 'Attempting to run scripts.dokku.postdeploy from app.json (if defined)'
remote: + declare 'desc=log info1 formatter'
remote: + echo '-----> Attempting to run scripts.dokku.postdeploy from app.json (if defined)'
remote: -----> Attempting to run scripts.dokku.postdeploy from app.json (if defined)
remote: + execute_script cache-test '' postdeploy
remote: + declare 'desc=executes appropriate phase script key from app.json'
remote: + local APP=cache-test
remote: + local IMAGE_TAG=
remote: + local PHASE_SCRIPT_KEY=postdeploy
remote: + local IMAGE id
remote: ++ get_deploying_app_image_name cache-test ''
remote: ++ declare 'desc=return deploying image identifier for a given app, tag tuple. validate if tag is presented'
remote: ++ local APP=cache-test
remote: ++ local IMAGE_TAG=
remote: ++ IMAGE_REPO=
remote: ++ is_valid_app_name cache-test
remote: ++ declare 'desc=verify app name format'
remote: ++ local APP=cache-test
remote: ++ [[ ! -n cache-test ]]
remote: ++ [[ cache-test =~ ^[a-z].* ]]
remote: ++ [[ ! cache-test =~ [A-Z] ]]
remote: ++ [[ ! cache-test =~ [:] ]]
remote: ++ return 0
remote: +++ plugn trigger deployed-app-repository cache-test
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + [[ ! -n '' ]]
remote: ++ local IMAGE_REMOTE_REPOSITORY=
remote: +++ plugn trigger deployed-app-image-tag cache-test
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + [[ ! -n '' ]]
remote: ++ local NEW_IMAGE_TAG=
remote: +++ plugn trigger deployed-app-image-repo cache-test
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + [[ ! -n '' ]]
remote: ++ local NEW_IMAGE_REPO=
remote: ++ [[ -n '' ]]
remote: ++ [[ -n '' ]]
remote: ++ [[ -z '' ]]
remote: +++ get_app_image_repo cache-test
remote: +++ declare 'desc=central definition of image repo pattern'
remote: +++ local APP=cache-test
remote: +++ local IMAGE_REPO=dokku/cache-test
remote: +++ is_valid_app_name cache-test
remote: +++ declare 'desc=verify app name format'
remote: +++ local APP=cache-test
remote: +++ [[ ! -n cache-test ]]
remote: +++ [[ cache-test =~ ^[a-z].* ]]
remote: +++ [[ ! cache-test =~ [A-Z] ]]
remote: +++ [[ ! cache-test =~ [:] ]]
remote: +++ return 0
remote: +++ echo dokku/cache-test
remote: ++ IMAGE_REPO=dokku/cache-test
remote: ++ [[ -z '' ]]
remote: ++ IMAGE_TAG=latest
remote: ++ local IMAGE=dokku/cache-test:latest
remote: ++ verify_image dokku/cache-test:latest
remote: ++ declare 'desc=verify image existence'
remote: ++ local IMAGE=dokku/cache-test:latest
remote: ++ docker inspect dokku/cache-test:latest
remote: ++ return 0
remote: ++ echo dokku/cache-test:latest
remote: + IMAGE=dokku/cache-test:latest
remote: ++ get_phase_script dokku/cache-test:latest postdeploy
remote: + local SCRIPT_CMD=
remote: + [[ -n '' ]]
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + [[ ! -n '' ]]
remote: + [[ -n '' ]]
remote: + dokku_log_info2 'Application deployed:'
remote: + declare 'desc=log info2 formatter'
remote: + echo '=====> Application deployed:'
remote: =====> Application deployed:
remote: + sed 's/^/ /'
remote: + get_app_urls urls cache-test
remote: + declare 'desc=print an app'\''s available urls'
remote: + source /var/lib/dokku/plugins/available/certs/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: ++ source /var/lib/dokku/core-plugins/available/common/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
remote: + source /var/lib/dokku/plugins/available/config/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: ++ source /var/lib/dokku/core-plugins/available/common/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
remote: + source /var/lib/dokku/plugins/available/domains/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: ++ source /var/lib/dokku/core-plugins/available/common/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
remote: + source /var/lib/dokku/plugins/available/proxy/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: ++ source /var/lib/dokku/core-plugins/available/common/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
remote: ++ source /var/lib/dokku/plugins/available/config/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
remote: +++ source /var/lib/dokku/core-plugins/available/common/functions
remote: ++++ set -eo pipefail
remote: ++++ [[ -n 1 ]]
remote: ++++ set -x
remote: + local APP=cache-test
remote: + verify_app_name cache-test
remote: + declare 'desc=verify app name format and app existence'
remote: + local APP=cache-test
remote: + is_valid_app_name cache-test
remote: + declare 'desc=verify app name format'
remote: + local APP=cache-test
remote: + [[ ! -n cache-test ]]
remote: + [[ cache-test =~ ^[a-z].* ]]
remote: + [[ ! cache-test =~ [A-Z] ]]
remote: + [[ ! cache-test =~ [:] ]]
remote: + return 0
remote: + [[ ! -d /home/dokku/cache-test ]]
remote: + return 0
remote: ++ get_app_raw_tcp_ports cache-test
remote: ++ declare 'desc=extracts raw tcp port numbers from DOCKERFILE_PORTS config variable'
remote: ++ source /var/lib/dokku/plugins/available/config/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
remote: +++ source /var/lib/dokku/core-plugins/available/common/functions
remote: ++++ set -eo pipefail
remote: ++++ [[ -n 1 ]]
remote: ++++ set -x
remote: ++ local APP=cache-test
remote: ++ verify_app_name cache-test
remote: ++ declare 'desc=verify app name format and app existence'
remote: ++ local APP=cache-test
remote: ++ is_valid_app_name cache-test
remote: ++ declare 'desc=verify app name format'
remote: ++ local APP=cache-test
remote: ++ [[ ! -n cache-test ]]
remote: ++ [[ cache-test =~ ^[a-z].* ]]
remote: ++ [[ ! cache-test =~ [A-Z] ]]
remote: ++ [[ ! cache-test =~ [:] ]]
remote: ++ return 0
remote: ++ [[ ! -d /home/dokku/cache-test ]]
remote: ++ return 0
remote: +++ config_get cache-test DOKKU_DOCKERFILE_PORTS
remote: +++ declare 'desc=get value of given config var'
remote: +++ config_sub get cache-test DOKKU_DOCKERFILE_PORTS
remote: +++ declare 'desc=executes a config subcommand'
remote: +++ local name=get
remote: +++ shift
remote: +++ /var/lib/dokku/plugins/available/config/subcommands/get config:get cache-test DOKKU_DOCKERFILE_PORTS
remote: ++ local DOCKERFILE_PORTS=80
remote: ++ for p in '$DOCKERFILE_PORTS'
remote: ++ [[ ! 80 =~ .*udp.* ]]
remote: ++ p=80
remote: ++ raw_tcp_ports+='80 '
remote: +++ xargs
remote: +++ echo '80 '
remote: ++ local raw_tcp_ports=80
remote: ++ echo 80
remote: + local RAW_TCP_PORTS=80
remote: + local URLS_FILE=/home/dokku/cache-test/URLS
remote: ++ config_get cache-test DOKKU_PROXY_PORT_MAP
remote: ++ declare 'desc=get value of given config var'
remote: ++ config_sub get cache-test DOKKU_PROXY_PORT_MAP
remote: ++ declare 'desc=executes a config subcommand'
remote: ++ local name=get
remote: ++ shift
remote: ++ /var/lib/dokku/plugins/available/config/subcommands/get config:get cache-test DOKKU_PROXY_PORT_MAP
remote: + local 'DOKKU_PROXY_PORT_MAP=http:80:80 '
remote: + [[ -s /home/dokku/cache-test/URLS ]]
remote: ++ egrep -v '^#' /home/dokku/cache-test/URLS
remote: + local app_urls=http://cache-test.dev.skycenter.aero
remote: + [[ -n http:80:80 ]]
remote: + local port_map app_vhost
remote: ++ get_app_domains cache-test
remote: ++ declare 'desc=return app domains'
remote: ++ verify_app_name cache-test
remote: ++ declare 'desc=verify app name format and app existence'
remote: ++ local APP=cache-test
remote: ++ is_valid_app_name cache-test
remote: ++ declare 'desc=verify app name format'
remote: ++ local APP=cache-test
remote: ++ [[ ! -n cache-test ]]
remote: ++ [[ cache-test =~ ^[a-z].* ]]
remote: ++ [[ ! cache-test =~ [A-Z] ]]
remote: ++ [[ ! cache-test =~ [:] ]]
remote: ++ return 0
remote: ++ [[ ! -d /home/dokku/cache-test ]]
remote: ++ return 0
remote: ++ local APP=cache-test
remote: ++ local APP_VHOST_FILE=/home/dokku/cache-test/VHOST
remote: ++ local GLOBAL_VHOST_PATH=/home/dokku/VHOST
remote: ++ local GLOBAL_HOSTNAME_PATH=/home/dokku/HOSTNAME
remote: +++ is_app_vhost_enabled cache-test
remote: +++ declare 'desc=returns true or false if vhost support is enabled for a given application'
remote: +++ source /var/lib/dokku/plugins/available/config/functions
remote: ++++ set -eo pipefail
remote: ++++ [[ -n 1 ]]
remote: ++++ set -x
remote: ++++ source /var/lib/dokku/core-plugins/available/common/functions
remote: +++++ set -eo pipefail
remote: +++++ [[ -n 1 ]]
remote: +++++ set -x
remote: +++ local APP=cache-test
remote: +++ verify_app_name cache-test
remote: +++ declare 'desc=verify app name format and app existence'
remote: +++ local APP=cache-test
remote: +++ is_valid_app_name cache-test
remote: +++ declare 'desc=verify app name format'
remote: +++ local APP=cache-test
remote: +++ [[ ! -n cache-test ]]
remote: +++ [[ cache-test =~ ^[a-z].* ]]
remote: +++ [[ ! cache-test =~ [A-Z] ]]
remote: +++ [[ ! cache-test =~ [:] ]]
remote: +++ return 0
remote: +++ [[ ! -d /home/dokku/cache-test ]]
remote: +++ return 0
remote: ++++ config_get cache-test NO_VHOST
remote: ++++ declare 'desc=get value of given config var'
remote: ++++ config_sub get cache-test NO_VHOST
remote: ++++ declare 'desc=executes a config subcommand'
remote: ++++ local name=get
remote: ++++ shift
remote: ++++ /var/lib/dokku/plugins/available/config/subcommands/get config:get cache-test NO_VHOST
remote: +++ local NO_VHOST=
remote: +++ local APP_VHOST_ENABLED=true
remote: +++ [[ '' == \1 ]]
remote: +++ echo true
remote: ++ [[ true == \t\r\u\e ]]
remote: ++ [[ -f /home/dokku/cache-test/VHOST ]]
remote: ++ cat /home/dokku/cache-test/VHOST
remote: + local app_vhosts=cache-test.dev.skycenter.aero
remote: + for port_map in '$DOKKU_PROXY_PORT_MAP'
remote: ++ awk -F : '{ print $1 }'
remote: + local scheme=http
remote: ++ awk -F : '{ print $2 }'
remote: + local listen_port=80
remote: + for app_vhost in '$app_vhosts'
remote: + [[ 80 != \8\0 ]]
remote: + port_urls+=' http://cache-test.dev.skycenter.aero '
remote: ++ xargs
remote: ++ echo ' http://cache-test.dev.skycenter.aero '
remote: + local port_urls=http://cache-test.dev.skycenter.aero
remote: ++ merge_dedupe_list 'http://cache-test.dev.skycenter.aero http://cache-test.dev.skycenter.aero' ' '
remote: ++ declare 'desc=combine lists (http://cache-test.dev.skycenter.aero http://cache-test.dev.skycenter.aero) separated by delimiter ( ) (delimiter defaults to comma), dedupe and return list'
remote: ++ local 'input_lists=http://cache-test.dev.skycenter.aero http://cache-test.dev.skycenter.aero' 'delimiter= '
remote: +++ xargs
remote: +++ uniq
remote: +++ sort
remote: +++ tr ' ' '
remote: '
remote: ++ local merged_list=http://cache-test.dev.skycenter.aero
remote: ++ echo http://cache-test.dev.skycenter.aero
remote: + local URLS=http://cache-test.dev.skycenter.aero
remote: + case "$1" in
remote: + sort
remote: + tr ' ' '\n'
remote: + echo http://cache-test.dev.skycenter.aero
remote:  http://cache-test.dev.skycenter.aero
remote: + echo
remote: 
remote: ++ rm -rf /tmp/dokku_git.4gBK
remote: ++ rm -rf ''
remote: + release_app_deploy_lock cache-test
remote: + declare 'desc=release advisory lock used in git/tar deploys'
remote: + local APP=cache-test
remote: + verify_app_name cache-test
remote: + declare 'desc=verify app name format and app existence'
remote: + local APP=cache-test
remote: + is_valid_app_name cache-test
remote: + declare 'desc=verify app name format'
remote: + local APP=cache-test
remote: + [[ ! -n cache-test ]]
remote: + [[ cache-test =~ ^[a-z].* ]]
remote: + [[ ! cache-test =~ [A-Z] ]]
remote: + [[ ! cache-test =~ [:] ]]
remote: + return 0
remote: + [[ ! -d /home/dokku/cache-test ]]
remote: + return 0
remote: + local APP_DEPLOY_LOCK_FD=200
remote: + local APP_DEPLOY_LOCK_FILE=/home/dokku/cache-test/.deploy.lock
remote: + flock -u 200
remote: + rm -f /home/dokku/cache-test/.deploy.lock
remote: ++ rm -rf ''
remote: + read -r oldrev newrev refname
remote: ++ rm -rf ''
remote: + rm -rf ''
remote: + exit_code=0
remote: + set -e
remote: + [[ 0 -eq 10 ]]
remote: + implemented=1
remote: + [[ 0 -ne 0 ]]
remote: + for script in '$PLUGIN_ENABLED_PATH/*/commands'
remote: + set +e
remote: + /var/lib/dokku/plugins/enabled/letsencrypt/commands git-hook cache-test
remote: + exit_code=10
remote: + set -e
remote: + [[ 10 -eq 10 ]]
remote: + continue
remote: + for script in '$PLUGIN_ENABLED_PATH/*/commands'
remote: + set +e
remote: + /var/lib/dokku/plugins/enabled/logs/commands git-hook cache-test
remote: + exit_code=10
remote: + set -e
remote: + [[ 10 -eq 10 ]]
remote: + continue
remote: + for script in '$PLUGIN_ENABLED_PATH/*/commands'
remote: + set +e
remote: + /var/lib/dokku/plugins/enabled/maintenance/commands git-hook cache-test
remote: + exit_code=10
remote: + set -e
remote: + [[ 10 -eq 10 ]]
remote: + continue
remote: + for script in '$PLUGIN_ENABLED_PATH/*/commands'
remote: + set +e
remote: + /var/lib/dokku/plugins/enabled/mysql/commands git-hook cache-test
remote: + exit_code=10
remote: + set -e
remote: + [[ 10 -eq 10 ]]
remote: + continue
remote: + for script in '$PLUGIN_ENABLED_PATH/*/commands'
remote: + set +e
remote: + /var/lib/dokku/plugins/enabled/network/commands git-hook cache-test
remote: + exit_code=10
remote: + set -e
remote: + [[ 10 -eq 10 ]]
remote: + continue
remote: + for script in '$PLUGIN_ENABLED_PATH/*/commands'
remote: + set +e
remote: + /var/lib/dokku/plugins/enabled/nginx-vhosts/commands git-hook cache-test
remote: + exit_code=10
remote: + set -e
remote: + [[ 10 -eq 10 ]]
remote: + continue
remote: + for script in '$PLUGIN_ENABLED_PATH/*/commands'
remote: + set +e
remote: + /var/lib/dokku/plugins/enabled/plugin/commands git-hook cache-test
remote: + exit_code=10
remote: + set -e
remote: + [[ 10 -eq 10 ]]
remote: + continue
remote: + for script in '$PLUGIN_ENABLED_PATH/*/commands'
remote: + set +e
remote: + /var/lib/dokku/plugins/enabled/postgres/commands git-hook cache-test
remote: + exit_code=10
remote: + set -e
remote: + [[ 10 -eq 10 ]]
remote: + continue
remote: + for script in '$PLUGIN_ENABLED_PATH/*/commands'
remote: + set +e
remote: + /var/lib/dokku/plugins/enabled/proxy/commands git-hook cache-test
remote: + exit_code=10
remote: + set -e
remote: + [[ 10 -eq 10 ]]
remote: + continue
remote: + for script in '$PLUGIN_ENABLED_PATH/*/commands'
remote: + set +e
remote: + /var/lib/dokku/plugins/enabled/ps/commands git-hook cache-test
remote: + exit_code=10
remote: + set -e
remote: + [[ 10 -eq 10 ]]
remote: + continue
remote: + for script in '$PLUGIN_ENABLED_PATH/*/commands'
remote: + set +e
remote: + /var/lib/dokku/plugins/enabled/redirect/commands git-hook cache-test
remote: + exit_code=10
remote: + set -e
remote: + [[ 10 -eq 10 ]]
remote: + continue
remote: + for script in '$PLUGIN_ENABLED_PATH/*/commands'
remote: + set +e
remote: + /var/lib/dokku/plugins/enabled/redis/commands git-hook cache-test
remote: + exit_code=10
remote: + set -e
remote: + [[ 10 -eq 10 ]]
remote: + continue
remote: + for script in '$PLUGIN_ENABLED_PATH/*/commands'
remote: + set +e
remote: + /var/lib/dokku/plugins/enabled/repo/commands git-hook cache-test
remote: + exit_code=10
remote: + set -e
remote: + [[ 10 -eq 10 ]]
remote: + continue
remote: + for script in '$PLUGIN_ENABLED_PATH/*/commands'
remote: + set +e
remote: + /var/lib/dokku/plugins/enabled/shell/commands git-hook cache-test
remote: + exit_code=10
remote: + set -e
remote: + [[ 10 -eq 10 ]]
remote: + continue
remote: + for script in '$PLUGIN_ENABLED_PATH/*/commands'
remote: + set +e
remote: + /var/lib/dokku/plugins/enabled/ssh-keys/commands git-hook cache-test
remote: + exit_code=10
remote: + set -e
remote: + [[ 10 -eq 10 ]]
remote: + continue
remote: + for script in '$PLUGIN_ENABLED_PATH/*/commands'
remote: + set +e
remote: + /var/lib/dokku/plugins/enabled/storage/commands git-hook cache-test
remote: + exit_code=10
remote: + set -e
remote: + [[ 10 -eq 10 ]]
remote: + continue
remote: + for script in '$PLUGIN_ENABLED_PATH/*/commands'
remote: + set +e
remote: + /var/lib/dokku/plugins/enabled/tags/commands git-hook cache-test
remote: + exit_code=10
remote: + set -e
remote: + [[ 10 -eq 10 ]]
remote: + continue
remote: + for script in '$PLUGIN_ENABLED_PATH/*/commands'
remote: + set +e
remote: + /var/lib/dokku/plugins/enabled/tar/commands git-hook cache-test
remote: + exit_code=10
remote: + set -e
remote: + [[ 10 -eq 10 ]]
remote: + continue
remote: + [[ 1 -eq 0 ]]
+ exit_code=0
+ set -e
+ [[ 0 -eq 10 ]]
+ implemented=1
+ [[ 0 -ne 0 ]]
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/letsencrypt/commands git-receive-pack ''\''cache-test'\'''
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/logs/commands git-receive-pack ''\''cache-test'\'''
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/maintenance/commands git-receive-pack ''\''cache-test'\'''
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/mysql/commands git-receive-pack ''\''cache-test'\'''
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/network/commands git-receive-pack ''\''cache-test'\'''
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/nginx-vhosts/commands git-receive-pack ''\''cache-test'\'''
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/plugin/commands git-receive-pack ''\''cache-test'\'''
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/postgres/commands git-receive-pack ''\''cache-test'\'''
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/proxy/commands git-receive-pack ''\''cache-test'\'''
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/ps/commands git-receive-pack ''\''cache-test'\'''
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/redirect/commands git-receive-pack ''\''cache-test'\'''
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/redis/commands git-receive-pack ''\''cache-test'\'''
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/repo/commands git-receive-pack ''\''cache-test'\'''
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/shell/commands git-receive-pack ''\''cache-test'\'''
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/ssh-keys/commands git-receive-pack ''\''cache-test'\'''
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/storage/commands git-receive-pack ''\''cache-test'\'''
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/tags/commands git-receive-pack ''\''cache-test'\'''
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/tar/commands git-receive-pack ''\''cache-test'\'''
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ [[ 1 -eq 0 ]]
+ set +f
+ exit 0
To dev.skycenter.aero:cache-test
* [new branch] master -> master
Branch master set up to track remote branch master from dokku.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment