Last active
September 6, 2019 18:19
-
-
Save CQCumbers/7ee437824fd319e9bca8431d62f11594 to your computer and use it in GitHub Desktop.
git push dokku master output
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+ export DOKKU_HOST_ROOT=/home/dokku | |
+ DOKKU_HOST_ROOT=/home/dokku | |
+ export DOKKU_DISTRO | |
++ . /etc/os-release | |
++ echo ubuntu | |
+ DOKKU_DISTRO=ubuntu | |
+ export DOCKER_BIN=docker | |
+ DOCKER_BIN=docker | |
+ export DOKKU_IMAGE=gliderlabs/herokuish:latest | |
+ DOKKU_IMAGE=gliderlabs/herokuish:latest | |
+ 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_SYSTEM_GROUP=dokku | |
+ DOKKU_SYSTEM_GROUP=dokku | |
+ export DOKKU_SYSTEM_USER=dokku | |
+ DOKKU_SYSTEM_USER=dokku | |
+ 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_PID=29138 | |
+ DOKKU_PID=29138 | |
+ 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_BUILD_ARGS=--label=org.label-schema.schema-version=1.0 --label=org.label-schema.vendor=dokku --label=dokku' | |
+ DOKKU_GLOBAL_BUILD_ARGS='--label=org.label-schema.schema-version=1.0 --label=org.label-schema.vendor=dokku --label=dokku' | |
+ export 'DOKKU_GLOBAL_RUN_ARGS=--label=org.label-schema.schema-version=1.0 --label=org.label-schema.vendor=dokku --label=dokku' | |
+ DOKKU_GLOBAL_RUN_ARGS='--label=org.label-schema.schema-version=1.0 --label=org.label-schema.vendor=dokku --label=dokku' | |
+ source /var/lib/dokku/core-plugins/available/common/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ parse_args git-receive-pack ''\''grifbot'\''' | |
+ 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 'grifbot' ]] | |
+ export -n SSH_ORIGINAL_COMMAND | |
+ [[ git-receive-pack =~ config-* ]] | |
+ [[ git-receive-pack =~ docker-options* ]] | |
+ set -f | |
+ /usr/bin/dokku git-receive-pack ''\''grifbot'\''' | |
+ export DOKKU_HOST_ROOT=/home/dokku | |
+ DOKKU_HOST_ROOT=/home/dokku | |
+ export DOKKU_DISTRO | |
++ . /etc/os-release | |
++ echo ubuntu | |
+ DOKKU_DISTRO=ubuntu | |
+ export DOCKER_BIN=docker | |
+ DOCKER_BIN=docker | |
+ export DOKKU_IMAGE=gliderlabs/herokuish:latest | |
+ DOKKU_IMAGE=gliderlabs/herokuish:latest | |
+ 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_SYSTEM_GROUP=dokku | |
+ DOKKU_SYSTEM_GROUP=dokku | |
+ export DOKKU_SYSTEM_USER=dokku | |
+ DOKKU_SYSTEM_USER=dokku | |
+ 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_PID=29145 | |
+ DOKKU_PID=29145 | |
+ 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_BUILD_ARGS=--label=org.label-schema.schema-version=1.0 --label=org.label-schema.vendor=dokku --label=dokku' | |
+ DOKKU_GLOBAL_BUILD_ARGS='--label=org.label-schema.schema-version=1.0 --label=org.label-schema.vendor=dokku --label=dokku' | |
+ export 'DOKKU_GLOBAL_RUN_ARGS=--label=org.label-schema.schema-version=1.0 --label=org.label-schema.vendor=dokku --label=dokku' | |
+ DOKKU_GLOBAL_RUN_ARGS='--label=org.label-schema.schema-version=1.0 --label=org.label-schema.vendor=dokku --label=dokku' | |
+ source /var/lib/dokku/core-plugins/available/common/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ parse_args git-receive-pack ''\''grifbot'\''' | |
+ 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 ''\''grifbot'\''' | |
+ declare 'desc=calls user-auth plugin trigger' | |
+ export SSH_USER=dokku | |
+ SSH_USER=dokku | |
+ export SSH_NAME=admin1 | |
+ SSH_NAME=admin1 | |
++ wc -l | |
++ find /var/lib/dokku/plugins/enabled/20_events/user-auth /var/lib/dokku/plugins/enabled/ssh-keys/user-auth | |
+ [[ 2 == 1 ]] | |
+ plugn trigger user-auth dokku admin1 git-receive-pack ''\''grifbot'\''' | |
+ 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 ''\''grifbot'\''' | |
+ 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 ''\''grifbot'\''' | |
+ 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 ''\''grifbot'\''' | |
+ 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 ''\''grifbot'\''' | |
+ exit_code=10 | |
+ set -e | |
+ [[ 10 -eq 10 ]] | |
+ continue | |
+ for script in $PLUGIN_ENABLED_PATH/*/commands | |
+ set +e | |
+ /var/lib/dokku/plugins/enabled/buildpacks/commands git-receive-pack ''\''grifbot'\''' | |
+ 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 ''\''grifbot'\''' | |
+ 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 ''\''grifbot'\''' | |
+ 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 ''\''grifbot'\''' | |
+ 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 ''\''grifbot'\''' | |
+ 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 ''\''grifbot'\''' | |
+ 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 ''\''grifbot'\''' | |
+ 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 ''\''grifbot'\''' | |
+ source /var/lib/dokku/plugins/available/git/functions | |
++ source /var/lib/dokku/core-plugins/available/common/functions | |
+++ set -eo pipefail | |
+++ [[ -n 1 ]] | |
+++ set -x | |
++ source /var/lib/dokku/core-plugins/available/common/property-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 | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ source /var/lib/dokku/plugins/available/git/internal-functions | |
++ source /var/lib/dokku/core-plugins/available/common/functions | |
+++ set -eo pipefail | |
+++ [[ -n 1 ]] | |
+++ set -x | |
++ source /var/lib/dokku/core-plugins/available/common/property-functions | |
+++ set -eo pipefail | |
+++ [[ -n 1 ]] | |
+++ set -x | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ case "$1" in | |
+ git_glob_cmd git-receive-pack ''\''grifbot'\''' | |
+ declare 'desc=catch-all for any other git-* commands' | |
+ local 'cmd=git-*' | |
++ echo ''\''grifbot'\''' | |
++ sed 's/\\'\''/'\''/g' | |
++ perl -pe 's/(?<!\\)'\''//g' | |
++ sed 's/^\///g' | |
+ local APP=grifbot | |
+ local APP_PATH=/home/dokku/grifbot | |
+ is_valid_app_name grifbot | |
+ declare 'desc=verify app name format' | |
+ local APP=grifbot | |
+ [[ -z grifbot ]] | |
+ [[ grifbot =~ ^[a-z].* ]] | |
+ [[ ! grifbot =~ [A-Z] ]] | |
+ [[ ! grifbot =~ [:] ]] | |
+ return 0 | |
+ [[ git-receive-pack == \g\i\t\-\r\e\c\e\i\v\e\-\p\a\c\k ]] | |
+ [[ ! -d /home/dokku/grifbot/refs ]] | |
+ [[ git-receive-pack == \g\i\t\-\r\e\c\e\i\v\e\-\p\a\c\k ]] | |
+ local 'args=git-receive-pack '\''/home/dokku/grifbot'\''' | |
+ git-shell -c 'git-receive-pack '\''/home/dokku/grifbot'\''' | |
remote: + export DOKKU_HOST_ROOT=/home/dokku | |
remote: + DOKKU_HOST_ROOT=/home/dokku | |
remote: + export DOKKU_DISTRO | |
remote: ++ . /etc/os-release | |
remote: ++ echo ubuntu | |
remote: + DOKKU_DISTRO=ubuntu | |
remote: + export DOCKER_BIN=docker | |
remote: + DOCKER_BIN=docker | |
remote: + export DOKKU_IMAGE=gliderlabs/herokuish:latest | |
remote: + DOKKU_IMAGE=gliderlabs/herokuish:latest | |
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_SYSTEM_GROUP=dokku | |
remote: + DOKKU_SYSTEM_GROUP=dokku | |
remote: + export DOKKU_SYSTEM_USER=dokku | |
remote: + DOKKU_SYSTEM_USER=dokku | |
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_PID=29605 | |
remote: + DOKKU_PID=29605 | |
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_BUILD_ARGS=--label=org.label-schema.schema-version=1.0 --label=org.label-schema.vendor=dokku --label=dokku' | |
remote: + DOKKU_GLOBAL_BUILD_ARGS='--label=org.label-schema.schema-version=1.0 --label=org.label-schema.vendor=dokku --label=dokku' | |
remote: + export 'DOKKU_GLOBAL_RUN_ARGS=--label=org.label-schema.schema-version=1.0 --label=org.label-schema.vendor=dokku --label=dokku' | |
remote: + DOKKU_GLOBAL_RUN_ARGS='--label=org.label-schema.schema-version=1.0 --label=org.label-schema.vendor=dokku --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 grifbot | |
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 grifbot | |
remote: + declare 'desc=calls user-auth plugin trigger' | |
remote: + export SSH_USER=dokku | |
remote: + SSH_USER=dokku | |
remote: + export SSH_NAME=admin1 | |
remote: + SSH_NAME=admin1 | |
remote: ++ wc -l | |
remote: ++ find /var/lib/dokku/plugins/enabled/20_events/user-auth /var/lib/dokku/plugins/enabled/ssh-keys/user-auth | |
remote: + [[ 2 == 1 ]] | |
remote: + plugn trigger user-auth dokku admin1 git-hook grifbot | |
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 grifbot | |
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 grifbot | |
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 grifbot | |
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 grifbot | |
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/buildpacks/commands git-hook grifbot | |
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 grifbot | |
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 grifbot | |
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 grifbot | |
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 grifbot | |
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 grifbot | |
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 grifbot | |
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 grifbot | |
remote: + source /var/lib/dokku/plugins/available/git/functions | |
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/common/property-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: ++ set -eo pipefail | |
remote: ++ [[ -n 1 ]] | |
remote: ++ set -x | |
remote: + source /var/lib/dokku/plugins/available/git/internal-functions | |
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/common/property-functions | |
remote: +++ set -eo pipefail | |
remote: +++ [[ -n 1 ]] | |
remote: +++ set -x | |
remote: ++ set -eo pipefail | |
remote: ++ [[ -n 1 ]] | |
remote: ++ set -x | |
remote: + case "$1" in | |
remote: + git_hook_cmd git-hook grifbot | |
remote: + declare 'desc=kick off receive-app trigger from git prereceive hook' | |
remote: + local cmd=git-hook | |
remote: + local APP=grifbot | |
remote: + local DOKKU_DEPLOY_BRANCH | |
remote: + is_valid_app_name grifbot | |
remote: + declare 'desc=verify app name format' | |
remote: + local APP=grifbot | |
remote: + [[ -z grifbot ]] | |
remote: + [[ grifbot =~ ^[a-z].* ]] | |
remote: + [[ ! grifbot =~ [A-Z] ]] | |
remote: + [[ ! grifbot =~ [:] ]] | |
remote: + return 0 | |
remote: ++ git_deploy_branch grifbot | |
remote: ++ declare 'desc=retrieve the deploy branch for a given application' | |
remote: ++ local cmd=git-hook | |
remote: ++ local APP=grifbot | |
remote: +++ fn-plugin-property-get git grifbot deploy-branch '' | |
remote: +++ declare 'desc=returns the property store value for an app' | |
remote: +++ declare PLUGIN=git APP=grifbot KEY=deploy-branch DEFAULT= | |
remote: +++ local CONFIG_VALUE | |
remote: +++ [[ -z git ]] | |
remote: +++ [[ -z grifbot ]] | |
remote: +++ [[ -z deploy-branch ]] | |
remote: ++++ fn-plugin-property-read git grifbot deploy-branch | |
remote: ++++ declare 'desc=read a key from the property store for an app' | |
remote: ++++ declare PLUGIN=git APP=grifbot KEY=deploy-branch | |
remote: ++++ [[ -z git ]] | |
remote: ++++ [[ -z grifbot ]] | |
remote: ++++ [[ -z deploy-branch ]] | |
remote: ++++ [[ ! -f /var/lib/dokku/config/git/grifbot/deploy-branch ]] | |
remote: ++++ return 1 | |
remote: ++++ true | |
remote: +++ CONFIG_VALUE= | |
remote: +++ [[ -z '' ]] | |
remote: +++ CONFIG_VALUE= | |
remote: +++ echo '' | |
remote: ++ local DOKKU_DEPLOY_BRANCH= | |
remote: +++ fn-plugin-property-get git --global deploy-branch '' | |
remote: +++ declare 'desc=returns the property store value for an app' | |
remote: +++ declare PLUGIN=git APP=--global KEY=deploy-branch DEFAULT= | |
remote: +++ local CONFIG_VALUE | |
remote: +++ [[ -z git ]] | |
remote: +++ [[ -z --global ]] | |
remote: +++ [[ -z deploy-branch ]] | |
remote: ++++ fn-plugin-property-read git --global deploy-branch | |
remote: ++++ declare 'desc=read a key from the property store for an app' | |
remote: ++++ declare PLUGIN=git APP=--global KEY=deploy-branch | |
remote: ++++ [[ -z git ]] | |
remote: ++++ [[ -z --global ]] | |
remote: ++++ [[ -z deploy-branch ]] | |
remote: ++++ [[ ! -f /var/lib/dokku/config/git/--global/deploy-branch ]] | |
remote: ++++ return 1 | |
remote: ++++ true | |
remote: +++ CONFIG_VALUE= | |
remote: +++ [[ -z '' ]] | |
remote: +++ CONFIG_VALUE= | |
remote: +++ echo '' | |
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 grifbot 1fa87306d8149821875bce9873f877f8d9f5c98e | |
remote: + declare 'desc=git receive-app plugin trigger' | |
remote: + declare APP=grifbot REV=1fa87306d8149821875bce9873f877f8d9f5c98e | |
remote: + [[ ! -d /home/dokku/grifbot/refs ]] | |
remote: + acquire_app_deploy_lock grifbot exclusive | |
remote: + declare 'desc=acquire advisory lock for use in git/tar deploys' | |
remote: + local APP=grifbot | |
remote: + verify_app_name grifbot | |
remote: + declare 'desc=verify app name format and app existence' | |
remote: + local APP=grifbot | |
remote: + is_valid_app_name grifbot | |
remote: + declare 'desc=verify app name format' | |
remote: + local APP=grifbot | |
remote: + [[ -z grifbot ]] | |
remote: + [[ grifbot =~ ^[a-z].* ]] | |
remote: + [[ ! grifbot =~ [A-Z] ]] | |
remote: + [[ ! grifbot =~ [:] ]] | |
remote: + return 0 | |
remote: + [[ ! -d /home/dokku/grifbot ]] | |
remote: + return 0 | |
remote: + local LOCK_TYPE=exclusive | |
remote: + local APP_DEPLOY_LOCK_FILE=/home/dokku/grifbot/.deploy.lock | |
remote: + local 'LOCK_WAITING_MSG=grifbot currently has a deploy lock in place. Waiting...' | |
remote: + local 'LOCK_FAILED_MSG=grifbot currently has a deploy lock in place. Exiting...' | |
remote: + acquire_advisory_lock /home/dokku/grifbot/.deploy.lock exclusive 'grifbot currently has a deploy lock in place. Waiting...' 'grifbot currently has a deploy lock in place. Exiting...' | |
remote: + declare 'desc=acquire advisory lock' | |
remote: + local LOCK_FILE=/home/dokku/grifbot/.deploy.lock LOCK_TYPE=exclusive 'LOCK_WAITING_MSG=grifbot currently has a deploy lock in place. Waiting...' 'LOCK_FAILED_MSG=grifbot currently has a deploy lock in place. Exiting...' | |
remote: + local LOCK_FD=200 | |
remote: + local SHOW_MSG=true | |
remote: + eval 'exec 200>/home/dokku/grifbot/.deploy.lock' | |
remote: ++ exec | |
remote: + [[ exclusive == \w\a\i\t\i\n\g ]] | |
remote: + flock -n 200 | |
remote: + git_build grifbot 1fa87306d8149821875bce9873f877f8d9f5c98e | |
remote: + declare 'desc=setup and call git_build_app_repo' | |
remote: + local APP=grifbot REV=1fa87306d8149821875bce9873f877f8d9f5c98e | |
remote: + local DOKKU_DEPLOY_BRANCH ENV_VAR_NAME REF | |
remote: + [[ 2 -ge 2 ]] | |
remote: ++ fn-plugin-property-get git grifbot rev-env-var | |
remote: ++ declare 'desc=returns the property store value for an app' | |
remote: ++ declare PLUGIN=git APP=grifbot KEY=rev-env-var DEFAULT= | |
remote: ++ local CONFIG_VALUE | |
remote: ++ [[ -z git ]] | |
remote: ++ [[ -z grifbot ]] | |
remote: ++ [[ -z rev-env-var ]] | |
remote: +++ fn-plugin-property-read git grifbot rev-env-var | |
remote: +++ declare 'desc=read a key from the property store for an app' | |
remote: +++ declare PLUGIN=git APP=grifbot KEY=rev-env-var | |
remote: +++ [[ -z git ]] | |
remote: +++ [[ -z grifbot ]] | |
remote: +++ [[ -z rev-env-var ]] | |
remote: +++ [[ ! -f /var/lib/dokku/config/git/grifbot/rev-env-var ]] | |
remote: +++ return 1 | |
remote: +++ true | |
remote: ++ CONFIG_VALUE= | |
remote: ++ [[ -z '' ]] | |
remote: ++ CONFIG_VALUE= | |
remote: ++ echo '' | |
remote: + ENV_VAR_NAME= | |
remote: + [[ -z '' ]] | |
remote: + fn-plugin-property-exists git grifbot rev-env-var | |
remote: + declare 'desc=returns whether the property store has a value for an app' | |
remote: + declare PLUGIN=git APP=grifbot KEY=rev-env-var DEFAULT= | |
remote: + local CONFIG_VALUE | |
remote: + [[ -z git ]] | |
remote: + [[ -z grifbot ]] | |
remote: + [[ -z rev-env-var ]] | |
remote: + [[ ! -f /var/lib/dokku/config/git/grifbot/rev-env-var ]] | |
remote: + return 1 | |
remote: + ENV_VAR_NAME=GIT_REV | |
remote: + [[ -n GIT_REV ]] | |
remote: + DOKKU_QUIET_OUTPUT=1 | |
remote: + config_set --no-restart grifbot GIT_REV=1fa87306d8149821875bce9873f877f8d9f5c98e | |
remote: + declare 'desc=set value of given config var' | |
remote: + config_sub set --no-restart grifbot GIT_REV=1fa87306d8149821875bce9873f877f8d9f5c98e | |
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 grifbot GIT_REV=1fa87306d8149821875bce9873f877f8d9f5c98e | |
remote: + source /var/lib/dokku/core-plugins/available/common/functions | |
remote: ++ set -eo pipefail | |
remote: ++ [[ -n 1 ]] | |
remote: ++ set -x | |
remote: + [[ ! -n '' ]] | |
remote: + local REF=1fa87306d8149821875bce9873f877f8d9f5c98e | |
remote: + git_build_app_repo grifbot 1fa87306d8149821875bce9873f877f8d9f5c98e | |
remote: + declare 'desc=builds local git app repo for app' | |
remote: + declare APP=grifbot REV=1fa87306d8149821875bce9873f877f8d9f5c98e | |
remote: + local DOKKU_GLOBAL_DISABLE_AUTOCREATE | |
remote: + verify_app_name grifbot | |
remote: + declare 'desc=verify app name format and app existence' | |
remote: + local APP=grifbot | |
remote: + is_valid_app_name grifbot | |
remote: + declare 'desc=verify app name format' | |
remote: + local APP=grifbot | |
remote: + [[ -z grifbot ]] | |
remote: + [[ grifbot =~ ^[a-z].* ]] | |
remote: + [[ ! grifbot =~ [A-Z] ]] | |
remote: + [[ ! grifbot =~ [:] ]] | |
remote: + return 0 | |
remote: + [[ ! -d /home/dokku/grifbot ]] | |
remote: + return 0 | |
remote: ++ mktemp -d /tmp/dokku-29605-git_build_app_repo.XXXXXX | |
remote: + local GIT_BUILD_APP_REPO_TMP_WORK_DIR=/tmp/dokku-29605-git_build_app_repo.tGccRm | |
remote: + trap 'rm -rf '\''/tmp/dokku-29605-git_build_app_repo.tGccRm'\'' >/dev/null' RETURN INT TERM EXIT | |
remote: + local TMP_TAG=dokku/1fa87306d8149821875bce9873f877f8d9f5c98e | |
remote: + chmod 755 /tmp/dokku-29605-git_build_app_repo.tGccRm | |
remote: + unset GIT_DIR GIT_WORK_TREE | |
remote: + apps_exists grifbot | |
remote: + use_git_worktree | |
remote: + declare 'desc=detects whether to use git worktree' | |
remote: + local GIT_VERSION MAJOR_VERSION MINOR_VERSION | |
remote: ++ git --version | |
remote: ++ awk '{split($0,a," "); print a[3]}' | |
remote: + GIT_VERSION=2.17.1 | |
remote: ++ echo 2.17.1 | |
remote: ++ awk '{split($0,a,"."); print a[1]}' | |
remote: + MAJOR_VERSION=2 | |
remote: ++ echo 2.17.1 | |
remote: ++ awk '{split($0,a,"."); print a[2]}' | |
remote: + MINOR_VERSION=17 | |
remote: + [[ 2 -ge 3 ]] | |
remote: + [[ 2 -eq 2 ]] | |
remote: + [[ 17 -ge 11 ]] | |
remote: + return 0 | |
remote: + pushd /home/dokku/grifbot | |
remote: + suppress_output env -u GIT_QUARANTINE_PATH git worktree add /tmp/dokku-29605-git_build_app_repo.tGccRm 1fa87306d8149821875bce9873f877f8d9f5c98e | |
remote: + declare 'desc=suppress all output from a given command unless there is an error' | |
remote: + local TMP_COMMAND_OUTPUT | |
remote: ++ mktemp /tmp/dokku-29605-suppress_output.XXXXXX | |
remote: + TMP_COMMAND_OUTPUT=/tmp/dokku-29605-suppress_output.9vbhbz | |
remote: + trap 'rm -rf '\''/tmp/dokku-29605-suppress_output.9vbhbz'\'' >/dev/null' RETURN | |
remote: + env -u GIT_QUARANTINE_PATH git worktree add /tmp/dokku-29605-git_build_app_repo.tGccRm 1fa87306d8149821875bce9873f877f8d9f5c98e | |
remote: + return 0 | |
remote: ++ rm -rf /tmp/dokku-29605-suppress_output.9vbhbz | |
remote: + popd | |
remote: + pushd /tmp/dokku-29605-git_build_app_repo.tGccRm | |
remote: + suppress_output env -u GIT_QUARANTINE_PATH 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/dokku-29605-suppress_output.XXXXXX | |
remote: + TMP_COMMAND_OUTPUT=/tmp/dokku-29605-suppress_output.15gSKU | |
remote: + trap 'rm -rf '\''/tmp/dokku-29605-suppress_output.15gSKU'\'' >/dev/null' RETURN | |
remote: + env -u GIT_QUARANTINE_PATH git submodule update --init --recursive | |
remote: + return 0 | |
remote: ++ rm -rf /tmp/dokku-29605-suppress_output.15gSKU | |
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.17.1 | |
remote: ++ echo 2.17.1 | |
remote: ++ awk '{split($0,a,"."); print a[1]}' | |
remote: + MAJOR_VERSION=2 | |
remote: ++ echo 2.17.1 | |
remote: ++ awk '{split($0,a,"."); print a[2]}' | |
remote: + MINOR_VERSION=17 | |
remote: + [[ 2 -ge 3 ]] | |
remote: + [[ 2 -eq 2 ]] | |
remote: + [[ 17 -ge 11 ]] | |
remote: + return 0 | |
remote: + pushd /home/dokku/grifbot | |
remote: + git worktree prune | |
remote: + popd | |
remote: + local DOKKU_APP_DISABLE_ANSI_PREFIX_REMOVAL DOKKU_GLOBAL_DISABLE_ANSI_PREFIX_REMOVAL DOKKU_DISABLE_ANSI_PREFIX_REMOVAL | |
remote: ++ config_get grifbot DOKKU_DISABLE_ANSI_PREFIX_REMOVAL | |
remote: ++ declare 'desc=get value of given config var' | |
remote: ++ config_sub get grifbot 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 grifbot 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: + git_trigger_build grifbot /tmp/dokku-29605-git_build_app_repo.tGccRm 1fa87306d8149821875bce9873f877f8d9f5c98e | |
remote: + declare 'desc=triggers the actual build process for a given app within a directory at a particular revision' | |
remote: + declare APP=grifbot TMP_WORK_DIR=/tmp/dokku-29605-git_build_app_repo.tGccRm REV=1fa87306d8149821875bce9873f877f8d9f5c98e | |
remote: + plugn trigger post-extract grifbot /tmp/dokku-29605-git_build_app_repo.tGccRm 1fa87306d8149821875bce9873f877f8d9f5c98e | |
/' sed -u 's/^/ | |
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: + plugn trigger pre-receive-app grifbot herokuish /tmp/dokku-29605-git_build_app_repo.tGccRm 1fa87306d8149821875bce9873f877f8d9f5c98e | |
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 grifbot herokuish /tmp/dokku-29605-git_build_app_repo.tGccRm | |
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=grifbot | |
remote: ++ get_app_image_name grifbot | |
remote: ++ declare 'desc=return image identifier for a given app, tag tuple. validate if tag is presented' | |
remote: ++ local APP=grifbot | |
remote: ++ local IMAGE_TAG= | |
remote: ++ IMAGE_REPO= | |
remote: ++ is_valid_app_name grifbot | |
remote: ++ declare 'desc=verify app name format' | |
remote: ++ local APP=grifbot | |
remote: ++ [[ -z grifbot ]] | |
remote: ++ [[ grifbot =~ ^[a-z].* ]] | |
remote: ++ [[ ! grifbot =~ [A-Z] ]] | |
remote: ++ [[ ! grifbot =~ [:] ]] | |
remote: ++ return 0 | |
remote: ++ [[ -z '' ]] | |
remote: +++ get_app_image_repo grifbot | |
remote: +++ declare 'desc=central definition of image repo pattern' | |
remote: +++ local APP=grifbot | |
remote: +++ local IMAGE_REPO=dokku/grifbot | |
remote: +++ is_valid_app_name grifbot | |
remote: +++ declare 'desc=verify app name format' | |
remote: +++ local APP=grifbot | |
remote: +++ [[ -z grifbot ]] | |
remote: +++ [[ grifbot =~ ^[a-z].* ]] | |
remote: +++ [[ ! grifbot =~ [A-Z] ]] | |
remote: +++ [[ ! grifbot =~ [:] ]] | |
remote: +++ return 0 | |
remote: +++ echo dokku/grifbot | |
remote: ++ IMAGE_REPO=dokku/grifbot | |
remote: ++ [[ -n '' ]] | |
remote: ++ local IMAGE=dokku/grifbot:latest | |
remote: ++ echo dokku/grifbot:latest | |
remote: + local IMAGE=dokku/grifbot:latest | |
remote: + local IMAGE_SOURCE_TYPE=herokuish | |
remote: + local TMP_WORK_DIR=/tmp/dokku-29605-git_build_app_repo.tGccRm | |
remote: ++ config_get grifbot DOKKU_SKIP_CLEANUP | |
remote: ++ declare 'desc=get value of given config var' | |
remote: ++ config_sub get grifbot 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 grifbot DOKKU_SKIP_CLEANUP | |
remote: ++ true | |
remote: + local DOKKU_SKIP_CLEANUP= | |
remote: + docker_cleanup grifbot | |
remote: + declare 'desc=cleans up all exited/dead containers and removes all dangling images' | |
remote: + declare APP=grifbot FORCE_CLEANUP= | |
remote: + local DOKKU_APP_SKIP_CLEANUP | |
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: + [[ '' != \t\r\u\e ]] | |
remote: + [[ -n grifbot ]] | |
remote: ++ config_get grifbot DOKKU_SKIP_CLEANUP | |
remote: ++ declare 'desc=get value of given config var' | |
remote: ++ config_sub get grifbot 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 grifbot DOKKU_SKIP_CLEANUP | |
remote: ++ true | |
remote: + DOKKU_APP_SKIP_CLEANUP= | |
remote: + [[ -n '' ]] | |
remote: + [[ -n '' ]] | |
remote: + dokku_log_info1 'Cleaning up...' | |
remote: + declare 'desc=log info1 formatter' | |
remote: + echo '-----> Cleaning up...' | |
-----> Cleaning up... | |
remote: ++ get_app_scheduler grifbot | |
remote: ++ declare 'desc=fetch the scheduler for a given application' | |
remote: ++ declare APP=grifbot | |
remote: ++ local DOKKU_APP_SCHEDULER DOKKU_GLOBAL_SCHEDULER DOKKU_SCHEDULER | |
remote: ++ [[ grifbot == \-\-\g\l\o\b\a\l ]] | |
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: ++ [[ -n grifbot ]] | |
remote: +++ config_get grifbot DOKKU_SCHEDULER | |
remote: +++ declare 'desc=get value of given config var' | |
remote: +++ config_sub get grifbot DOKKU_SCHEDULER | |
remote: +++ declare 'desc=executes a config subcommand' | |
remote: +++ local name=get | |
remote: +++ shift | |
remote: +++ /var/lib/dokku/plugins/available/config/subcommands/get config:get grifbot DOKKU_SCHEDULER | |
remote: +++ true | |
remote: ++ DOKKU_APP_SCHEDULER= | |
remote: +++ config_get --global DOKKU_SCHEDULER | |
remote: +++ declare 'desc=get value of given config var' | |
remote: +++ config_sub get --global DOKKU_SCHEDULER | |
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_SCHEDULER | |
remote: +++ true | |
remote: ++ DOKKU_GLOBAL_SCHEDULER= | |
remote: ++ DOKKU_SCHEDULER= | |
remote: ++ [[ -z '' ]] | |
remote: ++ DOKKU_SCHEDULER=docker-local | |
remote: ++ echo docker-local | |
remote: + local DOKKU_SCHEDULER=docker-local | |
remote: + [[ grifbot == \-\-\g\l\o\b\a\l ]] | |
remote: + plugn trigger scheduler-docker-cleanup docker-local grifbot '' | |
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: + scheduler-docker-local-scheduler-docker-cleanup docker-local grifbot '' | |
remote: + declare 'desc=scheduler-docker-local scheduler-docker-cleanup plugin trigger' | |
remote: + declare 'trigger=scheduler-docker-local scheduler-docker-cleanup' | |
remote: + declare DOKKU_SCHEDULER=docker-local APP=grifbot FORCE_CLEANUP= | |
remote: + [[ docker-local != \d\o\c\k\e\r\-\l\o\c\a\l ]] | |
remote: + [[ -n grifbot ]] | |
remote: ++ docker ps -a -f status=exited -f label=dokku -f label=com.dokku.app-name=grifbot -q | |
remote: + docker rm 003aa3e304dc 369bf796e980 b6aac8d29b0f | |
remote: ++ docker ps -a -f status=dead -f label=dokku -f label=com.dokku.app-name=grifbot -q | |
remote: + docker rm | |
remote: + true | |
remote: ++ docker images -f dangling=true -f label=com.dokku.app-name=grifbot -q | |
remote: + docker rmi | |
remote: + true | |
remote: + docker image prune --all --filter label=com.dokku.app-name=grifbot --force | |
remote: + [[ -n grifbot ]] | |
remote: ++ docker ps -a -f status=exited -f label=dokku -f label=com.dokku.app-name=grifbot -q | |
remote: + docker rm | |
remote: + true | |
remote: ++ docker ps -a -f status=dead -f label=dokku -f label=com.dokku.app-name=grifbot -q | |
remote: + docker rm | |
remote: + true | |
remote: ++ docker images -f dangling=true -f label=com.dokku.app-name=grifbot -q | |
remote: + docker rmi | |
remote: + true | |
remote: + docker image prune --all --filter label=com.dokku.app-name=grifbot --force | |
remote: + dokku_log_info1 'Building grifbot from herokuish...' | |
remote: + declare 'desc=log info1 formatter' | |
remote: + echo '-----> Building grifbot from herokuish...' | |
remote: + DOKKU_QUIET_OUTPUT=1 | |
remote: + config_set --no-restart grifbot DOKKU_APP_TYPE=herokuish | |
remote: + declare 'desc=set value of given config var' | |
remote: + config_sub set --no-restart grifbot DOKKU_APP_TYPE=herokuish | |
-----> Building grifbot from herokuish... | |
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 grifbot DOKKU_APP_TYPE=herokuish | |
remote: + source /var/lib/dokku/core-plugins/available/common/functions | |
remote: ++ set -eo pipefail | |
remote: ++ [[ -n 1 ]] | |
remote: ++ set -x | |
remote: + [[ ! -n '' ]] | |
remote: + dokku_build grifbot herokuish /tmp/dokku-29605-git_build_app_repo.tGccRm | |
remote: + declare 'desc=build phase' | |
remote: + declare APP=grifbot IMAGE_SOURCE_TYPE=herokuish SOURCECODE_WORK_DIR=/tmp/dokku-29605-git_build_app_repo.tGccRm | |
remote: + verify_app_name grifbot | |
remote: + declare 'desc=verify app name format and app existence' | |
remote: + local APP=grifbot | |
remote: + is_valid_app_name grifbot | |
remote: + declare 'desc=verify app name format' | |
remote: + local APP=grifbot | |
remote: + [[ -z grifbot ]] | |
remote: + [[ grifbot =~ ^[a-z].* ]] | |
remote: + [[ ! grifbot =~ [A-Z] ]] | |
remote: + [[ ! grifbot =~ [:] ]] | |
remote: + return 0 | |
remote: + [[ ! -d /home/dokku/grifbot ]] | |
remote: + return 0 | |
remote: + plugn trigger builder-build herokuish grifbot /tmp/dokku-29605-git_build_app_repo.tGccRm | |
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/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: + trigger-builder-build-builder-dockerfile herokuish grifbot /tmp/dokku-29605-git_build_app_repo.tGccRm | |
remote: + declare 'desc=builder-dockerfile builder-build plugin trigger' | |
remote: + declare trigger=trigger-builder-build-builder-dockerfile | |
remote: + declare BUILDER_TYPE=herokuish APP=grifbot SOURCECODE_WORK_DIR=/tmp/dokku-29605-git_build_app_repo.tGccRm | |
remote: + [[ herokuish != \d\o\c\k\e\r\f\i\l\e ]] | |
remote: + return | |
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: + trigger-builder-build-builder-herokuish herokuish grifbot /tmp/dokku-29605-git_build_app_repo.tGccRm | |
remote: + declare 'desc=builder-herokuish builder-build plugin trigger' | |
remote: + declare trigger=trigger-builder-build-builder-herokuish | |
remote: + declare BUILDER_TYPE=herokuish APP=grifbot SOURCECODE_WORK_DIR=/tmp/dokku-29605-git_build_app_repo.tGccRm | |
remote: + [[ herokuish != \h\e\r\o\k\u\i\s\h ]] | |
remote: ++ get_app_image_name grifbot | |
remote: ++ declare 'desc=return image identifier for a given app, tag tuple. validate if tag is presented' | |
remote: ++ local APP=grifbot | |
remote: ++ local IMAGE_TAG= | |
remote: ++ IMAGE_REPO= | |
remote: ++ is_valid_app_name grifbot | |
remote: ++ declare 'desc=verify app name format' | |
remote: ++ local APP=grifbot | |
remote: ++ [[ -z grifbot ]] | |
remote: ++ [[ grifbot =~ ^[a-z].* ]] | |
remote: ++ [[ ! grifbot =~ [A-Z] ]] | |
remote: ++ [[ ! grifbot =~ [:] ]] | |
remote: ++ return 0 | |
remote: ++ [[ -z '' ]] | |
remote: +++ get_app_image_repo grifbot | |
remote: +++ declare 'desc=central definition of image repo pattern' | |
remote: +++ local APP=grifbot | |
remote: +++ local IMAGE_REPO=dokku/grifbot | |
remote: +++ is_valid_app_name grifbot | |
remote: +++ declare 'desc=verify app name format' | |
remote: +++ local APP=grifbot | |
remote: +++ [[ -z grifbot ]] | |
remote: +++ [[ grifbot =~ ^[a-z].* ]] | |
remote: +++ [[ ! grifbot =~ [A-Z] ]] | |
remote: +++ [[ ! grifbot =~ [:] ]] | |
remote: +++ return 0 | |
remote: +++ echo dokku/grifbot | |
remote: ++ IMAGE_REPO=dokku/grifbot | |
remote: ++ [[ -n '' ]] | |
remote: ++ local IMAGE=dokku/grifbot:latest | |
remote: ++ echo dokku/grifbot:latest | |
remote: + local IMAGE=dokku/grifbot:latest | |
remote: + local DOKKU_APP_CACHE_DIR=/home/dokku/grifbot/cache | |
remote: + local DOKKU_APP_HOST_CACHE_DIR=/home/dokku/grifbot/cache | |
remote: + DOCKER_COMMIT_LABEL_ARGS=("--change" "LABEL org.label-schema.schema-version=1.0" "--change" "LABEL org.label-schema.vendor=dokku" "--change" "LABEL com.dokku.app-name=$APP") | |
remote: + local DOCKER_COMMIT_LABEL_ARGS | |
remote: + local DOCKER_RUN_LABEL_ARGS=--label=com.dokku.app-name=grifbot | |
remote: + local CID | |
remote: + pushd /tmp/dokku-29605-git_build_app_repo.tGccRm | |
remote: ++ config_export app grifbot | |
remote: ++ declare 'desc=returns export command for config variable of specified type (app/global)' | |
remote: ++ local CONFIG_TYPE=app | |
remote: ++ shift | |
remote: ++ local APP=grifbot | |
remote: ++ [[ app == \g\l\o\b\a\l ]] | |
remote: ++ shift | |
remote: ++ config_sub export grifbot | |
remote: ++ declare 'desc=executes a config subcommand' | |
remote: ++ local name=export | |
remote: ++ shift | |
remote: ++ /var/lib/dokku/plugins/available/config/subcommands/export config:export grifbot | |
remote: ++ return 0 | |
remote: + eval 'export DOKKU_APP_RESTORE='\''0'\'' | |
remote: export DOKKU_APP_TYPE='\''herokuish'\'' | |
remote: export DOKKU_PROXY_PORT='\''80'\'' | |
remote: export DOKKU_PROXY_PORT_MAP='\''http:80:5000 https:443:5000'\'' | |
remote: export DOKKU_PROXY_SSL_PORT='\''443'\'' | |
remote: export GIT_REV='\''1fa87306d8149821875bce9873f877f8d9f5c98e'\'' | |
remote: export NO_VHOST='\''0'\'' | |
remote: export PAGE_ACCESS_TOKEN='\''EAAFVZC8Ne7ToBAFMKSUayO1LQixikN2fVNHgrZCGDDM5KYaMOtpd4JiTMgqK5JjYb9d8UOoQF2JD2c3oDaAHJBR1Iefv6KJuG8onPYeOLalZBEkuGg2GZC2GiAzLuSkOytqzrhPZCL4vBWXvBRUbviHZB2uItk1DnO0yLH0ZAI6ZAA5DGDworGZCXZCkwhhQIxvZBUZD'\'' | |
remote: export REDIS_URL='\''redis://grifbot-cache:400e058e941332ed49f9f944939baa98c3570f0a3debe9d6449f20b99a311d69@dokku-redis-grifbot-cache:6379'\'' | |
remote: export VERIFY_TOKEN='\''grifbot_token_XEi2wjGVgDwJ5pPl84ya2nhqvN9uE0if'\''' | |
remote: ++ export DOKKU_APP_RESTORE=0 | |
remote: ++ DOKKU_APP_RESTORE=0 | |
remote: ++ export DOKKU_APP_TYPE=herokuish | |
remote: ++ DOKKU_APP_TYPE=herokuish | |
remote: ++ export DOKKU_PROXY_PORT=80 | |
remote: ++ DOKKU_PROXY_PORT=80 | |
remote: ++ export 'DOKKU_PROXY_PORT_MAP=http:80:5000 https:443:5000' | |
remote: ++ DOKKU_PROXY_PORT_MAP='http:80:5000 https:443:5000' | |
remote: ++ export DOKKU_PROXY_SSL_PORT=443 | |
remote: ++ DOKKU_PROXY_SSL_PORT=443 | |
remote: ++ export GIT_REV=1fa87306d8149821875bce9873f877f8d9f5c98e | |
remote: ++ GIT_REV=1fa87306d8149821875bce9873f877f8d9f5c98e | |
remote: ++ export NO_VHOST=0 | |
remote: ++ NO_VHOST=0 | |
remote: ++ export PAGE_ACCESS_TOKEN=EAAFVZC8Ne7ToBAFMKSUayO1LQixikN2fVNHgrZCGDDM5KYaMOtpd4JiTMgqK5JjYb9d8UOoQF2JD2c3oDaAHJBR1Iefv6KJuG8onPYeOLalZBEkuGg2GZC2GiAzLuSkOytqzrhPZCL4vBWXvBRUbviHZB2uItk1DnO0yLH0ZAI6ZAA5DGDworGZCXZCkwhhQIxvZBUZD | |
remote: ++ PAGE_ACCESS_TOKEN=EAAFVZC8Ne7ToBAFMKSUayO1LQixikN2fVNHgrZCGDDM5KYaMOtpd4JiTMgqK5JjYb9d8UOoQF2JD2c3oDaAHJBR1Iefv6KJuG8onPYeOLalZBEkuGg2GZC2GiAzLuSkOytqzrhPZCL4vBWXvBRUbviHZB2uItk1DnO0yLH0ZAI6ZAA5DGDworGZCXZCkwhhQIxvZBUZD | |
remote: ++ export REDIS_URL=redis://grifbot-cache:400e058e941332ed49f9f944939baa98c3570f0a3debe9d6449f20b99a311d69@dokku-redis-grifbot-cache:6379 | |
remote: ++ REDIS_URL=redis://grifbot-cache:400e058e941332ed49f9f944939baa98c3570f0a3debe9d6449f20b99a311d69@dokku-redis-grifbot-cache:6379 | |
remote: ++ export VERIFY_TOKEN=grifbot_token_XEi2wjGVgDwJ5pPl84ya2nhqvN9uE0if | |
remote: ++ VERIFY_TOKEN=grifbot_token_XEi2wjGVgDwJ5pPl84ya2nhqvN9uE0if | |
remote: ++ config_get grifbot DOKKU_IMAGE | |
remote: ++ declare 'desc=get value of given config var' | |
remote: ++ config_sub get grifbot DOKKU_IMAGE | |
remote: ++ declare 'desc=executes a config subcommand' | |
remote: ++ local name=get | |
remote: ++ shift | |
remote: ++ /var/lib/dokku/plugins/available/config/subcommands/get config:get grifbot DOKKU_IMAGE | |
remote: ++ echo gliderlabs/herokuish:latest | |
remote: + DOKKU_IMAGE=gliderlabs/herokuish:latest | |
remote: + plugn trigger builder-create-dokku-image herokuish grifbot /tmp/dokku-29605-git_build_app_repo.tGccRm gliderlabs/herokuish:latest | |
remote: ++ plugn trigger builder-dokku-image herokuish grifbot /tmp/dokku-29605-git_build_app_repo.tGccRm gliderlabs/herokuish:latest | |
remote: + NEW_DOKKU_IMAGE= | |
remote: + [[ -n '' ]] | |
remote: ++ tar -c . | |
remote: ++ docker run --label=com.dokku.app-name=grifbot --label=org.label-schema.schema-version=1.0 --label=org.label-schema.vendor=dokku --label=dokku -i -a stdin gliderlabs/herokuish:latest /bin/bash -c 'mkdir -p /app && tar -xC /app' | |
remote: + CID=5bb0aded23521905d46cd1c882dfea7bdc024954fdf6a3bb6ee284c84d4ddc1d | |
remote: ++ docker wait 5bb0aded23521905d46cd1c882dfea7bdc024954fdf6a3bb6ee284c84d4ddc1d | |
remote: + test 0 -ne 0 | |
remote: + docker commit --change 'LABEL org.label-schema.schema-version=1.0' --change 'LABEL org.label-schema.vendor=dokku' --change 'LABEL com.dokku.app-name=grifbot' 5bb0aded23521905d46cd1c882dfea7bdc024954fdf6a3bb6ee284c84d4ddc1d dokku/grifbot:latest | |
remote: + [[ -d /home/dokku/grifbot/cache ]] | |
remote: + plugn trigger pre-build-buildpack grifbot /tmp/dokku-29605-git_build_app_repo.tGccRm | |
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: + trigger-pre-build-buildpack-builder-herokuish grifbot /tmp/dokku-29605-git_build_app_repo.tGccRm | |
remote: + declare 'desc=builder-herokuish pre-build-buildpack plugin trigger' | |
remote: + declare trigger=trigger-pre-build-buildpack-builder-herokuish | |
remote: + declare APP=grifbot | |
remote: + local IMAGE CID | |
remote: + DOCKER_COMMIT_LABEL_ARGS=("--change" "LABEL org.label-schema.schema-version=1.0" "--change" "LABEL org.label-schema.vendor=dokku" "--change" "LABEL com.dokku.app-name=$APP") | |
remote: + local DOCKER_COMMIT_LABEL_ARGS | |
remote: + local DOCKER_RUN_LABEL_ARGS=--label=com.dokku.app-name=grifbot | |
remote: + verify_app_name grifbot | |
remote: + declare 'desc=verify app name format and app existence' | |
remote: + local APP=grifbot | |
remote: + is_valid_app_name grifbot | |
remote: + declare 'desc=verify app name format' | |
remote: + local APP=grifbot | |
remote: + [[ -z grifbot ]] | |
remote: + [[ grifbot =~ ^[a-z].* ]] | |
remote: + [[ ! grifbot =~ [A-Z] ]] | |
remote: + [[ ! grifbot =~ [:] ]] | |
remote: + return 0 | |
remote: + [[ ! -d /home/dokku/grifbot ]] | |
remote: + return 0 | |
remote: ++ get_app_image_name grifbot | |
remote: ++ declare 'desc=return image identifier for a given app, tag tuple. validate if tag is presented' | |
remote: ++ local APP=grifbot | |
remote: ++ local IMAGE_TAG= | |
remote: ++ IMAGE_REPO= | |
remote: ++ is_valid_app_name grifbot | |
remote: ++ declare 'desc=verify app name format' | |
remote: ++ local APP=grifbot | |
remote: ++ [[ -z grifbot ]] | |
remote: ++ [[ grifbot =~ ^[a-z].* ]] | |
remote: ++ [[ ! grifbot =~ [A-Z] ]] | |
remote: ++ [[ ! grifbot =~ [:] ]] | |
remote: ++ return 0 | |
remote: ++ [[ -z '' ]] | |
remote: +++ get_app_image_repo grifbot | |
remote: +++ declare 'desc=central definition of image repo pattern' | |
remote: +++ local APP=grifbot | |
remote: +++ local IMAGE_REPO=dokku/grifbot | |
remote: +++ is_valid_app_name grifbot | |
remote: +++ declare 'desc=verify app name format' | |
remote: +++ local APP=grifbot | |
remote: +++ [[ -z grifbot ]] | |
remote: +++ [[ grifbot =~ ^[a-z].* ]] | |
remote: +++ [[ ! grifbot =~ [A-Z] ]] | |
remote: +++ [[ ! grifbot =~ [:] ]] | |
remote: +++ return 0 | |
remote: +++ echo dokku/grifbot | |
remote: ++ IMAGE_REPO=dokku/grifbot | |
remote: ++ [[ -n '' ]] | |
remote: ++ local IMAGE=dokku/grifbot:latest | |
remote: ++ echo dokku/grifbot:latest | |
remote: + IMAGE=dokku/grifbot:latest | |
remote: ++ config_get --global CURL_CONNECT_TIMEOUT | |
remote: ++ declare 'desc=get value of given config var' | |
remote: ++ config_sub get --global CURL_CONNECT_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 --global CURL_CONNECT_TIMEOUT | |
remote: + [[ -z 90 ]] | |
remote: ++ config_get --global CURL_TIMEOUT | |
remote: ++ declare 'desc=get value of given config var' | |
remote: ++ config_sub get --global CURL_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 --global CURL_TIMEOUT | |
remote: + [[ -z 60 ]] | |
remote: + dokku_log_info1 'Adding BUILD_ENV to build environment...' | |
remote: + declare 'desc=log info1 formatter' | |
remote: + echo '-----> Adding BUILD_ENV to build environment...' | |
-----> Adding BUILD_ENV to build environment... | |
remote: ++ config_bundle --merged grifbot | |
remote: ++ declare 'desc=export tar bundle of config' | |
remote: ++ config_sub bundle --merged grifbot | |
remote: ++ declare 'desc=executes a config subcommand' | |
remote: ++ local name=bundle | |
remote: ++ shift | |
remote: ++ /var/lib/dokku/plugins/available/config/subcommands/bundle config:bundle --merged grifbot | |
remote: ++ docker run --label=com.dokku.app-name=grifbot --label=org.label-schema.schema-version=1.0 --label=org.label-schema.vendor=dokku --label=dokku -i -a stdin dokku/grifbot:latest /bin/bash -c 'mkdir -p /tmp/env; cat | tar -x -C /tmp/env' | |
remote: + CID=ed35e5638f2d2b24702e15026511497347e815a89f94fbb1b5961d90ff57e2bf | |
remote: ++ docker wait ed35e5638f2d2b24702e15026511497347e815a89f94fbb1b5961d90ff57e2bf | |
remote: + test 0 -ne 0 | |
remote: + docker commit --change 'LABEL org.label-schema.schema-version=1.0' --change 'LABEL org.label-schema.vendor=dokku' --change 'LABEL com.dokku.app-name=grifbot' ed35e5638f2d2b24702e15026511497347e815a89f94fbb1b5961d90ff57e2bf dokku/grifbot:latest | |
remote: ++ config_export app grifbot --format envfile --merged | |
remote: ++ docker run --label=com.dokku.app-name=grifbot --label=org.label-schema.schema-version=1.0 --label=org.label-schema.vendor=dokku --label=dokku -i -a stdin dokku/grifbot:latest /bin/bash -c 'cat >> /app/.env' | |
remote: ++ declare 'desc=returns export command for config variable of specified type (app/global)' | |
remote: ++ local CONFIG_TYPE=app | |
remote: ++ shift | |
remote: ++ local APP=grifbot | |
remote: ++ [[ app == \g\l\o\b\a\l ]] | |
remote: ++ shift | |
remote: ++ config_sub export --format envfile --merged grifbot | |
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 envfile --merged grifbot | |
remote: ++ return 0 | |
remote: + CID=5c5ed323d7732eb3a344faca5e3bf43a780f5ae81474209ab71049ed6ee1dbcf | |
remote: ++ docker wait 5c5ed323d7732eb3a344faca5e3bf43a780f5ae81474209ab71049ed6ee1dbcf | |
remote: + test 0 -ne 0 | |
remote: + docker commit --change 'LABEL org.label-schema.schema-version=1.0' --change 'LABEL org.label-schema.vendor=dokku' --change 'LABEL com.dokku.app-name=grifbot' 5c5ed323d7732eb3a344faca5e3bf43a780f5ae81474209ab71049ed6ee1dbcf dokku/grifbot:latest | |
remote: + PLUGIN_BASE_PATH=/var/lib/dokku/plugins | |
remote: + [[ -n 1 ]] | |
remote: + PLUGIN_BASE_PATH=/var/lib/dokku/plugins/enabled | |
remote: + source /var/lib/dokku/plugins/enabled/common/functions | |
remote: ++ set -eo pipefail | |
remote: ++ [[ -n 1 ]] | |
remote: ++ set -x | |
remote: + DOKKU_LOGSPOUT_ROOT=/home/dokku/.logspout | |
remote: + source /home/dokku/.logspout/OPTS | |
remote: ++ export DOKKU_LOGSPOUT_PORT=18000 | |
remote: ++ DOKKU_LOGSPOUT_PORT=18000 | |
remote: ++ export DOKKU_LOGSPOUT_IMAGE_VERSION=v3.1 | |
remote: ++ DOKKU_LOGSPOUT_IMAGE_VERSION=v3.1 | |
remote: ++ export DOKKU_LOGSPOUT_SYSLOG_SERVER=syslog+tls://logs.papertrailapp.com:18214 | |
remote: ++ DOKKU_LOGSPOUT_SYSLOG_SERVER=syslog+tls://logs.papertrailapp.com:18214 | |
remote: + dokku logspout:start | |
remote: + export DOKKU_HOST_ROOT=/home/dokku | |
remote: + DOKKU_HOST_ROOT=/home/dokku | |
remote: + export DOKKU_DISTRO | |
remote: ++ . /etc/os-release | |
remote: ++ echo ubuntu | |
remote: + DOKKU_DISTRO=ubuntu | |
remote: + export DOCKER_BIN=docker | |
remote: + DOCKER_BIN=docker | |
remote: + export DOKKU_IMAGE=gliderlabs/herokuish:latest | |
remote: + DOKKU_IMAGE=gliderlabs/herokuish:latest | |
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_SYSTEM_GROUP=dokku | |
remote: + DOKKU_SYSTEM_GROUP=dokku | |
remote: + export DOKKU_SYSTEM_USER=dokku | |
remote: + DOKKU_SYSTEM_USER=dokku | |
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_PID=2115 | |
remote: + DOKKU_PID=2115 | |
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_BUILD_ARGS=--label=org.label-schema.schema-version=1.0 --label=org.label-schema.vendor=dokku --label=dokku' | |
remote: + DOKKU_GLOBAL_BUILD_ARGS='--label=org.label-schema.schema-version=1.0 --label=org.label-schema.vendor=dokku --label=dokku' | |
remote: + export 'DOKKU_GLOBAL_RUN_ARGS=--label=org.label-schema.schema-version=1.0 --label=org.label-schema.vendor=dokku --label=dokku' | |
remote: + DOKKU_GLOBAL_RUN_ARGS='--label=org.label-schema.schema-version=1.0 --label=org.label-schema.vendor=dokku --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 logspout:start | |
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: + return 0 | |
remote: + args=("$@") | |
remote: + skip_arg=false | |
remote: + [[ logspout:start =~ ^--.* ]] | |
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: + [[ logspout:start =~ ^plugin:.* ]] | |
remote: + [[ logspout:start == \s\s\h\-\k\e\y\s\:\a\d\d ]] | |
remote: + [[ -n '' ]] | |
remote: + dokku_auth logspout:start | |
remote: + declare 'desc=calls user-auth plugin trigger' | |
remote: + export SSH_USER=dokku | |
remote: + SSH_USER=dokku | |
remote: + export SSH_NAME=admin1 | |
remote: + SSH_NAME=admin1 | |
remote: ++ wc -l | |
remote: ++ find /var/lib/dokku/plugins/enabled/20_events/user-auth /var/lib/dokku/plugins/enabled/ssh-keys/user-auth | |
remote: + [[ 2 == 1 ]] | |
remote: + plugn trigger user-auth dokku admin1 logspout:start | |
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: + [[ logspout:start =~ (ssh-keys:add|ssh-keys:remove) ]] | |
remote: + return 0 | |
remote: + case "$1" in | |
remote: + execute_dokku_cmd logspout:start | |
remote: + declare 'desc=executes dokku sub-commands' | |
remote: + local PLUGIN_NAME=logspout:start | |
remote: + local PLUGIN_CMD=logspout:start | |
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/logspout | |
remote: + [[ /var/lib/dokku/plugins/available/logspout == *core-plugins* ]] | |
remote: + [[ -x /var/lib/dokku/plugins/enabled/logspout:start/subcommands/default ]] | |
remote: + [[ -x /var/lib/dokku/plugins/enabled/logspout:start/subcommands/logspout:start ]] | |
remote: + [[ -x /var/lib/dokku/plugins/enabled/logspout/subcommands/start ]] | |
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 logspout:start | |
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 logspout:start | |
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 logspout:start | |
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/buildpacks/commands logspout:start | |
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 logspout:start | |
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 logspout:start | |
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 logspout:start | |
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 logspout:start | |
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 logspout:start | |
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 logspout:start | |
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 logspout:start | |
remote: + source /var/lib/dokku/plugins/available/git/functions | |
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/common/property-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: ++ set -eo pipefail | |
remote: ++ [[ -n 1 ]] | |
remote: ++ set -x | |
remote: + source /var/lib/dokku/plugins/available/git/internal-functions | |
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/common/property-functions | |
remote: +++ set -eo pipefail | |
remote: +++ [[ -n 1 ]] | |
remote: +++ set -x | |
remote: ++ set -eo pipefail | |
remote: ++ [[ -n 1 ]] | |
remote: ++ set -x | |
remote: + case "$1" in | |
remote: + exit 10 | |
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/letsencrypt/commands logspout:start | |
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 logspout:start | |
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/logspout/commands logspout:start | |
remote: + [[ logspout:info logspout:destroy logspout:port logspout:server logspout:start logspout:stop logspout:stream logspout:update logspout:help help == *\ \l\o\g\s\p\o\u\t\:\s\t\a\r\t\ * ]] | |
remote: + PLUGIN_BASE_PATH=/var/lib/dokku/plugins | |
remote: + [[ -n 1 ]] | |
remote: + PLUGIN_BASE_PATH=/var/lib/dokku/plugins/enabled | |
remote: + source /var/lib/dokku/plugins/enabled/common/functions | |
remote: ++ set -eo pipefail | |
remote: ++ [[ -n 1 ]] | |
remote: ++ set -x | |
remote: + DOKKU_LOGSPOUT_ROOT=/home/dokku/.logspout | |
remote: + [[ -f /home/dokku/.logspout/OPTS ]] | |
remote: + source /home/dokku/.logspout/OPTS | |
remote: ++ export DOKKU_LOGSPOUT_PORT=18000 | |
remote: ++ DOKKU_LOGSPOUT_PORT=18000 | |
remote: ++ export DOKKU_LOGSPOUT_IMAGE_VERSION=v3.1 | |
remote: ++ DOKKU_LOGSPOUT_IMAGE_VERSION=v3.1 | |
remote: ++ export DOKKU_LOGSPOUT_SYSLOG_SERVER=syslog+tls://logs.papertrailapp.com:18214 | |
remote: ++ DOKKU_LOGSPOUT_SYSLOG_SERVER=syslog+tls://logs.papertrailapp.com:18214 | |
remote: + case "$1" in | |
remote: + logspout_start_cmd logspout:start | |
remote: + local CID | |
remote: + local 'desc=starts logspout container' | |
remote: + local cmd=logspout:start | |
remote: + [[ ! -f /home/dokku/.logspout/CONTAINER ]] | |
remote: + CID=2d030a48cb6b46842c34d13b7c7d8ebe2af285c111a602024f466a12b7f74050 | |
remote: + is_container_status 2d030a48cb6b46842c34d13b7c7d8ebe2af285c111a602024f466a12b7f74050 Running | |
remote: + declare 'desc=return 0 if given docker container id is in given state' | |
remote: + local CID=2d030a48cb6b46842c34d13b7c7d8ebe2af285c111a602024f466a12b7f74050 | |
remote: + local 'TEMPLATE={{.State.Running}}' | |
remote: ++ docker inspect -f '{{.State.Running}}' 2d030a48cb6b46842c34d13b7c7d8ebe2af285c111a602024f466a12b7f74050 | |
remote: + local CONTAINER_STATUS=true | |
remote: + [[ true == \t\r\u\e ]] | |
remote: + return 0 | |
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/maintenance/commands logspout:start | |
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 logspout:start | |
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 logspout:start | |
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 logspout:start | |
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 logspout:start | |
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 logspout:start | |
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 logspout:start | |
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 logspout:start | |
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 logspout:start | |
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/resource/commands logspout:start | |
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/scheduler-docker-local/commands logspout:start | |
remote: + source /var/lib/dokku/plugins/available/scheduler-docker-local/internal-functions | |
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/common/property-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: ++ set -eo pipefail | |
remote: ++ [[ -n 1 ]] | |
remote: ++ set -x | |
remote: + case "$1" in | |
remote: + exit 10 | |
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 logspout:start | |
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 logspout:start | |
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 logspout:start | |
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 logspout:start | |
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 logspout:start | |
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/trace/commands logspout:start | |
remote: + exit_code=10 | |
remote: + set -e | |
remote: + [[ 10 -eq 10 ]] | |
remote: + continue | |
remote: + [[ 1 -eq 0 ]] | |
remote: ++ : | |
remote: ++ plugn trigger docker-args-build grifbot herokuish | |
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/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: + trigger-docker-args-builder-herokuish grifbot herokuish | |
remote: + declare 'desc=builder-herokuish docker-args plugin trigger' | |
remote: + declare trigger=trigger-docker-args-builder-herokuish | |
remote: + local APP=grifbot | |
remote: + local STDIN | |
remote: + local DOKKU_APP_TYPE | |
remote: + local DOKKU_APP_USER | |
remote: ++ cat | |
remote: + STDIN= | |
remote: ++ config_get grifbot DOKKU_APP_TYPE | |
remote: ++ declare 'desc=get value of given config var' | |
remote: ++ config_sub get grifbot 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 grifbot DOKKU_APP_TYPE | |
remote: + DOKKU_APP_TYPE=herokuish | |
remote: ++ config_get grifbot DOKKU_APP_USER | |
remote: ++ declare 'desc=get value of given config var' | |
remote: ++ config_sub get grifbot 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 grifbot DOKKU_APP_USER | |
remote: ++ true | |
remote: + DOKKU_APP_USER= | |
remote: + DOKKU_APP_USER=herokuishuser | |
remote: + [[ herokuish == \h\e\r\o\k\u\i\s\h ]] | |
remote: + local 'docker_args= --env=USER=herokuishuser' | |
remote: + echo -n ' --env=USER=herokuishuser' | |
remote: + docker_args grifbot herokuish | |
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=grifbot | |
remote: + local IMAGE_SOURCE_TYPE=herokuish | |
remote: + case "$0" in | |
remote: + local PHASE=BUILD | |
remote: + local FILE_PREFIX=DOCKER_OPTIONS_ | |
remote: + local PHASE_FILE_PATH=/home/dokku/grifbot/DOCKER_OPTIONS_BUILD | |
remote: + local output= | |
remote: + [[ -f /home/dokku/grifbot/DOCKER_OPTIONS_BUILD ]] | |
remote: + local DONE=false | |
remote: + false | |
remote: + local line | |
remote: + read -r line | |
remote: + [[ -z --link dokku.redis.grifbot-cache:dokku-redis-grifbot-cache ]] | |
remote: + case "$line" in | |
remote: + case "$IMAGE_SOURCE_TYPE" in | |
remote: + case "$line" in | |
remote: + local 'output= --link dokku.redis.grifbot-cache:dokku-redis-grifbot-cache' | |
remote: + false | |
remote: + local line | |
remote: + read -r line | |
remote: + local DONE=true | |
remote: + [[ -z '' ]] | |
remote: + continue | |
remote: + true | |
remote: + echo -n ' --link dokku.redis.grifbot-cache:dokku-redis-grifbot-cache' | |
remote: + APP=grifbot | |
remote: + IMAGE_SOURCE_TYPE=herokuish | |
remote: ++ cat | |
remote: + STDIN= | |
remote: + [[ herokuish == \d\o\c\k\e\r\f\i\l\e ]] | |
remote: ++ cat | |
remote: + STDIN= | |
remote: ++ grep 'OpsWorks Stack:' /etc/motd | |
remote: ++ true | |
remote: + OPSWORKS_STACK_NAME= | |
remote: + [[ -n '' ]] | |
remote: ++ hostname | |
remote: + HOSTNAME=ubuntu-s-2vcpu-2gb-nyc1-01 | |
remote: + echo -n ' --hostname=ubuntu-s-2vcpu-2gb-nyc1-01' | |
remote: + local 'DOCKER_ARGS= --env=USER=herokuishuser --link dokku.redis.grifbot-cache:dokku-redis-grifbot-cache --hostname=ubuntu-s-2vcpu-2gb-nyc1-01' | |
remote: + [[ -n 1 ]] | |
remote: + DOCKER_ARGS+=' -e TRACE=true ' | |
remote: ++ : | |
remote: ++ plugn trigger docker-args-process-build grifbot '' herokuish | |
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+= | |
remote: + declare -a ARG_ARRAY | |
remote: + eval 'ARG_ARRAY=( --env=USER=herokuishuser --link dokku.redis.grifbot-cache:dokku-redis-grifbot-cache --hostname=ubuntu-s-2vcpu-2gb-nyc1-01 -e TRACE=true )' | |
remote: ++ ARG_ARRAY=(--env=USER=herokuishuser --link dokku.redis.grifbot-cache:dokku-redis-grifbot-cache --hostname=ubuntu-s-2vcpu-2gb-nyc1-01 -e TRACE=true) | |
remote: ++ docker run --label=com.dokku.app-name=grifbot --label=org.label-schema.schema-version=1.0 --label=org.label-schema.vendor=dokku --label=dokku -d -v /home/dokku/grifbot/cache:/cache -e CACHE_PATH=/cache --env=USER=herokuishuser --link dokku.redis.grifbot-cache:dokku-redis-grifbot-cache --hostname=ubuntu-s-2vcpu-2gb-nyc1-01 -e TRACE=true dokku/grifbot:latest /build | |
remote: Unable to find image 'dokku/grifbot:latest' locally | |
remote: docker: Error response from daemon: pull access denied for dokku/grifbot, repository does not exist or may require 'docker login': denied: requested access to the resource is denied. | |
remote: See 'docker run --help'. | |
remote: + CID= | |
remote: + rm -rf /tmp/dokku-29605-git_build_app_repo.tGccRm | |
remote: + exit_code=125 | |
remote: + set -e | |
remote: + [[ 125 -eq 10 ]] | |
remote: + implemented=1 | |
remote: + [[ 125 -ne 0 ]] | |
remote: + exit 125 | |
+ 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 ''\''grifbot'\''' | |
+ 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 ''\''grifbot'\''' | |
+ exit_code=10 | |
+ set -e | |
+ [[ 10 -eq 10 ]] | |
+ continue | |
+ for script in $PLUGIN_ENABLED_PATH/*/commands | |
+ set +e | |
+ /var/lib/dokku/plugins/enabled/logspout/commands git-receive-pack ''\''grifbot'\''' | |
+ [[ logspout:info logspout:destroy logspout:port logspout:server logspout:start logspout:stop logspout:stream logspout:update logspout:help help == *\ \g\i\t\-\r\e\c\e\i\v\e\-\p\a\c\k\ * ]] | |
+ exit 10 | |
+ 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 ''\''grifbot'\''' | |
+ 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 ''\''grifbot'\''' | |
+ 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 ''\''grifbot'\''' | |
+ 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 ''\''grifbot'\''' | |
+ 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 ''\''grifbot'\''' | |
+ 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 ''\''grifbot'\''' | |
+ 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 ''\''grifbot'\''' | |
+ 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 ''\''grifbot'\''' | |
+ 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 ''\''grifbot'\''' | |
+ exit_code=10 | |
+ set -e | |
+ [[ 10 -eq 10 ]] | |
+ continue | |
+ for script in $PLUGIN_ENABLED_PATH/*/commands | |
+ set +e | |
+ /var/lib/dokku/plugins/enabled/resource/commands git-receive-pack ''\''grifbot'\''' | |
+ exit_code=10 | |
+ set -e | |
+ [[ 10 -eq 10 ]] | |
+ continue | |
+ for script in $PLUGIN_ENABLED_PATH/*/commands | |
+ set +e | |
+ /var/lib/dokku/plugins/enabled/scheduler-docker-local/commands git-receive-pack ''\''grifbot'\''' | |
+ source /var/lib/dokku/plugins/available/scheduler-docker-local/internal-functions | |
++ source /var/lib/dokku/core-plugins/available/common/functions | |
+++ set -eo pipefail | |
+++ [[ -n 1 ]] | |
+++ set -x | |
++ source /var/lib/dokku/core-plugins/available/common/property-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 | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ case "$1" in | |
+ exit 10 | |
+ 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 ''\''grifbot'\''' | |
+ 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 ''\''grifbot'\''' | |
+ 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 ''\''grifbot'\''' | |
+ 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 ''\''grifbot'\''' | |
+ 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 ''\''grifbot'\''' | |
+ exit_code=10 | |
+ set -e | |
+ [[ 10 -eq 10 ]] | |
+ continue | |
+ for script in $PLUGIN_ENABLED_PATH/*/commands | |
+ set +e | |
+ /var/lib/dokku/plugins/enabled/trace/commands git-receive-pack ''\''grifbot'\''' | |
+ exit_code=10 | |
+ set -e | |
+ [[ 10 -eq 10 ]] | |
+ continue | |
+ [[ 1 -eq 0 ]] | |
+ set +f | |
+ exit 0 | |
To 167.99.145.246:grifbot | |
! [remote rejected] master -> master (pre-receive hook declined) | |
error: failed to push some refs to '[email protected]:grifbot' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ dokku --trace report | |
+ next_index=2 | |
+ for arg in '"$@"' | |
+ [[ false == \t\r\u\e ]] | |
+ [[ report == \-\-\a\p\p ]] | |
+ [[ report == \-\-\r\e\m\o\t\e ]] | |
+ [[ report =~ ^--.* ]] | |
+ [[ false == \t\r\u\e ]] | |
+ CMD=report | |
+ cmd_set=true | |
+ next_index=3 | |
++ fn-dokku-host dokku '' | |
++ declare DOKKU_GIT_REMOTE=dokku DOKKU_HOST= | |
++ [[ -z '' ]] | |
++ [[ -d .git ]] | |
+++ git remote -v | |
+++ grep -Ei '^dokku\s' | |
+++ cut -f1 '-d ' | |
+++ head -n 1 | |
+++ cut -f2 -d @ | |
+++ cut -f1 -d: | |
++ DOKKU_HOST=167.99.145.246 | |
++ [[ -z 167.99.145.246 ]] | |
++ echo 167.99.145.246 | |
+ DOKKU_REMOTE_HOST=167.99.145.246 | |
+ [[ -z '' ]] | |
+ [[ -d .git ]] | |
+ set +e | |
++ git remote -v | |
++ grep -Ei [email protected] | |
++ head -n 1 | |
++ cut -f2 -d@ | |
++ cut -f1 '-d ' | |
++ cut -f2 -d: | |
+ APP=handcount-backend | |
+ set -e | |
+ case "$CMD" in | |
+ [[ apps certs help ls nginx shell storage trace version == *\ \r\e\p\o\r\t\ * ]] | |
+ [[ certs:chain domains:add-global domains:remove-global domains:set-global ps:rebuildall ps:restartall ps:restore == *\ \r\e\p\o\r\t\ * ]] | |
+ [[ report =~ events*|plugin*|ssh-keys* ]] | |
+ [[ -n report ]] | |
+ [[ report == \-\-\g\l\o\b\a\l ]] | |
+ [[ -n --trace report ]] | |
+ [[ -n handcount-backend ]] | |
+ app_arg='--app handcount-backend' | |
+ ssh -o LogLevel=QUIET -p 22 -t [email protected] -- --app handcount-backend --trace report | |
+ export DOKKU_HOST_ROOT=/home/dokku | |
+ DOKKU_HOST_ROOT=/home/dokku | |
+ export DOKKU_DISTRO | |
++ . /etc/os-release | |
++ echo ubuntu | |
+ DOKKU_DISTRO=ubuntu | |
+ export DOCKER_BIN=docker | |
+ DOCKER_BIN=docker | |
+ export DOKKU_IMAGE=gliderlabs/herokuish:latest | |
+ DOKKU_IMAGE=gliderlabs/herokuish:latest | |
+ 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_SYSTEM_GROUP=dokku | |
+ DOKKU_SYSTEM_GROUP=dokku | |
+ export DOKKU_SYSTEM_USER=dokku | |
+ DOKKU_SYSTEM_USER=dokku | |
+ 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_PID=7081 | |
+ DOKKU_PID=7081 | |
+ 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_BUILD_ARGS=--label=org.label-schema.schema-version=1.0 --label=org.label-schema.vendor=dokku --label=dokku' | |
+ DOKKU_GLOBAL_BUILD_ARGS='--label=org.label-schema.schema-version=1.0 --label=org.label-schema.vendor=dokku --label=dokku' | |
+ export 'DOKKU_GLOBAL_RUN_ARGS=--label=org.label-schema.schema-version=1.0 --label=org.label-schema.vendor=dokku --label=dokku' | |
+ DOKKU_GLOBAL_RUN_ARGS='--label=org.label-schema.schema-version=1.0 --label=org.label-schema.vendor=dokku --label=dokku' | |
+ source /var/lib/dokku/core-plugins/available/common/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ parse_args --app handcount-backend --trace report | |
+ 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 | |
+ export DOKKU_APP_NAME=handcount-backend | |
+ DOKKU_APP_NAME=handcount-backend | |
+ skip=true | |
+ next_index=2 | |
+ for arg in "$@" | |
+ [[ true == \t\r\u\e ]] | |
+ next_index=3 | |
+ skip=false | |
+ continue | |
+ for arg in "$@" | |
+ [[ false == \t\r\u\e ]] | |
+ case "$arg" in | |
+ export DOKKU_TRACE=1 | |
+ DOKKU_TRACE=1 | |
+ next_index=4 | |
+ for arg in "$@" | |
+ [[ false == \t\r\u\e ]] | |
+ case "$arg" in | |
+ next_index=5 | |
+ return 0 | |
+ args=("$@") | |
+ skip_arg=false | |
+ [[ --app =~ ^--.* ]] | |
+ for arg in "$@" | |
+ false | |
+ [[ --app == \-\-\v\e\r\s\i\o\n ]] | |
+ [[ --app == \-\-\a\p\p ]] | |
+ shift 2 | |
+ skip_arg=true | |
+ for arg in "$@" | |
+ true | |
+ skip_arg=false | |
+ continue | |
+ for arg in "$@" | |
+ false | |
+ [[ --trace == \-\-\v\e\r\s\i\o\n ]] | |
+ [[ --trace == \-\-\a\p\p ]] | |
+ [[ --trace =~ ^--.* ]] | |
+ shift 1 | |
+ for arg in "$@" | |
+ false | |
+ [[ report == \-\-\v\e\r\s\i\o\n ]] | |
+ [[ report == \-\-\a\p\p ]] | |
+ [[ report =~ ^--.* ]] | |
+ break | |
+ has_tty | |
+ declare 'desc=return 0 if we have a tty' | |
++ /usr/bin/tty | |
+ [[ /dev/pts/0 == \n\o\t\ \a\ \t\t\y ]] | |
+ return 0 | |
++ id -un | |
+ [[ dokku != \d\o\k\k\u ]] | |
+ [[ report =~ ^plugin:.* ]] | |
+ [[ report == \s\s\h\-\k\e\y\s\:\a\d\d ]] | |
+ [[ -n '' ]] | |
+ dokku_auth report | |
+ declare 'desc=calls user-auth plugin trigger' | |
+ export SSH_USER=dokku | |
+ SSH_USER=dokku | |
+ export SSH_NAME=admin1 | |
+ SSH_NAME=admin1 | |
++ wc -l | |
++ find /var/lib/dokku/plugins/enabled/20_events/user-auth /var/lib/dokku/plugins/enabled/ssh-keys/user-auth | |
+ [[ 2 == 1 ]] | |
+ plugn trigger user-auth dokku admin1 report | |
+ 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 | |
+ [[ report =~ (ssh-keys:add|ssh-keys:remove) ]] | |
+ return 0 | |
+ case "$1" in | |
+ execute_dokku_cmd report | |
+ declare 'desc=executes dokku sub-commands' | |
+ local PLUGIN_NAME=report | |
+ local PLUGIN_CMD=report | |
+ local implemented=0 | |
+ local script | |
+ argv=("$@") | |
+ local argv | |
+ case "$PLUGIN_NAME" in | |
+ local PLUGIN_NAME=00_dokku-standard | |
++ readlink -f /var/lib/dokku/plugins/enabled/00_dokku-standard | |
+ [[ /var/lib/dokku/core-plugins/available/00_dokku-standard == *core-plugins* ]] | |
+ [[ report == \r\e\p\o\r\t ]] | |
+ shift 1 | |
+ [[ -n handcount-backend ]] | |
+ [[ report == config* ]] | |
+ set -- handcount-backend | |
+ set -- report handcount-backend | |
+ [[ -x /var/lib/dokku/plugins/enabled/00_dokku-standard/subcommands/default ]] | |
+ [[ -x /var/lib/dokku/plugins/enabled/00_dokku-standard/subcommands/report ]] | |
+ /var/lib/dokku/plugins/enabled/00_dokku-standard/subcommands/report report handcount-backend | |
+ source /var/lib/dokku/core-plugins/available/common/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ dokku_report_cmd report handcount-backend | |
+ declare 'desc=reports dokku vitals for troubleshooting' | |
+ local cmd=report | |
+ declare APP=handcount-backend | |
++ uname -a | |
+ dokku_log_info1 'uname: Linux ubuntu-s-2vcpu-2gb-nyc1-01 4.15.0-60-generic #67-Ubuntu SMP Thu Aug 22 16:55:30 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux' | |
+ declare 'desc=log info1 formatter' | |
+ echo '-----> uname: Linux ubuntu-s-2vcpu-2gb-nyc1-01 4.15.0-60-generic #67-Ubuntu SMP Thu Aug 22 16:55:30 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux' | |
-----> uname: Linux ubuntu-s-2vcpu-2gb-nyc1-01 4.15.0-60-generic #67-Ubuntu SMP Thu Aug 22 16:55:30 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux | |
+ dokku_log_info1 'memory: ' | |
+ declare 'desc=log info1 formatter' | |
+ echo '-----> memory: ' | |
-----> memory: | |
+ free -m | |
+ sed 's/^/ /' | |
total used free shared buff/cache available | |
Mem: 3945 239 476 0 3229 3448 | |
Swap: 2047 0 2047 | |
+ dokku_log_info1 'docker version: ' | |
+ declare 'desc=log info1 formatter' | |
+ echo '-----> docker version: ' | |
-----> docker version: | |
+ docker version | |
+ sed 's/^/ /' | |
Client: Docker Engine - Community | |
Version: 19.03.2 | |
API version: 1.40 | |
Go version: go1.12.8 | |
Git commit: 6a30dfc | |
Built: Thu Aug 29 05:29:11 2019 | |
OS/Arch: linux/amd64 | |
Experimental: false | |
Server: Docker Engine - Community | |
Engine: | |
Version: 19.03.2 | |
API version: 1.40 (minimum version 1.12) | |
Go version: go1.12.8 | |
Git commit: 6a30dfc | |
Built: Thu Aug 29 05:27:45 2019 | |
OS/Arch: linux/amd64 | |
Experimental: false | |
containerd: | |
Version: 1.2.6 | |
GitCommit: 894b81a4b802e4eb2a91d1ce216b8817763c29fb | |
runc: | |
Version: 1.0.0-rc8 | |
GitCommit: 425e105d5a03fabd737a126ad93d62a9eeede87f | |
docker-init: | |
Version: 0.18.0 | |
GitCommit: fec3683 | |
+ dokku_log_info1 'docker daemon info: ' | |
+ declare 'desc=log info1 formatter' | |
+ echo '-----> docker daemon info: ' | |
-----> docker daemon info: | |
+ sed 's/^/ /' | |
+ docker -D info | |
Client: | |
Debug Mode: true | |
Server: | |
Containers: 4 | |
Running: 0 | |
Paused: 0 | |
Stopped: 4 | |
Images: 5 | |
Server Version: 19.03.2 | |
Storage Driver: overlay2 | |
Backing Filesystem: extfs | |
Supports d_type: true | |
Native Overlay Diff: true | |
Logging Driver: json-file | |
Cgroup Driver: cgroupfs | |
Plugins: | |
Volume: local | |
Network: bridge host ipvlan macvlan null overlay | |
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog | |
Swarm: inactive | |
Runtimes: runc | |
Default Runtime: runc | |
Init Binary: docker-init | |
containerd version: 894b81a4b802e4eb2a91d1ce216b8817763c29fb | |
runc version: 425e105d5a03fabd737a126ad93d62a9eeede87f | |
init version: fec3683 | |
Security Options: | |
apparmor | |
seccomp | |
Profile: default | |
Kernel Version: 4.15.0-60-generic | |
Operating System: Ubuntu 18.04.3 LTS | |
OSType: linux | |
Architecture: x86_64 | |
CPUs: 2 | |
Total Memory: 3.853GiB | |
Name: ubuntu-s-2vcpu-2gb-nyc1-01 | |
ID: 45YQ:F62S:35RW:4GIT:MYWK:JFGW:6UYF:BXHK:FIZH:2G4K:TZWL:ZXNN | |
Docker Root Dir: /var/lib/docker | |
Debug Mode: false | |
Registry: https://index.docker.io/v1/ | |
Labels: | |
Experimental: false | |
Insecure Registries: | |
127.0.0.0/8 | |
Live Restore Enabled: false | |
++ sigil -v | |
+ dokku_log_info1 'sigil version: 0.4.0' | |
+ declare 'desc=log info1 formatter' | |
+ echo '-----> sigil version: 0.4.0' | |
-----> sigil version: 0.4.0 | |
+ dokku_log_info1 'herokuish version: ' | |
+ declare 'desc=log info1 formatter' | |
+ echo '-----> herokuish version: ' | |
-----> herokuish version: | |
+ sed 's/^/ /' | |
+ docker run --label=org.label-schema.schema-version=1.0 --label=org.label-schema.vendor=dokku --label=dokku --rm gliderlabs/herokuish:latest herokuish version | |
herokuish: 0.5.3 | |
buildpacks: | |
heroku-buildpack-multi v1.0.0 | |
heroku-buildpack-ruby v201 | |
heroku-buildpack-nodejs v161 | |
heroku-buildpack-clojure v84 | |
heroku-buildpack-python v154 | |
heroku-buildpack-java v63 | |
heroku-buildpack-gradle v30 | |
heroku-buildpack-scala v85 | |
heroku-buildpack-play v26 | |
heroku-buildpack-php v159 | |
heroku-buildpack-go v126 | |
buildpack-nginx v12 | |
++ dokku version | |
+ export DOKKU_HOST_ROOT=/home/dokku | |
+ DOKKU_HOST_ROOT=/home/dokku | |
+ export DOKKU_DISTRO | |
++ . /etc/os-release | |
++ echo ubuntu | |
+ DOKKU_DISTRO=ubuntu | |
+ export DOCKER_BIN=docker | |
+ DOCKER_BIN=docker | |
+ export DOKKU_IMAGE=gliderlabs/herokuish:latest | |
+ DOKKU_IMAGE=gliderlabs/herokuish:latest | |
+ 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_SYSTEM_GROUP=dokku | |
+ DOKKU_SYSTEM_GROUP=dokku | |
+ export DOKKU_SYSTEM_USER=dokku | |
+ DOKKU_SYSTEM_USER=dokku | |
+ 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_PID=7883 | |
+ DOKKU_PID=7883 | |
+ 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_BUILD_ARGS=--label=org.label-schema.schema-version=1.0 --label=org.label-schema.vendor=dokku --label=dokku' | |
+ DOKKU_GLOBAL_BUILD_ARGS='--label=org.label-schema.schema-version=1.0 --label=org.label-schema.vendor=dokku --label=dokku' | |
+ export 'DOKKU_GLOBAL_RUN_ARGS=--label=org.label-schema.schema-version=1.0 --label=org.label-schema.vendor=dokku --label=dokku' | |
+ DOKKU_GLOBAL_RUN_ARGS='--label=org.label-schema.schema-version=1.0 --label=org.label-schema.vendor=dokku --label=dokku' | |
+ source /var/lib/dokku/core-plugins/available/common/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ parse_args version | |
+ 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 | |
+ return 0 | |
+ args=("$@") | |
+ skip_arg=false | |
+ [[ version =~ ^--.* ]] | |
+ has_tty | |
+ declare 'desc=return 0 if we have a tty' | |
++ /usr/bin/tty | |
+ [[ /dev/pts/0 == \n\o\t\ \a\ \t\t\y ]] | |
+ return 0 | |
++ id -un | |
+ [[ dokku != \d\o\k\k\u ]] | |
+ [[ version =~ ^plugin:.* ]] | |
+ [[ version == \s\s\h\-\k\e\y\s\:\a\d\d ]] | |
+ [[ -n '' ]] | |
+ dokku_auth version | |
+ declare 'desc=calls user-auth plugin trigger' | |
+ export SSH_USER=dokku | |
+ SSH_USER=dokku | |
+ export SSH_NAME=admin1 | |
+ SSH_NAME=admin1 | |
++ wc -l | |
++ find /var/lib/dokku/plugins/enabled/20_events/user-auth /var/lib/dokku/plugins/enabled/ssh-keys/user-auth | |
+ [[ 2 == 1 ]] | |
+ plugn trigger user-auth dokku admin1 version | |
+ 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 | |
+ [[ version =~ (ssh-keys:add|ssh-keys:remove) ]] | |
+ return 0 | |
+ case "$1" in | |
+ [[ -f /var/lib/dokku/STABLE_VERSION ]] | |
++ cat /var/lib/dokku/STABLE_VERSION | |
+ DOKKU_VERSION=0.18.3 | |
+ echo 'dokku version 0.18.3' | |
+ dokku_log_info1 'dokku version: dokku version 0.18.3' | |
+ declare 'desc=log info1 formatter' | |
+ echo '-----> dokku version: dokku version 0.18.3' | |
-----> dokku version: dokku version 0.18.3 | |
+ dokku_log_info1 'dokku plugins: ' | |
+ declare 'desc=log info1 formatter' | |
+ echo '-----> dokku plugins: ' | |
-----> dokku plugins: | |
+ dokku plugin:list | |
+ sed 's/^/ /' | |
+ export DOKKU_HOST_ROOT=/home/dokku | |
+ DOKKU_HOST_ROOT=/home/dokku | |
+ export DOKKU_DISTRO | |
++ . /etc/os-release | |
++ echo ubuntu | |
+ DOKKU_DISTRO=ubuntu | |
+ export DOCKER_BIN=docker | |
+ DOCKER_BIN=docker | |
+ export DOKKU_IMAGE=gliderlabs/herokuish:latest | |
+ DOKKU_IMAGE=gliderlabs/herokuish:latest | |
+ 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_SYSTEM_GROUP=dokku | |
+ DOKKU_SYSTEM_GROUP=dokku | |
+ export DOKKU_SYSTEM_USER=dokku | |
+ DOKKU_SYSTEM_USER=dokku | |
+ 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_PID=8310 | |
+ DOKKU_PID=8310 | |
+ 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_BUILD_ARGS=--label=org.label-schema.schema-version=1.0 --label=org.label-schema.vendor=dokku --label=dokku' | |
+ DOKKU_GLOBAL_BUILD_ARGS='--label=org.label-schema.schema-version=1.0 --label=org.label-schema.vendor=dokku --label=dokku' | |
+ export 'DOKKU_GLOBAL_RUN_ARGS=--label=org.label-schema.schema-version=1.0 --label=org.label-schema.vendor=dokku --label=dokku' | |
+ DOKKU_GLOBAL_RUN_ARGS='--label=org.label-schema.schema-version=1.0 --label=org.label-schema.vendor=dokku --label=dokku' | |
+ source /var/lib/dokku/core-plugins/available/common/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ parse_args plugin:list | |
+ 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 | |
+ return 0 | |
+ args=("$@") | |
+ skip_arg=false | |
+ [[ plugin:list =~ ^--.* ]] | |
+ has_tty | |
+ declare 'desc=return 0 if we have a tty' | |
++ /usr/bin/tty | |
+ [[ /dev/pts/0 == \n\o\t\ \a\ \t\t\y ]] | |
+ return 0 | |
++ id -un | |
+ [[ dokku != \d\o\k\k\u ]] | |
+ [[ plugin:list =~ ^plugin:.* ]] | |
+ [[ plugin:list != \p\l\u\g\i\n\:\h\e\l\p ]] | |
+ [[ plugin:list != \p\l\u\g\i\n\:\l\i\s\t ]] | |
+ [[ plugin:list == \s\s\h\-\k\e\y\s\:\a\d\d ]] | |
+ [[ -n '' ]] | |
+ dokku_auth plugin:list | |
+ declare 'desc=calls user-auth plugin trigger' | |
+ export SSH_USER=dokku | |
+ SSH_USER=dokku | |
+ export SSH_NAME=admin1 | |
+ SSH_NAME=admin1 | |
++ find /var/lib/dokku/plugins/enabled/20_events/user-auth /var/lib/dokku/plugins/enabled/ssh-keys/user-auth | |
++ wc -l | |
+ [[ 2 == 1 ]] | |
+ plugn trigger user-auth dokku admin1 plugin:list | |
+ 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 | |
+ [[ plugin:list =~ (ssh-keys:add|ssh-keys:remove) ]] | |
+ return 0 | |
+ case "$1" in | |
+ execute_dokku_cmd plugin:list | |
+ declare 'desc=executes dokku sub-commands' | |
+ local PLUGIN_NAME=plugin:list | |
+ local PLUGIN_CMD=plugin:list | |
+ local implemented=0 | |
+ local script | |
+ argv=("$@") | |
+ local argv | |
+ case "$PLUGIN_NAME" in | |
++ readlink -f /var/lib/dokku/plugins/enabled/plugin | |
+ [[ /var/lib/dokku/core-plugins/available/plugin == *core-plugins* ]] | |
+ [[ plugin:list == \p\l\u\g\i\n\:\l\i\s\t ]] | |
+ shift 1 | |
+ [[ -n handcount-backend ]] | |
+ [[ plugin:list == config* ]] | |
+ set -- handcount-backend | |
+ set -- plugin:list handcount-backend | |
+ [[ -x /var/lib/dokku/plugins/enabled/plugin:list/subcommands/default ]] | |
+ [[ -x /var/lib/dokku/plugins/enabled/plugin:list/subcommands/plugin:list ]] | |
+ [[ -x /var/lib/dokku/plugins/enabled/plugin/subcommands/list ]] | |
+ [[ -n list ]] | |
+ /var/lib/dokku/plugins/enabled/plugin/subcommands/list plugin:list handcount-backend | |
+ source /var/lib/dokku/plugins/available/plugin/internal-functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
++ source /var/lib/dokku/core-plugins/available/common/functions | |
+++ set -eo pipefail | |
+++ [[ -n 1 ]] | |
+++ set -x | |
+ plugin_list_cmd plugin:list handcount-backend | |
+ declare 'desc=lists all plugins' | |
+ local cmd=plugin | |
+ plugn version | |
plugn: 0.3.2 | |
+ plugn list | |
00_dokku-standard 0.18.3 enabled dokku core standard plugin | |
20_events 0.18.3 enabled dokku core events logging plugin | |
app-json 0.18.3 enabled dokku core app-json plugin | |
apps 0.18.3 enabled dokku core apps plugin | |
builder-dockerfile 0.18.3 enabled dokku core builder-dockerfile plugin | |
builder-herokuish 0.18.3 enabled dokku core builder-herokuish plugin | |
buildpacks 0.18.3 enabled dokku core buildpacks plugin | |
certs 0.18.3 enabled dokku core certificate management plugin | |
checks 0.18.3 enabled dokku core checks plugin | |
common 0.18.3 enabled dokku core common plugin | |
config 0.18.3 enabled dokku core config plugin | |
docker-options 0.18.3 enabled dokku core docker-options plugin | |
domains 0.18.3 enabled dokku core domains plugin | |
enter 0.18.3 enabled dokku core enter plugin | |
git 0.18.3 enabled dokku core git plugin | |
hostname 0.2.0 enabled Sets the docker hostname option for dokku | |
letsencrypt 0.8.9 enabled Automated installation of let's encrypt TLS certificates | |
logs 0.18.3 enabled dokku core logs plugin | |
logspout 0.4.0 enabled sends dokku app stdout to a logging service | |
maintenance 0.5.0 enabled Maintenance mode for apps | |
network 0.18.3 enabled dokku core network plugin | |
nginx-vhosts 0.18.3 enabled dokku core nginx-vhosts plugin | |
plugin 0.18.3 enabled dokku core plugin plugin | |
postgres 1.9.0 enabled dokku postgres service plugin | |
proxy 0.18.3 enabled dokku core proxy plugin | |
ps 0.18.3 enabled dokku core ps plugin | |
redis 1.9.0 enabled dokku redis service plugin | |
repo 0.18.3 enabled dokku core repo plugin | |
resource 0.18.3 enabled dokku core resource plugin | |
scheduler-docker-local 0.18.3 enabled dokku core scheduler-docker-local plugin | |
shell 0.18.3 enabled dokku core shell plugin | |
ssh-keys 0.18.3 enabled dokku core ssh-keys plugin | |
storage 0.18.3 enabled dokku core storage plugin | |
tags 0.18.3 enabled dokku core tags plugin | |
tar 0.18.3 enabled dokku core tar plugin | |
trace 0.18.3 enabled dokku core trace plugin | |
+ implemented=1 | |
+ [[ 1 -eq 0 ]] | |
+ [[ 1 -eq 0 ]] | |
+ [[ handcount-backend == \-\-\a\l\l ]] | |
+ [[ -n handcount-backend ]] | |
+ plugn trigger report handcount-backend | |
+ source /var/lib/dokku/core-plugins/available/common/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ [[ ! -n '' ]] | |
++ 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 | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ set -eo pipefail | |
+ [[ -n 1 ]] | |
+ set -x | |
+ cmd-apps-report-single handcount-backend | |
+ declare APP=handcount-backend INFO_FLAG= | |
+ local APP_DIR=/home/dokku/handcount-backend | |
+ local use_echo | |
+ [[ '' == \t\r\u\e ]] | |
+ verify_app_name handcount-backend | |
+ declare 'desc=verify app name format and app existence' | |
+ local APP=handcount-backend | |
+ is_valid_app_name handcount-backend | |
+ declare 'desc=verify app name format' | |
+ local APP=handcount-backend | |
+ [[ -z handcount-backend ]] | |
+ [[ handcount-backend =~ ^[a-z].* ]] | |
+ [[ ! handcount-backend =~ [A-Z] ]] | |
+ [[ ! handcount-backend =~ [:] ]] | |
+ return 0 | |
+ [[ ! -d /home/dokku/handcount-backend ]] | |
+ return 0 | |
+ flag_map=("--app-dir: $APP_DIR" "--git-sha: $(GIT_DIR="$APP_DIR" git rev-parse --short HEAD 2>/dev/null || false)" "--deploy-source: $(: | plugn trigger deploy-source "$APP")" "--locked: $(apps_is_locked "$APP")") | |
++ GIT_DIR=/home/dokku/handcount-backend | |
++ git rev-parse --short HEAD | |
++ : | |
++ plugn trigger deploy-source handcount-backend | |
+ source /var/lib/dokku/core-plugins/available/common/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ [[ ! -n '' ]] | |
+ git_deploy_source handcount-backend | |
+ declare 'desc=git deploy-source plugin trigger' | |
+ declare trigger=git_deploy_source | |
+ declare APP=handcount-backend | |
+ local STDIN | |
++ cat | |
+ STDIN= | |
+ [[ -n '' ]] | |
+ [[ -d /home/dokku/handcount-backend/refs ]] | |
+ echo git | |
+ tar_deploy_source handcount-backend | |
+ declare 'desc=tar deploy-source plugin trigger' | |
+ declare trigger=tar_deploy_source | |
+ declare APP=handcount-backend | |
+ local STDIN | |
++ cat | |
+ STDIN= | |
+ [[ -n '' ]] | |
+ [[ -f /home/dokku/handcount-backend/src.tar ]] | |
++ apps_is_locked handcount-backend | |
++ declare 'desc=check if an app is locked' | |
++ declare APP=handcount-backend | |
++ local LOCKED=false | |
++ [[ -f /home/dokku/handcount-backend/.deploy.lock ]] | |
++ LOCKED=true | |
++ echo true | |
+ local flag_map | |
+ [[ -z '' ]] | |
+ dokku_log_info2_quiet 'handcount-backend app information' | |
+ declare 'desc=log info2 formatter (with quiet option)' | |
+ [[ -z '' ]] | |
+ echo '=====> handcount-backend app information' | |
=====> handcount-backend app information | |
+ is_deployed handcount-backend | |
+ declare 'desc=return 0 if given app has a running container' | |
+ local APP=handcount-backend | |
+ 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 | |
++ get_app_scheduler handcount-backend | |
++ declare 'desc=fetch the scheduler for a given application' | |
++ declare APP=handcount-backend | |
++ local DOKKU_APP_SCHEDULER DOKKU_GLOBAL_SCHEDULER DOKKU_SCHEDULER | |
++ [[ handcount-backend == \-\-\g\l\o\b\a\l ]] | |
++ 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 | |
++ [[ -n handcount-backend ]] | |
+++ config_get handcount-backend DOKKU_SCHEDULER | |
+++ declare 'desc=get value of given config var' | |
+++ config_sub get handcount-backend DOKKU_SCHEDULER | |
+++ declare 'desc=executes a config subcommand' | |
+++ local name=get | |
+++ shift | |
+++ /var/lib/dokku/plugins/available/config/subcommands/get config:get handcount-backend DOKKU_SCHEDULER | |
+++ true | |
++ DOKKU_APP_SCHEDULER= | |
+++ config_get --global DOKKU_SCHEDULER | |
+++ declare 'desc=get value of given config var' | |
+++ config_sub get --global DOKKU_SCHEDULER | |
+++ declare 'desc=executes a config subcommand' | |
+++ local name=get | |
+++ shift | |
+++ /var/lib/dokku/plugins/available/config/subcommands/get config:get --global DOKKU_SCHEDULER | |
+++ true | |
++ DOKKU_GLOBAL_SCHEDULER= | |
++ DOKKU_SCHEDULER= | |
++ [[ -z '' ]] | |
++ DOKKU_SCHEDULER=docker-local | |
++ echo docker-local | |
+ local DOKKU_SCHEDULER=docker-local | |
+ plugn trigger scheduler-is-deployed docker-local handcount-backend | |
+ source /var/lib/dokku/core-plugins/available/common/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ [[ ! -n '' ]] | |
+ scheduler-docker-local-scheduler-is-deployed docker-local handcount-backend | |
+ declare 'desc=checks if an app is deployed' | |
+ declare DOKKU_SCHEDULER=docker-local APP=handcount-backend | |
+ [[ docker-local != \d\o\c\k\e\r\-\l\o\c\a\l ]] | |
+ [[ -f /home/dokku/handcount-backend/CONTAINER ]] | |
++ ls /home/dokku/handcount-backend/CONTAINER.web.1 | |
++ echo 0 | |
+ [[ 0 -eq 0 ]] | |
+ return 0 | |
+ for flag in "${flag_map[@]}" | |
++ echo 'app-dir: /home/dokku/handcount-backend' | |
++ cut -f1 '-d ' | |
++ tr - ' ' | |
+ key='app dir:' | |
++ printf '%-30s %-25s' 'App dir:' /home/dokku/handcount-backend | |
+ dokku_log_verbose 'App dir: /home/dokku/handcount-backend' | |
+ declare 'desc=log verbose formatter' | |
+ echo ' App dir: /home/dokku/handcount-backend' | |
App dir: /home/dokku/handcount-backend | |
+ for flag in "${flag_map[@]}" | |
++ echo 'git-sha: 78d6879' | |
++ cut -f1 '-d ' | |
++ tr - ' ' | |
+ key='git sha:' | |
++ printf '%-30s %-25s' 'Git sha:' 78d6879 | |
+ dokku_log_verbose 'Git sha: 78d6879 ' | |
+ declare 'desc=log verbose formatter' | |
+ echo ' Git sha: 78d6879 ' | |
Git sha: 78d6879 | |
+ for flag in "${flag_map[@]}" | |
++ echo 'deploy-source: git' | |
++ tr - ' ' | |
++ cut -f1 '-d ' | |
+ key='deploy source:' | |
++ printf '%-30s %-25s' 'Deploy source:' git | |
+ dokku_log_verbose 'Deploy source: git ' | |
+ declare 'desc=log verbose formatter' | |
+ echo ' Deploy source: git ' | |
Deploy source: git | |
+ for flag in "${flag_map[@]}" | |
++ echo 'locked: true' | |
++ cut -f1 '-d ' | |
++ tr - ' ' | |
+ key=locked: | |
++ printf '%-30s %-25s' Locked: true | |
+ dokku_log_verbose 'Locked: true ' | |
+ declare 'desc=log verbose formatter' | |
+ echo ' Locked: true ' | |
Locked: true | |
=====> handcount-backend buildpacks information | |
Buildpacks list: | |
++ source /var/lib/dokku/plugins/available/certs/functions | |
+++ set -eo pipefail | |
+++ [[ -n 1 ]] | |
+++ set -x | |
+++ source /var/lib/dokku/core-plugins/available/common/functions | |
++++ set -eo pipefail | |
++++ [[ -n 1 ]] | |
++++ set -x | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ set -eo pipefail | |
+ [[ -n 1 ]] | |
+ set -x | |
+ cmd-certs-report-single handcount-backend | |
+ declare APP=handcount-backend INFO_FLAG= | |
+ [[ '' == \t\r\u\e ]] | |
+ verify_app_name handcount-backend | |
+ declare 'desc=verify app name format and app existence' | |
+ local APP=handcount-backend | |
+ is_valid_app_name handcount-backend | |
+ declare 'desc=verify app name format' | |
+ local APP=handcount-backend | |
+ [[ -z handcount-backend ]] | |
+ [[ handcount-backend =~ ^[a-z].* ]] | |
+ [[ ! handcount-backend =~ [A-Z] ]] | |
+ [[ ! handcount-backend =~ [:] ]] | |
+ return 0 | |
+ [[ ! -d /home/dokku/handcount-backend ]] | |
+ return 0 | |
+ flag_map=("--ssl-dir: $DOKKU_ROOT/$APP/tls" "--ssl-enabled: $(fn-ssl-enabled "$APP")" "--ssl-hostnames: $(fn-ssl-hostnames "$APP")" "--ssl-expires-at: $(fn-ssl-expires-at "$APP")" "--ssl-issuer: $(fn-ssl-issuer "$APP")" "--ssl-starts-at: $(fn-ssl-starts-at "$APP")" "--ssl-subject: $(fn-ssl-subject "$APP")" "--ssl-verified: $(fn-ssl-verified "$APP")") | |
++ fn-ssl-enabled handcount-backend | |
++ declare APP=handcount-backend | |
++ local SSL_ENABLED=false | |
++ is_ssl_enabled handcount-backend | |
++ declare 'desc=returns 0 if ssl is enabled for given app' | |
++ local APP=handcount-backend | |
++ verify_app_name handcount-backend | |
++ declare 'desc=verify app name format and app existence' | |
++ local APP=handcount-backend | |
++ is_valid_app_name handcount-backend | |
++ declare 'desc=verify app name format' | |
++ local APP=handcount-backend | |
++ [[ -z handcount-backend ]] | |
++ [[ handcount-backend =~ ^[a-z].* ]] | |
++ [[ ! handcount-backend =~ [A-Z] ]] | |
++ [[ ! handcount-backend =~ [:] ]] | |
++ return 0 | |
++ [[ ! -d /home/dokku/handcount-backend ]] | |
++ return 0 | |
++ local APP_SSL_PATH=/home/dokku/handcount-backend/tls | |
++ [[ -e /home/dokku/handcount-backend/tls/server.crt ]] | |
++ [[ -e /home/dokku/handcount-backend/tls/server.key ]] | |
++ return 0 | |
++ SSL_ENABLED=true | |
++ echo true | |
++ fn-ssl-hostnames handcount-backend | |
++ declare APP=handcount-backend | |
++ is_ssl_enabled handcount-backend | |
++ declare 'desc=returns 0 if ssl is enabled for given app' | |
++ local APP=handcount-backend | |
++ verify_app_name handcount-backend | |
++ declare 'desc=verify app name format and app existence' | |
++ local APP=handcount-backend | |
++ is_valid_app_name handcount-backend | |
++ declare 'desc=verify app name format' | |
++ local APP=handcount-backend | |
++ [[ -z handcount-backend ]] | |
++ [[ handcount-backend =~ ^[a-z].* ]] | |
++ [[ ! handcount-backend =~ [A-Z] ]] | |
++ [[ ! handcount-backend =~ [:] ]] | |
++ return 0 | |
++ [[ ! -d /home/dokku/handcount-backend ]] | |
++ return 0 | |
++ local APP_SSL_PATH=/home/dokku/handcount-backend/tls | |
++ [[ -e /home/dokku/handcount-backend/tls/server.crt ]] | |
++ [[ -e /home/dokku/handcount-backend/tls/server.key ]] | |
++ return 0 | |
++ get_ssl_hostnames handcount-backend | |
++ declare 'desc=returns a string of ssl hostnames extracted from an app'\''s ssl certificate' | |
++ local APP=handcount-backend | |
++ verify_app_name handcount-backend | |
++ declare 'desc=verify app name format and app existence' | |
++ local APP=handcount-backend | |
++ is_valid_app_name handcount-backend | |
++ declare 'desc=verify app name format' | |
++ local APP=handcount-backend | |
++ [[ -z handcount-backend ]] | |
++ [[ handcount-backend =~ ^[a-z].* ]] | |
++ [[ ! handcount-backend =~ [A-Z] ]] | |
++ [[ ! handcount-backend =~ [:] ]] | |
++ return 0 | |
++ [[ ! -d /home/dokku/handcount-backend ]] | |
++ return 0 | |
++ local SSL_PATH=/home/dokku/handcount-backend/tls | |
++ xargs | |
+++ grep CN= | |
+++ tr / '\n' | |
+++ openssl x509 -in /home/dokku/handcount-backend/tls/server.crt -noout -subject | |
+++ cut -c4- | |
++ local SSL_HOSTNAME= | |
+++ openssl x509 -in /home/dokku/handcount-backend/tls/server.crt -noout -text | |
+++ tr , '\n' | |
+++ sed -e 's/[[:space:]]*DNS://g' | |
+++ grep --after-context=1 '509v3 Subject Alternative Name:' | |
+++ tail -n 1 | |
++ local SSL_HOSTNAME_ALT=handcount.cqcumbers.com | |
++ [[ -n handcount.cqcumbers.com ]] | |
++ local 'SSL_HOSTNAMES=\nhandcount.cqcumbers.com' | |
++ echo -e '\nhandcount.cqcumbers.com' | |
++ sort -u | |
++ return 0 | |
++ fn-ssl-expires-at handcount-backend | |
++ declare APP=handcount-backend | |
++ local APP_SSL_PATH=/home/dokku/handcount-backend/tls | |
++ is_ssl_enabled handcount-backend | |
++ declare 'desc=returns 0 if ssl is enabled for given app' | |
++ local APP=handcount-backend | |
++ verify_app_name handcount-backend | |
++ declare 'desc=verify app name format and app existence' | |
++ local APP=handcount-backend | |
++ is_valid_app_name handcount-backend | |
++ declare 'desc=verify app name format' | |
++ local APP=handcount-backend | |
++ [[ -z handcount-backend ]] | |
++ [[ handcount-backend =~ ^[a-z].* ]] | |
++ [[ ! handcount-backend =~ [A-Z] ]] | |
++ [[ ! handcount-backend =~ [:] ]] | |
++ return 0 | |
++ [[ ! -d /home/dokku/handcount-backend ]] | |
++ return 0 | |
++ local APP_SSL_PATH=/home/dokku/handcount-backend/tls | |
++ [[ -e /home/dokku/handcount-backend/tls/server.crt ]] | |
++ [[ -e /home/dokku/handcount-backend/tls/server.key ]] | |
++ return 0 | |
++ openssl x509 -in /home/dokku/handcount-backend/tls/server.crt -noout -text | |
++ awk -F ' : ' '{ print $2 }' | |
++ grep 'Not After :' | |
++ fn-ssl-issuer handcount-backend | |
++ declare APP=handcount-backend | |
++ local APP_SSL_PATH=/home/dokku/handcount-backend/tls | |
++ is_ssl_enabled handcount-backend | |
++ declare 'desc=returns 0 if ssl is enabled for given app' | |
++ local APP=handcount-backend | |
++ verify_app_name handcount-backend | |
++ declare 'desc=verify app name format and app existence' | |
++ local APP=handcount-backend | |
++ is_valid_app_name handcount-backend | |
++ declare 'desc=verify app name format' | |
++ local APP=handcount-backend | |
++ [[ -z handcount-backend ]] | |
++ [[ handcount-backend =~ ^[a-z].* ]] | |
++ [[ ! handcount-backend =~ [A-Z] ]] | |
++ [[ ! handcount-backend =~ [:] ]] | |
++ return 0 | |
++ [[ ! -d /home/dokku/handcount-backend ]] | |
++ return 0 | |
++ local APP_SSL_PATH=/home/dokku/handcount-backend/tls | |
++ [[ -e /home/dokku/handcount-backend/tls/server.crt ]] | |
++ [[ -e /home/dokku/handcount-backend/tls/server.key ]] | |
++ return 0 | |
++ openssl x509 -in /home/dokku/handcount-backend/tls/server.crt -noout -text | |
++ sed -e 's/Issuer: //g' | |
++ xargs | |
++ grep Issuer: | |
++ fn-ssl-starts-at handcount-backend | |
++ declare APP=handcount-backend | |
++ local APP_SSL_PATH=/home/dokku/handcount-backend/tls | |
++ is_ssl_enabled handcount-backend | |
++ declare 'desc=returns 0 if ssl is enabled for given app' | |
++ local APP=handcount-backend | |
++ verify_app_name handcount-backend | |
++ declare 'desc=verify app name format and app existence' | |
++ local APP=handcount-backend | |
++ is_valid_app_name handcount-backend | |
++ declare 'desc=verify app name format' | |
++ local APP=handcount-backend | |
++ [[ -z handcount-backend ]] | |
++ [[ handcount-backend =~ ^[a-z].* ]] | |
++ [[ ! handcount-backend =~ [A-Z] ]] | |
++ [[ ! handcount-backend =~ [:] ]] | |
++ return 0 | |
++ [[ ! -d /home/dokku/handcount-backend ]] | |
++ return 0 | |
++ local APP_SSL_PATH=/home/dokku/handcount-backend/tls | |
++ [[ -e /home/dokku/handcount-backend/tls/server.crt ]] | |
++ [[ -e /home/dokku/handcount-backend/tls/server.key ]] | |
++ return 0 | |
++ openssl x509 -in /home/dokku/handcount-backend/tls/server.crt -noout -text | |
++ grep 'Not Before:' | |
++ awk -F ': ' '{ print $2 }' | |
++ fn-ssl-subject handcount-backend | |
++ declare APP=handcount-backend | |
++ local APP_SSL_PATH=/home/dokku/handcount-backend/tls | |
++ is_ssl_enabled handcount-backend | |
++ declare 'desc=returns 0 if ssl is enabled for given app' | |
++ local APP=handcount-backend | |
++ verify_app_name handcount-backend | |
++ declare 'desc=verify app name format and app existence' | |
++ local APP=handcount-backend | |
++ is_valid_app_name handcount-backend | |
++ declare 'desc=verify app name format' | |
++ local APP=handcount-backend | |
++ [[ -z handcount-backend ]] | |
++ [[ handcount-backend =~ ^[a-z].* ]] | |
++ [[ ! handcount-backend =~ [A-Z] ]] | |
++ [[ ! handcount-backend =~ [:] ]] | |
++ return 0 | |
++ [[ ! -d /home/dokku/handcount-backend ]] | |
++ return 0 | |
++ local APP_SSL_PATH=/home/dokku/handcount-backend/tls | |
++ [[ -e /home/dokku/handcount-backend/tls/server.crt ]] | |
++ [[ -e /home/dokku/handcount-backend/tls/server.key ]] | |
++ return 0 | |
++ openssl x509 -in /home/dokku/handcount-backend/tls/server.crt -noout -subject | |
++ sed -e 's:subject= ::g' | |
++ sed -e 's:/:; :g' | |
++ sed -e 's:^/::g' | |
++ fn-ssl-verified handcount-backend | |
++ declare APP=handcount-backend | |
++ local APP_SSL_PATH=/home/dokku/handcount-backend/tls | |
++ local SSL_VERIFY_OUTPUT=false 'SSL_SELF_SIGNED=self signed' | |
++ is_ssl_enabled handcount-backend | |
++ declare 'desc=returns 0 if ssl is enabled for given app' | |
++ local APP=handcount-backend | |
++ verify_app_name handcount-backend | |
++ declare 'desc=verify app name format and app existence' | |
++ local APP=handcount-backend | |
++ is_valid_app_name handcount-backend | |
++ declare 'desc=verify app name format' | |
++ local APP=handcount-backend | |
++ [[ -z handcount-backend ]] | |
++ [[ handcount-backend =~ ^[a-z].* ]] | |
++ [[ ! handcount-backend =~ [A-Z] ]] | |
++ [[ ! handcount-backend =~ [:] ]] | |
++ return 0 | |
++ [[ ! -d /home/dokku/handcount-backend ]] | |
++ return 0 | |
++ local APP_SSL_PATH=/home/dokku/handcount-backend/tls | |
++ [[ -e /home/dokku/handcount-backend/tls/server.crt ]] | |
++ [[ -e /home/dokku/handcount-backend/tls/server.key ]] | |
++ return 0 | |
+++ openssl verify -verbose -purpose sslserver /home/dokku/handcount-backend/tls/server.crt | |
+++ tail -1 | |
+++ awk -F : '{ print $2 }' | |
CN = handcount.cqcumbers.com | |
error 20 at 0 depth lookup: unable to get local issuer certificate | |
+++ xargs | |
+++ true | |
++ SSL_VERIFY_OUTPUT='verification failed' | |
++ [[ verification failed == \O\K ]] | |
++ echo 'self signed' | |
+ local flag_map | |
+ [[ -z '' ]] | |
+ dokku_log_info2_quiet 'handcount-backend ssl information' | |
+ declare 'desc=log info2 formatter (with quiet option)' | |
+ [[ -z '' ]] | |
+ echo '=====> handcount-backend ssl information' | |
=====> handcount-backend ssl information | |
+ for flag in "${flag_map[@]}" | |
++ echo 'ssl-dir: /home/dokku/handcount-backend/tls' | |
++ tr - ' ' | |
++ cut -f1 '-d ' | |
+ key='ssl dir:' | |
++ printf '%-30s %-25s' 'Ssl dir:' /home/dokku/handcount-backend/tls | |
+ dokku_log_verbose 'Ssl dir: /home/dokku/handcount-backend/tls' | |
+ declare 'desc=log verbose formatter' | |
+ echo ' Ssl dir: /home/dokku/handcount-backend/tls' | |
Ssl dir: /home/dokku/handcount-backend/tls | |
+ for flag in "${flag_map[@]}" | |
++ echo 'ssl-enabled: true' | |
++ cut -f1 '-d ' | |
++ tr - ' ' | |
+ key='ssl enabled:' | |
++ printf '%-30s %-25s' 'Ssl enabled:' true | |
+ dokku_log_verbose 'Ssl enabled: true ' | |
+ declare 'desc=log verbose formatter' | |
+ echo ' Ssl enabled: true ' | |
Ssl enabled: true | |
+ for flag in "${flag_map[@]}" | |
++ echo 'ssl-hostnames: handcount.cqcumbers.com' | |
++ cut -f1 '-d ' | |
++ tr - ' ' | |
+ key='ssl hostnames:' | |
++ printf '%-30s %-25s' 'Ssl hostnames:' handcount.cqcumbers.com | |
+ dokku_log_verbose 'Ssl hostnames: handcount.cqcumbers.com ' | |
+ declare 'desc=log verbose formatter' | |
+ echo ' Ssl hostnames: handcount.cqcumbers.com ' | |
Ssl hostnames: handcount.cqcumbers.com | |
+ for flag in "${flag_map[@]}" | |
++ echo 'ssl-expires-at: Nov 6 13:28:17 2019 GMT' | |
++ cut -f1 '-d ' | |
++ tr - ' ' | |
+ key='ssl expires at:' | |
++ printf '%-30s %-25s' 'Ssl expires at:' 'Nov 6 13:28:17 2019 GMT' | |
+ dokku_log_verbose 'Ssl expires at: Nov 6 13:28:17 2019 GMT ' | |
+ declare 'desc=log verbose formatter' | |
+ echo ' Ssl expires at: Nov 6 13:28:17 2019 GMT ' | |
Ssl expires at: Nov 6 13:28:17 2019 GMT | |
+ for flag in "${flag_map[@]}" | |
++ echo 'ssl-issuer: C = US, O = Lets Encrypt, CN = Lets Encrypt Authority X3' | |
++ tr - ' ' | |
++ cut -f1 '-d ' | |
+ key='ssl issuer:' | |
++ printf '%-30s %-25s' 'Ssl issuer:' 'C = US, O = Lets Encrypt, CN = Lets Encrypt Authority X3' | |
+ dokku_log_verbose 'Ssl issuer: C = US, O = Lets Encrypt, CN = Lets Encrypt Authority X3' | |
+ declare 'desc=log verbose formatter' | |
+ echo ' Ssl issuer: C = US, O = Lets Encrypt, CN = Lets Encrypt Authority X3' | |
Ssl issuer: C = US, O = Lets Encrypt, CN = Lets Encrypt Authority X3 | |
+ for flag in "${flag_map[@]}" | |
++ echo 'ssl-starts-at: Aug 8 13:28:17 2019 GMT' | |
++ cut -f1 '-d ' | |
++ tr - ' ' | |
+ key='ssl starts at:' | |
++ printf '%-30s %-25s' 'Ssl starts at:' 'Aug 8 13:28:17 2019 GMT' | |
+ dokku_log_verbose 'Ssl starts at: Aug 8 13:28:17 2019 GMT ' | |
+ declare 'desc=log verbose formatter' | |
+ echo ' Ssl starts at: Aug 8 13:28:17 2019 GMT ' | |
Ssl starts at: Aug 8 13:28:17 2019 GMT | |
+ for flag in "${flag_map[@]}" | |
++ echo 'ssl-subject: subject=CN = handcount.cqcumbers.com' | |
++ cut -f1 '-d ' | |
++ tr - ' ' | |
+ key='ssl subject:' | |
++ printf '%-30s %-25s' 'Ssl subject:' 'subject=CN = handcount.cqcumbers.com' | |
+ dokku_log_verbose 'Ssl subject: subject=CN = handcount.cqcumbers.com' | |
+ declare 'desc=log verbose formatter' | |
+ echo ' Ssl subject: subject=CN = handcount.cqcumbers.com' | |
Ssl subject: subject=CN = handcount.cqcumbers.com | |
+ for flag in "${flag_map[@]}" | |
++ echo 'ssl-verified: self signed' | |
++ cut -f1 '-d ' | |
++ tr - ' ' | |
+ key='ssl verified:' | |
++ printf '%-30s %-25s' 'Ssl verified:' 'self signed' | |
+ dokku_log_verbose 'Ssl verified: self signed ' | |
+ declare 'desc=log verbose formatter' | |
+ echo ' Ssl verified: self signed ' | |
Ssl verified: self signed | |
++ source /var/lib/dokku/plugins/available/checks/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 | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ set -eo pipefail | |
+ [[ -n 1 ]] | |
+ set -x | |
+ cmd-checks-report-single handcount-backend | |
+ declare APP=handcount-backend INFO_FLAG= | |
+ [[ '' == \t\r\u\e ]] | |
+ verify_app_name handcount-backend | |
+ declare 'desc=verify app name format and app existence' | |
+ local APP=handcount-backend | |
+ is_valid_app_name handcount-backend | |
+ declare 'desc=verify app name format' | |
+ local APP=handcount-backend | |
+ [[ -z handcount-backend ]] | |
+ [[ handcount-backend =~ ^[a-z].* ]] | |
+ [[ ! handcount-backend =~ [A-Z] ]] | |
+ [[ ! handcount-backend =~ [:] ]] | |
+ return 0 | |
+ [[ ! -d /home/dokku/handcount-backend ]] | |
+ return 0 | |
+ flag_map=("--checks-disabled-list: $(fn-checks-disabled-list "$APP")" "--checks-skipped-list: $(fn-checks-skipped-list "$APP")") | |
++ fn-checks-disabled-list handcount-backend | |
++ declare APP=handcount-backend | |
+++ config_get handcount-backend DOKKU_CHECKS_DISABLED | |
+++ declare 'desc=get value of given config var' | |
+++ config_sub get handcount-backend DOKKU_CHECKS_DISABLED | |
+++ declare 'desc=executes a config subcommand' | |
+++ local name=get | |
+++ shift | |
+++ /var/lib/dokku/plugins/available/config/subcommands/get config:get handcount-backend DOKKU_CHECKS_DISABLED | |
++ local DOKKU_CHECKS_DISABLED= | |
++ DOKKU_CHECKS_DISABLED=none | |
++ echo none | |
++ fn-checks-skipped-list handcount-backend | |
++ declare APP=handcount-backend | |
+++ config_get handcount-backend DOKKU_CHECKS_SKIPPED | |
+++ declare 'desc=get value of given config var' | |
+++ config_sub get handcount-backend DOKKU_CHECKS_SKIPPED | |
+++ declare 'desc=executes a config subcommand' | |
+++ local name=get | |
+++ shift | |
+++ /var/lib/dokku/plugins/available/config/subcommands/get config:get handcount-backend DOKKU_CHECKS_SKIPPED | |
++ local DOKKU_CHECKS_SKIPPED= | |
++ DOKKU_CHECKS_SKIPPED=none | |
++ echo none | |
+ local flag_map | |
+ [[ -z '' ]] | |
+ dokku_log_info2_quiet 'handcount-backend checks information' | |
+ declare 'desc=log info2 formatter (with quiet option)' | |
+ [[ -z '' ]] | |
+ echo '=====> handcount-backend checks information' | |
=====> handcount-backend checks information | |
+ for flag in "${flag_map[@]}" | |
++ echo 'checks-disabled-list: none' | |
++ tr - ' ' | |
++ cut -f1 '-d ' | |
+ key='checks disabled list:' | |
++ printf '%-30s %-25s' 'Checks disabled list:' none | |
+ dokku_log_verbose 'Checks disabled list: none ' | |
+ declare 'desc=log verbose formatter' | |
+ echo ' Checks disabled list: none ' | |
Checks disabled list: none | |
+ for flag in "${flag_map[@]}" | |
++ echo 'checks-skipped-list: none' | |
++ tr - ' ' | |
++ cut -f1 '-d ' | |
+ key='checks skipped list:' | |
++ printf '%-30s %-25s' 'Checks skipped list:' none | |
+ dokku_log_verbose 'Checks skipped list: none ' | |
+ declare 'desc=log verbose formatter' | |
+ echo ' Checks skipped list: none ' | |
Checks skipped list: none | |
++ source /var/lib/dokku/plugins/available/docker-options/functions | |
+++ set -eo pipefail | |
+++ [[ -n 1 ]] | |
+++ set -x | |
+++ source /var/lib/dokku/core-plugins/available/common/functions | |
++++ set -eo pipefail | |
++++ [[ -n 1 ]] | |
++++ set -x | |
+++ AVAILABLE_PHASES=(build deploy run) | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ set -eo pipefail | |
+ [[ -n 1 ]] | |
+ set -x | |
+ cmd-docker-options-report-single handcount-backend | |
+ declare APP=handcount-backend INFO_FLAG= | |
+ [[ '' == \t\r\u\e ]] | |
+ verify_app_name handcount-backend | |
+ declare 'desc=verify app name format and app existence' | |
+ local APP=handcount-backend | |
+ is_valid_app_name handcount-backend | |
+ declare 'desc=verify app name format' | |
+ local APP=handcount-backend | |
+ [[ -z handcount-backend ]] | |
+ [[ handcount-backend =~ ^[a-z].* ]] | |
+ [[ ! handcount-backend =~ [A-Z] ]] | |
+ [[ ! handcount-backend =~ [:] ]] | |
+ return 0 | |
+ [[ ! -d /home/dokku/handcount-backend ]] | |
+ return 0 | |
+ flag_map=("--docker-options-build: $(fn-docker-options "$APP" build)" "--docker-options-deploy: $(fn-docker-options "$APP" deploy)" "--docker-options-run: $(fn-docker-options "$APP" run)") | |
++ fn-docker-options handcount-backend build | |
++ declare APP=handcount-backend PHASE=build | |
+++ fn-get-phase-file-path handcount-backend build | |
+++ declare 'desc=return docker-options config file path for specified phase' | |
+++ local APP=handcount-backend PHASE=build | |
+++ local PHASE_FILE=/home/dokku/handcount-backend/DOCKER_OPTIONS_BUILD | |
+++ echo /home/dokku/handcount-backend/DOCKER_OPTIONS_BUILD | |
++ local PHASE_FILE=/home/dokku/handcount-backend/DOCKER_OPTIONS_BUILD | |
++ [[ -r /home/dokku/handcount-backend/DOCKER_OPTIONS_BUILD ]] | |
++ fn-docker-options handcount-backend deploy | |
++ declare APP=handcount-backend PHASE=deploy | |
+++ fn-get-phase-file-path handcount-backend deploy | |
+++ declare 'desc=return docker-options config file path for specified phase' | |
+++ local APP=handcount-backend PHASE=deploy | |
+++ local PHASE_FILE=/home/dokku/handcount-backend/DOCKER_OPTIONS_DEPLOY | |
+++ echo /home/dokku/handcount-backend/DOCKER_OPTIONS_DEPLOY | |
++ local PHASE_FILE=/home/dokku/handcount-backend/DOCKER_OPTIONS_DEPLOY | |
++ [[ -r /home/dokku/handcount-backend/DOCKER_OPTIONS_DEPLOY ]] | |
++ tr '\n' ' ' | |
++ fn-docker-options handcount-backend run | |
++ declare APP=handcount-backend PHASE=run | |
+++ fn-get-phase-file-path handcount-backend run | |
+++ declare 'desc=return docker-options config file path for specified phase' | |
+++ local APP=handcount-backend PHASE=run | |
+++ local PHASE_FILE=/home/dokku/handcount-backend/DOCKER_OPTIONS_RUN | |
+++ echo /home/dokku/handcount-backend/DOCKER_OPTIONS_RUN | |
++ local PHASE_FILE=/home/dokku/handcount-backend/DOCKER_OPTIONS_RUN | |
++ [[ -r /home/dokku/handcount-backend/DOCKER_OPTIONS_RUN ]] | |
++ tr '\n' ' ' | |
+ local flag_map | |
+ [[ -z '' ]] | |
+ dokku_log_info2_quiet 'handcount-backend docker options information' | |
+ declare 'desc=log info2 formatter (with quiet option)' | |
+ [[ -z '' ]] | |
+ echo '=====> handcount-backend docker options information' | |
=====> handcount-backend docker options information | |
+ for flag in "${flag_map[@]}" | |
++ echo 'docker-options-build: ' | |
++ tr - ' ' | |
++ cut -f1 '-d ' | |
+ key='docker options build:' | |
++ printf '%-30s %-25s' 'Docker options build:' '' | |
+ dokku_log_verbose 'Docker options build: ' | |
+ declare 'desc=log verbose formatter' | |
+ echo ' Docker options build: ' | |
Docker options build: | |
+ for flag in "${flag_map[@]}" | |
++ echo 'docker-options-deploy: --restart=on-failure:10 -v /var/lib/dokku/data/storage/handcount-backend:/app/storage ' | |
++ tr - ' ' | |
++ cut -f1 '-d ' | |
+ key='docker options deploy:' | |
++ printf '%-30s %-25s' 'Docker options deploy:' '--restart=on-failure:10 -v /var/lib/dokku/data/storage/handcount-backend:/app/storage ' | |
+ dokku_log_verbose 'Docker options deploy: --restart=on-failure:10 -v /var/lib/dokku/data/storage/handcount-backend:/app/storage ' | |
+ declare 'desc=log verbose formatter' | |
+ echo ' Docker options deploy: --restart=on-failure:10 -v /var/lib/dokku/data/storage/handcount-backend:/app/storage ' | |
Docker options deploy: --restart=on-failure:10 -v /var/lib/dokku/data/storage/handcount-backend:/app/storage | |
+ for flag in "${flag_map[@]}" | |
++ echo 'docker-options-run: -v /var/lib/dokku/data/storage/handcount-backend:/app/storage ' | |
++ cut -f1 '-d ' | |
++ tr - ' ' | |
+ key='docker options run:' | |
++ printf '%-30s %-25s' 'Docker options run:' '-v /var/lib/dokku/data/storage/handcount-backend:/app/storage ' | |
+ dokku_log_verbose 'Docker options run: -v /var/lib/dokku/data/storage/handcount-backend:/app/storage ' | |
+ declare 'desc=log verbose formatter' | |
+ echo ' Docker options run: -v /var/lib/dokku/data/storage/handcount-backend:/app/storage ' | |
Docker options run: -v /var/lib/dokku/data/storage/handcount-backend:/app/storage | |
++ source /var/lib/dokku/plugins/available/domains/functions | |
+++ set -eo pipefail | |
+++ [[ -n 1 ]] | |
+++ set -x | |
+++ source /var/lib/dokku/core-plugins/available/common/functions | |
++++ set -eo pipefail | |
++++ [[ -n 1 ]] | |
++++ set -x | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ set -eo pipefail | |
+ [[ -n 1 ]] | |
+ set -x | |
+ cmd-domains-report-single handcount-backend | |
+ declare APP=handcount-backend INFO_FLAG= | |
+ [[ '' == \t\r\u\e ]] | |
+ flag_map=() | |
+ app_flags=() | |
+ global_flags=() | |
+ local flag_map app_flags global_flags | |
+ [[ handcount-backend != \-\-\g\l\o\b\a\l ]] | |
+ verify_app_name handcount-backend | |
+ declare 'desc=verify app name format and app existence' | |
+ local APP=handcount-backend | |
+ is_valid_app_name handcount-backend | |
+ declare 'desc=verify app name format' | |
+ local APP=handcount-backend | |
+ [[ -z handcount-backend ]] | |
+ [[ handcount-backend =~ ^[a-z].* ]] | |
+ [[ ! handcount-backend =~ [A-Z] ]] | |
+ [[ ! handcount-backend =~ [:] ]] | |
+ return 0 | |
+ [[ ! -d /home/dokku/handcount-backend ]] | |
+ return 0 | |
+ app_flags=("--domains-app-enabled: $(fn-domains-app-enabled "$APP")" "--domains-app-vhosts: $(fn-domains-app-vhosts "$APP" | awk '{$1=$1};1')") | |
++ fn-domains-app-enabled handcount-backend | |
++ declare APP=handcount-backend | |
++ local DOMAINS_APP_ENABLED=false | |
+++ is_app_vhost_enabled handcount-backend | |
+++ declare 'desc=returns true or false if vhost support is enabled for a given application' | |
+++ 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 | |
+++ local APP=handcount-backend | |
+++ verify_app_name handcount-backend | |
+++ declare 'desc=verify app name format and app existence' | |
+++ local APP=handcount-backend | |
+++ is_valid_app_name handcount-backend | |
+++ declare 'desc=verify app name format' | |
+++ local APP=handcount-backend | |
+++ [[ -z handcount-backend ]] | |
+++ [[ handcount-backend =~ ^[a-z].* ]] | |
+++ [[ ! handcount-backend =~ [A-Z] ]] | |
+++ [[ ! handcount-backend =~ [:] ]] | |
+++ return 0 | |
+++ [[ ! -d /home/dokku/handcount-backend ]] | |
+++ return 0 | |
++++ config_get handcount-backend NO_VHOST | |
++++ declare 'desc=get value of given config var' | |
++++ config_sub get handcount-backend NO_VHOST | |
++++ declare 'desc=executes a config subcommand' | |
++++ local name=get | |
++++ shift | |
++++ /var/lib/dokku/plugins/available/config/subcommands/get config:get handcount-backend NO_VHOST | |
+++ local NO_VHOST= | |
+++ local APP_VHOST_ENABLED=true | |
+++ [[ '' == \1 ]] | |
+++ echo true | |
++ [[ true == \t\r\u\e ]] | |
++ DOMAINS_APP_ENABLED=true | |
++ echo true | |
++ fn-domains-app-vhosts handcount-backend | |
++ awk '{$1=$1};1' | |
++ declare APP=handcount-backend | |
++ local APP_VHOST_FILE=/home/dokku/handcount-backend/VHOST | |
++ [[ -f /home/dokku/handcount-backend/VHOST ]] | |
++ tr '\n' ' ' | |
+ global_flags=("--domains-global-enabled: $(fn-domains-global-enabled)" "--domains-global-vhosts: $(fn-domains-global-vhosts | awk '{$1=$1};1')") | |
++ fn-domains-global-enabled | |
++ local DOMAINS_GLOBAL_ENABLED=false | |
+++ is_global_vhost_enabled | |
+++ declare 'desc=returns true if we have a valid global vhost set; otherwise returns false' | |
++++ get_global_vhosts | |
++++ declare 'desc=return global vhosts' | |
++++ local GLOBAL_VHOST_FILE=/home/dokku/VHOST | |
++++ [[ -f /home/dokku/VHOST ]] | |
++++ echo '' | |
+++ local GLOBAL_VHOSTS= | |
+++ local GLOBAL_VHOSTS_ENABLED=false | |
++++ get_ipv4_regex | |
++++ declare 'desc=returns ipv4 regex' | |
+++++ _ipv4_regex | |
+++++ declare 'desc=ipv4 regex' | |
+++++ echo '([0-9]{1,3}[\.]){3}[0-9]{1,3}' | |
++++ local 'RE_IPV4=([0-9]{1,3}[\.]){3}[0-9]{1,3}' | |
++++ echo '([0-9]{1,3}[\.]){3}[0-9]{1,3}$' | |
+++ local 'RE_IPV4=([0-9]{1,3}[\.]){3}[0-9]{1,3}$' | |
++++ get_ipv6_regex | |
++++ declare 'desc=returns ipv6 regex' | |
+++++ _ipv6_regex | |
+++++ declare 'desc=ipv6 regex' | |
++++++ _ipv4_regex | |
++++++ declare 'desc=ipv4 regex' | |
++++++ echo '([0-9]{1,3}[\.]){3}[0-9]{1,3}' | |
+++++ local 'RE_IPV4=([0-9]{1,3}[\.]){3}[0-9]{1,3}' | |
+++++ local 'RE_IPV6=([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|' | |
+++++ 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}:|' | |
+++++ 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}|' | |
+++++ 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}|' | |
+++++ 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}|' | |
+++++ 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}|' | |
+++++ 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}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|' | |
+++++ 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}|([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})|' | |
+++++ 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}|([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}|:)|' | |
+++++ 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}|([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,}|' | |
+++++ 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}|([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}|' | |
+++++ 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}|([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}' | |
+++++ echo '([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}' | |
++++ 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}|([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}' | |
++++ echo '([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}$' | |
+++ 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}|([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}$' | |
+++ read -r GLOBAL_VHOST | |
+++ is_valid_hostname '' | |
+++ declare 'desc=return 0 if argument is a valid hostname; else return 1' | |
+++ local hostname_string= | |
+++ local 'hostname_regex=^[a-z0-9\.\*-]*[a-z0-9\*-]$' | |
+++ [[ '' =~ ^[a-z0-9\.\*-]*[a-z0-9\*-]$ ]] | |
+++ return 1 | |
+++ read -r GLOBAL_VHOST | |
+++ echo false | |
++ [[ false == \t\r\u\e ]] | |
++ echo false | |
++ fn-domains-global-vhosts | |
+++ is_global_vhost_enabled | |
++ awk '{$1=$1};1' | |
+++ declare 'desc=returns true if we have a valid global vhost set; otherwise returns false' | |
++++ get_global_vhosts | |
++++ declare 'desc=return global vhosts' | |
++++ local GLOBAL_VHOST_FILE=/home/dokku/VHOST | |
++++ [[ -f /home/dokku/VHOST ]] | |
++++ echo '' | |
+++ local GLOBAL_VHOSTS= | |
+++ local GLOBAL_VHOSTS_ENABLED=false | |
++++ get_ipv4_regex | |
++++ declare 'desc=returns ipv4 regex' | |
+++++ _ipv4_regex | |
+++++ declare 'desc=ipv4 regex' | |
+++++ echo '([0-9]{1,3}[\.]){3}[0-9]{1,3}' | |
++++ local 'RE_IPV4=([0-9]{1,3}[\.]){3}[0-9]{1,3}' | |
++++ echo '([0-9]{1,3}[\.]){3}[0-9]{1,3}$' | |
+++ local 'RE_IPV4=([0-9]{1,3}[\.]){3}[0-9]{1,3}$' | |
++++ get_ipv6_regex | |
++++ declare 'desc=returns ipv6 regex' | |
+++++ _ipv6_regex | |
+++++ declare 'desc=ipv6 regex' | |
++++++ _ipv4_regex | |
++++++ declare 'desc=ipv4 regex' | |
++++++ echo '([0-9]{1,3}[\.]){3}[0-9]{1,3}' | |
+++++ local 'RE_IPV4=([0-9]{1,3}[\.]){3}[0-9]{1,3}' | |
+++++ local 'RE_IPV6=([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|' | |
+++++ 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}:|' | |
+++++ 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}|' | |
+++++ 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}|' | |
+++++ 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}|' | |
+++++ 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}|' | |
+++++ 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}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|' | |
+++++ 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}|([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})|' | |
+++++ 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}|([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}|:)|' | |
+++++ 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}|([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,}|' | |
+++++ 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}|([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}|' | |
+++++ 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}|([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}' | |
+++++ echo '([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}' | |
++++ 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}|([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}' | |
++++ echo '([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}$' | |
+++ 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}|([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}$' | |
+++ read -r GLOBAL_VHOST | |
+++ is_valid_hostname '' | |
+++ declare 'desc=return 0 if argument is a valid hostname; else return 1' | |
+++ local hostname_string= | |
+++ local 'hostname_regex=^[a-z0-9\.\*-]*[a-z0-9\*-]$' | |
+++ [[ '' =~ ^[a-z0-9\.\*-]*[a-z0-9\*-]$ ]] | |
+++ return 1 | |
+++ read -r GLOBAL_VHOST | |
+++ echo false | |
++ [[ false == \t\r\u\e ]] | |
+ flag_map=("${app_flags[@]}" "${global_flags[@]}") | |
+ [[ -z '' ]] | |
+ [[ handcount-backend == \-\-\g\l\o\b\a\l ]] | |
+ dokku_log_info2_quiet 'handcount-backend domains information' | |
+ declare 'desc=log info2 formatter (with quiet option)' | |
+ [[ -z '' ]] | |
+ echo '=====> handcount-backend domains information' | |
=====> handcount-backend domains information | |
+ for flag in "${flag_map[@]}" | |
++ echo 'domains-app-enabled: true' | |
++ tr - ' ' | |
++ cut -f1 '-d ' | |
+ key='domains app enabled:' | |
++ printf '%-30s %-25s' 'Domains app enabled:' true | |
+ dokku_log_verbose 'Domains app enabled: true ' | |
+ declare 'desc=log verbose formatter' | |
+ echo ' Domains app enabled: true ' | |
Domains app enabled: true | |
+ for flag in "${flag_map[@]}" | |
++ echo 'domains-app-vhosts: handcount.cqcumbers.com' | |
++ tr - ' ' | |
++ cut -f1 '-d ' | |
+ key='domains app vhosts:' | |
++ printf '%-30s %-25s' 'Domains app vhosts:' handcount.cqcumbers.com | |
+ dokku_log_verbose 'Domains app vhosts: handcount.cqcumbers.com ' | |
+ declare 'desc=log verbose formatter' | |
+ echo ' Domains app vhosts: handcount.cqcumbers.com ' | |
Domains app vhosts: handcount.cqcumbers.com | |
+ for flag in "${flag_map[@]}" | |
++ echo 'domains-global-enabled: false' | |
++ tr - ' ' | |
++ cut -f1 '-d ' | |
+ key='domains global enabled:' | |
++ printf '%-30s %-25s' 'Domains global enabled:' false | |
+ dokku_log_verbose 'Domains global enabled: false ' | |
+ declare 'desc=log verbose formatter' | |
+ echo ' Domains global enabled: false ' | |
Domains global enabled: false | |
+ for flag in "${flag_map[@]}" | |
++ echo 'domains-global-vhosts: ' | |
++ tr - ' ' | |
++ cut -f1 '-d ' | |
+ key='domains global vhosts:' | |
++ printf '%-30s %-25s' 'Domains global vhosts:' '' | |
+ dokku_log_verbose 'Domains global vhosts: ' | |
+ declare 'desc=log verbose formatter' | |
+ echo ' Domains global vhosts: ' | |
Domains global vhosts: | |
++ source /var/lib/dokku/core-plugins/available/common/property-functions | |
+++ set -eo pipefail | |
+++ [[ -n 1 ]] | |
+++ set -x | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ set -eo pipefail | |
+ [[ -n 1 ]] | |
+ set -x | |
+ cmd-git-report-single handcount-backend | |
+ declare APP=handcount-backend INFO_FLAG= | |
+ [[ '' == \t\r\u\e ]] | |
+ verify_app_name handcount-backend | |
+ declare 'desc=verify app name format and app existence' | |
+ local APP=handcount-backend | |
+ is_valid_app_name handcount-backend | |
+ declare 'desc=verify app name format' | |
+ local APP=handcount-backend | |
+ [[ -z handcount-backend ]] | |
+ [[ handcount-backend =~ ^[a-z].* ]] | |
+ [[ ! handcount-backend =~ [A-Z] ]] | |
+ [[ ! handcount-backend =~ [:] ]] | |
+ return 0 | |
+ [[ ! -d /home/dokku/handcount-backend ]] | |
+ return 0 | |
+ flag_map=("--git-rev-env-var: $(fn-plugin-property-get "git" "$APP" "rev-env-var" "GIT_REV")" "--git-deploy-branch: $(fn-plugin-property-get "git" "$APP" "deploy-branch" "master")" "--git-global-deploy-branch: $(fn-plugin-property-get "git" "--global" "deploy-branch" "master")") | |
++ fn-plugin-property-get git handcount-backend rev-env-var GIT_REV | |
++ declare 'desc=returns the property store value for an app' | |
++ declare PLUGIN=git APP=handcount-backend KEY=rev-env-var DEFAULT=GIT_REV | |
++ local CONFIG_VALUE | |
++ [[ -z git ]] | |
++ [[ -z handcount-backend ]] | |
++ [[ -z rev-env-var ]] | |
+++ fn-plugin-property-read git handcount-backend rev-env-var | |
+++ declare 'desc=read a key from the property store for an app' | |
+++ declare PLUGIN=git APP=handcount-backend KEY=rev-env-var | |
+++ [[ -z git ]] | |
+++ [[ -z handcount-backend ]] | |
+++ [[ -z rev-env-var ]] | |
+++ [[ ! -f /var/lib/dokku/config/git/handcount-backend/rev-env-var ]] | |
+++ return 1 | |
+++ true | |
++ CONFIG_VALUE= | |
++ [[ -z '' ]] | |
++ CONFIG_VALUE=GIT_REV | |
++ echo GIT_REV | |
++ fn-plugin-property-get git handcount-backend deploy-branch master | |
++ declare 'desc=returns the property store value for an app' | |
++ declare PLUGIN=git APP=handcount-backend KEY=deploy-branch DEFAULT=master | |
++ local CONFIG_VALUE | |
++ [[ -z git ]] | |
++ [[ -z handcount-backend ]] | |
++ [[ -z deploy-branch ]] | |
+++ fn-plugin-property-read git handcount-backend deploy-branch | |
+++ declare 'desc=read a key from the property store for an app' | |
+++ declare PLUGIN=git APP=handcount-backend KEY=deploy-branch | |
+++ [[ -z git ]] | |
+++ [[ -z handcount-backend ]] | |
+++ [[ -z deploy-branch ]] | |
+++ [[ ! -f /var/lib/dokku/config/git/handcount-backend/deploy-branch ]] | |
+++ return 1 | |
+++ true | |
++ CONFIG_VALUE= | |
++ [[ -z '' ]] | |
++ CONFIG_VALUE=master | |
++ echo master | |
++ fn-plugin-property-get git --global deploy-branch master | |
++ declare 'desc=returns the property store value for an app' | |
++ declare PLUGIN=git APP=--global KEY=deploy-branch DEFAULT=master | |
++ local CONFIG_VALUE | |
++ [[ -z git ]] | |
++ [[ -z --global ]] | |
++ [[ -z deploy-branch ]] | |
+++ fn-plugin-property-read git --global deploy-branch | |
+++ declare 'desc=read a key from the property store for an app' | |
+++ declare PLUGIN=git APP=--global KEY=deploy-branch | |
+++ [[ -z git ]] | |
+++ [[ -z --global ]] | |
+++ [[ -z deploy-branch ]] | |
+++ [[ ! -f /var/lib/dokku/config/git/--global/deploy-branch ]] | |
+++ return 1 | |
+++ true | |
++ CONFIG_VALUE= | |
++ [[ -z '' ]] | |
++ CONFIG_VALUE=master | |
++ echo master | |
+ local flag_map | |
+ [[ -z '' ]] | |
+ dokku_log_info2_quiet 'handcount-backend git information' | |
+ declare 'desc=log info2 formatter (with quiet option)' | |
+ [[ -z '' ]] | |
+ echo '=====> handcount-backend git information' | |
=====> handcount-backend git information | |
+ for flag in "${flag_map[@]}" | |
++ echo 'git-rev-env-var: GIT_REV' | |
++ tr - ' ' | |
++ cut -f1 '-d ' | |
+ key='git rev env var:' | |
++ printf '%-30s %-25s' 'Git rev env var:' GIT_REV | |
+ dokku_log_verbose 'Git rev env var: GIT_REV ' | |
+ declare 'desc=log verbose formatter' | |
+ echo ' Git rev env var: GIT_REV ' | |
Git rev env var: GIT_REV | |
+ for flag in "${flag_map[@]}" | |
++ echo 'git-deploy-branch: master' | |
++ tr - ' ' | |
++ cut -f1 '-d ' | |
+ key='git deploy branch:' | |
++ printf '%-30s %-25s' 'Git deploy branch:' master | |
+ dokku_log_verbose 'Git deploy branch: master ' | |
+ declare 'desc=log verbose formatter' | |
+ echo ' Git deploy branch: master ' | |
Git deploy branch: master | |
+ for flag in "${flag_map[@]}" | |
++ echo 'git-global-deploy-branch: master' | |
++ tr - ' ' | |
++ cut -f1 '-d ' | |
+ key='git global deploy branch:' | |
++ printf '%-30s %-25s' 'Git global deploy branch:' master | |
+ dokku_log_verbose 'Git global deploy branch: master ' | |
+ declare 'desc=log verbose formatter' | |
+ echo ' Git global deploy branch: master ' | |
Git global deploy branch: master | |
=====> handcount-backend network information | |
Network bind all interfaces: false | |
Network listeners: 172.17.0.11:5000 | |
++ source /var/lib/dokku/plugins/available/proxy/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 | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ set -eo pipefail | |
+ [[ -n 1 ]] | |
+ set -x | |
+ cmd-proxy-report-single handcount-backend | |
+ declare APP=handcount-backend INFO_FLAG= | |
+ [[ '' == \t\r\u\e ]] | |
+ verify_app_name handcount-backend | |
+ declare 'desc=verify app name format and app existence' | |
+ local APP=handcount-backend | |
+ is_valid_app_name handcount-backend | |
+ declare 'desc=verify app name format' | |
+ local APP=handcount-backend | |
+ [[ -z handcount-backend ]] | |
+ [[ handcount-backend =~ ^[a-z].* ]] | |
+ [[ ! handcount-backend =~ [A-Z] ]] | |
+ [[ ! handcount-backend =~ [:] ]] | |
+ return 0 | |
+ [[ ! -d /home/dokku/handcount-backend ]] | |
+ return 0 | |
+ flag_map=("--proxy-enabled: $(fn-proxy-enabled "$APP")" "--proxy-type: $(get_app_proxy_type "$APP")" "--proxy-port-map: $(get_app_proxy_port_map "$APP")") | |
++ fn-proxy-enabled handcount-backend | |
++ declare APP=handcount-backend | |
++ local PROXY_ENABLED=false | |
+++ is_app_proxy_enabled handcount-backend | |
+++ declare 'desc=return true if proxy is enabled; otherwise return false' | |
+++ local APP=handcount-backend | |
+++ verify_app_name handcount-backend | |
+++ declare 'desc=verify app name format and app existence' | |
+++ local APP=handcount-backend | |
+++ is_valid_app_name handcount-backend | |
+++ declare 'desc=verify app name format' | |
+++ local APP=handcount-backend | |
+++ [[ -z handcount-backend ]] | |
+++ [[ handcount-backend =~ ^[a-z].* ]] | |
+++ [[ ! handcount-backend =~ [A-Z] ]] | |
+++ [[ ! handcount-backend =~ [:] ]] | |
+++ return 0 | |
+++ [[ ! -d /home/dokku/handcount-backend ]] | |
+++ return 0 | |
+++ local APP_PROXY_ENABLED=true | |
++++ config_get handcount-backend DOKKU_DISABLE_PROXY | |
++++ declare 'desc=get value of given config var' | |
++++ config_sub get handcount-backend DOKKU_DISABLE_PROXY | |
++++ declare 'desc=executes a config subcommand' | |
++++ local name=get | |
++++ shift | |
++++ /var/lib/dokku/plugins/available/config/subcommands/get config:get handcount-backend DOKKU_DISABLE_PROXY | |
+++ local DOKKU_DISABLE_PROXY= | |
+++ [[ -n '' ]] | |
+++ echo true | |
++ [[ true == \t\r\u\e ]] | |
++ PROXY_ENABLED=true | |
++ echo true | |
++ get_app_proxy_type handcount-backend | |
++ declare 'desc=return app proxy type' | |
++ local APP=handcount-backend | |
++ verify_app_name handcount-backend | |
++ declare 'desc=verify app name format and app existence' | |
++ local APP=handcount-backend | |
++ is_valid_app_name handcount-backend | |
++ declare 'desc=verify app name format' | |
++ local APP=handcount-backend | |
++ [[ -z handcount-backend ]] | |
++ [[ handcount-backend =~ ^[a-z].* ]] | |
++ [[ ! handcount-backend =~ [A-Z] ]] | |
++ [[ ! handcount-backend =~ [:] ]] | |
++ return 0 | |
++ [[ ! -d /home/dokku/handcount-backend ]] | |
++ return 0 | |
+++ config_get handcount-backend DOKKU_APP_PROXY_TYPE | |
+++ declare 'desc=get value of given config var' | |
+++ config_sub get handcount-backend DOKKU_APP_PROXY_TYPE | |
+++ declare 'desc=executes a config subcommand' | |
+++ local name=get | |
+++ shift | |
+++ /var/lib/dokku/plugins/available/config/subcommands/get config:get handcount-backend DOKKU_APP_PROXY_TYPE | |
+++ true | |
++ local DOKKU_APP_PROXY_TYPE= | |
++ local APP_PROXY_TYPE=nginx | |
++ echo nginx | |
++ get_app_proxy_port_map handcount-backend | |
++ declare 'desc=return a list of configured port mappings' | |
++ local APP=handcount-backend | |
+++ config_get handcount-backend DOKKU_PROXY_PORT_MAP | |
+++ declare 'desc=get value of given config var' | |
+++ config_sub get handcount-backend DOKKU_PROXY_PORT_MAP | |
+++ declare 'desc=executes a config subcommand' | |
+++ local name=get | |
+++ shift | |
+++ /var/lib/dokku/plugins/available/config/subcommands/get config:get handcount-backend DOKKU_PROXY_PORT_MAP | |
++ local 'PROXY_PORT_MAP=http:80:5000 https:443:5000' | |
++ echo 'http:80:5000 https:443:5000' | |
+ local flag_map | |
+ [[ -z '' ]] | |
+ dokku_log_info2_quiet 'handcount-backend proxy information' | |
+ declare 'desc=log info2 formatter (with quiet option)' | |
+ [[ -z '' ]] | |
+ echo '=====> handcount-backend proxy information' | |
=====> handcount-backend proxy information | |
+ for flag in "${flag_map[@]}" | |
++ echo 'proxy-enabled: true' | |
++ tr - ' ' | |
++ cut -f1 '-d ' | |
+ key='proxy enabled:' | |
++ printf '%-30s %-25s' 'Proxy enabled:' true | |
+ dokku_log_verbose 'Proxy enabled: true ' | |
+ declare 'desc=log verbose formatter' | |
+ echo ' Proxy enabled: true ' | |
Proxy enabled: true | |
+ for flag in "${flag_map[@]}" | |
++ echo 'proxy-type: nginx' | |
++ tr - ' ' | |
++ cut -f1 '-d ' | |
+ key='proxy type:' | |
++ printf '%-30s %-25s' 'Proxy type:' nginx | |
+ dokku_log_verbose 'Proxy type: nginx ' | |
+ declare 'desc=log verbose formatter' | |
+ echo ' Proxy type: nginx ' | |
Proxy type: nginx | |
+ for flag in "${flag_map[@]}" | |
++ echo 'proxy-port-map: http:80:5000 https:443:5000' | |
++ tr - ' ' | |
++ cut -f1 '-d ' | |
+ key='proxy port map:' | |
++ printf '%-30s %-25s' 'Proxy port map:' 'http:80:5000 https:443:5000' | |
+ dokku_log_verbose 'Proxy port map: http:80:5000 https:443:5000' | |
+ declare 'desc=log verbose formatter' | |
+ echo ' Proxy port map: http:80:5000 https:443:5000' | |
Proxy port map: http:80:5000 https:443:5000 | |
++ source /var/lib/dokku/plugins/available/docker-options/functions | |
+++ set -eo pipefail | |
+++ [[ -n 1 ]] | |
+++ set -x | |
+++ source /var/lib/dokku/core-plugins/available/common/functions | |
++++ set -eo pipefail | |
++++ [[ -n 1 ]] | |
++++ set -x | |
+++ AVAILABLE_PHASES=(build deploy run) | |
++ 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/ps/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 | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ set -eo pipefail | |
+ [[ -n 1 ]] | |
+ set -x | |
+ cmd-ps-report-single handcount-backend | |
+ declare APP=handcount-backend INFO_FLAG= | |
+ local APP_DIR=/home/dokku/handcount-backend | |
+ [[ '' == \t\r\u\e ]] | |
++ fn-ps-app-status handcount-backend | |
++ declare APP=handcount-backend | |
+++ get_app_scheduler handcount-backend | |
+++ declare 'desc=fetch the scheduler for a given application' | |
+++ declare APP=handcount-backend | |
+++ local DOKKU_APP_SCHEDULER DOKKU_GLOBAL_SCHEDULER DOKKU_SCHEDULER | |
+++ [[ handcount-backend == \-\-\g\l\o\b\a\l ]] | |
+++ 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 | |
+++ [[ -n handcount-backend ]] | |
++++ config_get handcount-backend DOKKU_SCHEDULER | |
++++ declare 'desc=get value of given config var' | |
++++ config_sub get handcount-backend DOKKU_SCHEDULER | |
++++ declare 'desc=executes a config subcommand' | |
++++ local name=get | |
++++ shift | |
++++ /var/lib/dokku/plugins/available/config/subcommands/get config:get handcount-backend DOKKU_SCHEDULER | |
++++ true | |
+++ DOKKU_APP_SCHEDULER= | |
++++ config_get --global DOKKU_SCHEDULER | |
++++ declare 'desc=get value of given config var' | |
++++ config_sub get --global DOKKU_SCHEDULER | |
++++ declare 'desc=executes a config subcommand' | |
++++ local name=get | |
++++ shift | |
++++ /var/lib/dokku/plugins/available/config/subcommands/get config:get --global DOKKU_SCHEDULER | |
++++ true | |
+++ DOKKU_GLOBAL_SCHEDULER= | |
+++ DOKKU_SCHEDULER= | |
+++ [[ -z '' ]] | |
+++ DOKKU_SCHEDULER=docker-local | |
+++ echo docker-local | |
++ local DOKKU_SCHEDULER=docker-local | |
++ plugn trigger scheduler-app-status docker-local handcount-backend | |
+ 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 | |
+ scheduler-app-status docker-local handcount-backend | |
+ declare 'desc=fetches the status for a given app' | |
+ declare 'trigger=scheduler-docker-local scheduler-app-status' | |
+ declare DOKKU_SCHEDULER=docker-local APP=handcount-backend | |
+ [[ docker-local != \d\o\c\k\e\r\-\l\o\c\a\l ]] | |
+ local PROCS=0 RUNNING= | |
++ get_app_container_ids handcount-backend | |
++ declare 'desc=returns list of docker container ids for given app and optional container_type' | |
++ local APP=handcount-backend | |
++ local CONTAINER_TYPE= | |
++ verify_app_name handcount-backend | |
++ declare 'desc=verify app name format and app existence' | |
++ local APP=handcount-backend | |
++ is_valid_app_name handcount-backend | |
++ declare 'desc=verify app name format' | |
++ local APP=handcount-backend | |
++ [[ -z handcount-backend ]] | |
++ [[ handcount-backend =~ ^[a-z].* ]] | |
++ [[ ! handcount-backend =~ [A-Z] ]] | |
++ [[ ! handcount-backend =~ [:] ]] | |
++ return 0 | |
++ [[ ! -d /home/dokku/handcount-backend ]] | |
++ return 0 | |
++ [[ -f /home/dokku/handcount-backend/CONTAINER ]] | |
++ [[ -n '' ]] | |
++ local 'CONTAINER_PATTERN=/home/dokku/handcount-backend/CONTAINER.*' | |
++ shopt -s nullglob | |
++ local DOKKU_CID_FILE | |
++ for DOKKU_CID_FILE in $CONTAINER_PATTERN | |
++ local 'DOKKU_CIDS+= ' | |
++ local DOKKU_CIDS+=9f3e35b24fbd7368e116cdde4799a116ac0de98d7986df4079bb0a9de94f4a26 | |
++ local 'DOKKU_CIDS+= ' | |
++ shopt -u nullglob | |
++ echo ' 9f3e35b24fbd7368e116cdde4799a116ac0de98d7986df4079bb0a9de94f4a26 ' | |
+ local 'APP_CIDS= 9f3e35b24fbd7368e116cdde4799a116ac0de98d7986df4079bb0a9de94f4a26 ' | |
+ for CID in $APP_CIDS | |
+ is_container_status 9f3e35b24fbd7368e116cdde4799a116ac0de98d7986df4079bb0a9de94f4a26 Running | |
+ declare 'desc=return 0 if given docker container id is in given state' | |
+ local CID=9f3e35b24fbd7368e116cdde4799a116ac0de98d7986df4079bb0a9de94f4a26 | |
+ local 'TEMPLATE={{.State.Running}}' | |
++ docker inspect -f '{{.State.Running}}' 9f3e35b24fbd7368e116cdde4799a116ac0de98d7986df4079bb0a9de94f4a26 | |
++ true | |
+ local CONTAINER_STATUS= | |
+ [[ '' == \t\r\u\e ]] | |
+ return 1 | |
+ RUNNING+=1 | |
+ PROCS=1 | |
+ [[ 1 -eq 0 ]] | |
+ [[ 1 -ne 0 ]] | |
+ [[ 1 != *\0* ]] | |
+ RUNNING=false | |
+ echo '1 false' | |
+ local 'APP_RUNNING=1 false' | |
++ echo '1 false' | |
++ cut -d ' ' -f 1 | |
+ local PROCS=1 | |
++ echo '1 false' | |
++ cut -d ' ' -f 2 | |
+ local RUNNING=false | |
+ is_deployed handcount-backend | |
+ declare 'desc=return 0 if given app has a running container' | |
+ local APP=handcount-backend | |
+ 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 | |
++ get_app_scheduler handcount-backend | |
++ declare 'desc=fetch the scheduler for a given application' | |
++ declare APP=handcount-backend | |
++ local DOKKU_APP_SCHEDULER DOKKU_GLOBAL_SCHEDULER DOKKU_SCHEDULER | |
++ [[ handcount-backend == \-\-\g\l\o\b\a\l ]] | |
++ 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 | |
++ [[ -n handcount-backend ]] | |
+++ config_get handcount-backend DOKKU_SCHEDULER | |
+++ declare 'desc=get value of given config var' | |
+++ config_sub get handcount-backend DOKKU_SCHEDULER | |
+++ declare 'desc=executes a config subcommand' | |
+++ local name=get | |
+++ shift | |
+++ /var/lib/dokku/plugins/available/config/subcommands/get config:get handcount-backend DOKKU_SCHEDULER | |
+++ true | |
++ DOKKU_APP_SCHEDULER= | |
+++ config_get --global DOKKU_SCHEDULER | |
+++ declare 'desc=get value of given config var' | |
+++ config_sub get --global DOKKU_SCHEDULER | |
+++ declare 'desc=executes a config subcommand' | |
+++ local name=get | |
+++ shift | |
+++ /var/lib/dokku/plugins/available/config/subcommands/get config:get --global DOKKU_SCHEDULER | |
+++ true | |
++ DOKKU_GLOBAL_SCHEDULER= | |
++ DOKKU_SCHEDULER= | |
++ [[ -z '' ]] | |
++ DOKKU_SCHEDULER=docker-local | |
++ echo docker-local | |
+ local DOKKU_SCHEDULER=docker-local | |
+ plugn trigger scheduler-is-deployed docker-local handcount-backend | |
+ source /var/lib/dokku/core-plugins/available/common/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ [[ ! -n '' ]] | |
+ scheduler-docker-local-scheduler-is-deployed docker-local handcount-backend | |
+ declare 'desc=checks if an app is deployed' | |
+ declare DOKKU_SCHEDULER=docker-local APP=handcount-backend | |
+ [[ docker-local != \d\o\c\k\e\r\-\l\o\c\a\l ]] | |
+ [[ -f /home/dokku/handcount-backend/CONTAINER ]] | |
++ ls /home/dokku/handcount-backend/CONTAINER.web.1 | |
++ echo 0 | |
+ [[ 0 -eq 0 ]] | |
+ return 0 | |
+ DEPLOYED=true | |
+ local passed_phases=deploy | |
+++ get_phase_file_path deploy | |
+++ declare 'desc=return docker-options config file path for specified phase' | |
+++ local phase_file_prefix=DOCKER_OPTIONS_ | |
+++ local phase=deploy | |
+++ [[ -n handcount-backend ]] | |
+++ [[ -n deploy ]] | |
+++ fn-get-phase-file-path handcount-backend deploy | |
+++ declare 'desc=return docker-options config file path for specified phase' | |
+++ local APP=handcount-backend PHASE=deploy | |
+++ local PHASE_FILE=/home/dokku/handcount-backend/DOCKER_OPTIONS_DEPLOY | |
+++ echo /home/dokku/handcount-backend/DOCKER_OPTIONS_DEPLOY | |
++ get_restart_policies /home/dokku/handcount-backend/DOCKER_OPTIONS_DEPLOY | |
++ declare 'desc=strips docker options and prints restart policies' | |
++ local -r phase_file_path=/home/dokku/handcount-backend/DOCKER_OPTIONS_DEPLOY | |
++ get_raw_restart_policies /home/dokku/handcount-backend/DOCKER_OPTIONS_DEPLOY | |
++ sed -e 's/^--restart=//g' | |
++ declare 'desc=strips docker options and prints raw restart policies' | |
++ local -r phase_file_path=/home/dokku/handcount-backend/DOCKER_OPTIONS_DEPLOY | |
++ [[ -r /home/dokku/handcount-backend/DOCKER_OPTIONS_DEPLOY ]] | |
++ sed -e '/^--restart=/!d' | |
+ local RESTARTPOLICY=on-failure:10 | |
++ fn-ps-can-scale handcount-backend | |
++ declare APP=handcount-backend | |
+++ get_running_image_tag handcount-backend | |
+++ declare 'desc=retrieve current image tag for a given app. returns empty string if no deployed containers are found' | |
+++ local APP=handcount-backend | |
+++ verify_app_name handcount-backend | |
+++ declare 'desc=verify app name format and app existence' | |
+++ local APP=handcount-backend | |
+++ is_valid_app_name handcount-backend | |
+++ declare 'desc=verify app name format' | |
+++ local APP=handcount-backend | |
+++ [[ -z handcount-backend ]] | |
+++ [[ handcount-backend =~ ^[a-z].* ]] | |
+++ [[ ! handcount-backend =~ [A-Z] ]] | |
+++ [[ ! handcount-backend =~ [:] ]] | |
+++ return 0 | |
+++ [[ ! -d /home/dokku/handcount-backend ]] | |
+++ return 0 | |
+++ CIDS=($(get_app_container_ids "$APP")) | |
++++ get_app_container_ids handcount-backend | |
++++ declare 'desc=returns list of docker container ids for given app and optional container_type' | |
++++ local APP=handcount-backend | |
++++ local CONTAINER_TYPE= | |
++++ verify_app_name handcount-backend | |
++++ declare 'desc=verify app name format and app existence' | |
++++ local APP=handcount-backend | |
++++ is_valid_app_name handcount-backend | |
++++ declare 'desc=verify app name format' | |
++++ local APP=handcount-backend | |
++++ [[ -z handcount-backend ]] | |
++++ [[ handcount-backend =~ ^[a-z].* ]] | |
++++ [[ ! handcount-backend =~ [A-Z] ]] | |
++++ [[ ! handcount-backend =~ [:] ]] | |
++++ return 0 | |
++++ [[ ! -d /home/dokku/handcount-backend ]] | |
++++ return 0 | |
++++ [[ -f /home/dokku/handcount-backend/CONTAINER ]] | |
++++ [[ -n '' ]] | |
++++ local 'CONTAINER_PATTERN=/home/dokku/handcount-backend/CONTAINER.*' | |
++++ shopt -s nullglob | |
++++ local DOKKU_CID_FILE | |
++++ for DOKKU_CID_FILE in $CONTAINER_PATTERN | |
++++ local 'DOKKU_CIDS+= ' | |
++++ local DOKKU_CIDS+=9f3e35b24fbd7368e116cdde4799a116ac0de98d7986df4079bb0a9de94f4a26 | |
++++ local 'DOKKU_CIDS+= ' | |
++++ shopt -u nullglob | |
++++ echo ' 9f3e35b24fbd7368e116cdde4799a116ac0de98d7986df4079bb0a9de94f4a26 ' | |
+++ local CIDS | |
++++ docker inspect -f '{{ .Config.Image }}' 9f3e35b24fbd7368e116cdde4799a116ac0de98d7986df4079bb0a9de94f4a26 | |
++++ awk -F: '{ print $2 }' | |
++++ echo '' | |
+++ local RUNNING_IMAGE_TAG= | |
+++ echo '' | |
++ local IMAGE_TAG= | |
++ local DOKKU_SCALE_FILE=/home/dokku/handcount-backend/DOKKU_SCALE | |
++ local CAN_SCALE=false | |
++ [[ ! -e /home/dokku/handcount-backend/DOKKU_SCALE ]] | |
++ [[ ! -f /home/dokku/handcount-backend/DOKKU_SCALE.extracted ]] | |
++ CAN_SCALE=true | |
++ echo true | |
+ local CAN_SCALE=true | |
++ find /home/dokku/handcount-backend -maxdepth 1 -name 'CONTAINER.*' -printf '%f\n' | |
++ xargs | |
++ sort -t . -k 2 -n | |
+ local CONTAINER_FILES=CONTAINER.web.1 | |
+ local CONTAINER_FILE | |
++ config_get handcount-backend DOKKU_APP_RESTORE | |
++ declare 'desc=get value of given config var' | |
++ config_sub get handcount-backend DOKKU_APP_RESTORE | |
++ declare 'desc=executes a config subcommand' | |
++ local name=get | |
++ shift | |
++ /var/lib/dokku/plugins/available/config/subcommands/get config:get handcount-backend DOKKU_APP_RESTORE | |
+ local DOKKU_APP_RESTORE=0 | |
+ STATUSES=() | |
+ local STATUSES | |
+ [[ 0 != 0 ]] | |
+ RESTORE=false | |
+ local APP_CONTAINER_STATUS | |
+ for CONTAINER_FILE in $CONTAINER_FILES | |
+ CID=9f3e35b24fbd7368e116cdde4799a116ac0de98d7986df4079bb0a9de94f4a26 | |
++ docker inspect -f '{{.State.Status}}' 9f3e35b24fbd7368e116cdde4799a116ac0de98d7986df4079bb0a9de94f4a26 | |
++ true | |
+ APP_CONTAINER_STATUS= | |
+ [[ -z '' ]] | |
+ APP_CONTAINER_STATUS=missing | |
+ STATUSES+=("${CONTAINER_FILE#*.}:$APP_CONTAINER_STATUS#${CID:0:12}") | |
+ flag_map=("--processes: $PROCS" "--deployed: $DEPLOYED" "--running: $RUNNING" "--restore: $RESTORE" "--restart-policy: $RESTARTPOLICY" "--ps-can-scale: $CAN_SCALE") | |
+ local flag_map | |
+ [[ -z '' ]] | |
+ dokku_log_info2_quiet 'handcount-backend ps information' | |
+ declare 'desc=log info2 formatter (with quiet option)' | |
+ [[ -z '' ]] | |
+ echo '=====> handcount-backend ps information' | |
=====> handcount-backend ps information | |
+ for flag in "${flag_map[@]}" | |
++ echo 'processes: 1' | |
++ cut -f1 '-d ' | |
++ tr - ' ' | |
+ key=processes: | |
++ printf '%-30s %-25s' Processes: 1 | |
+ dokku_log_verbose 'Processes: 1 ' | |
+ declare 'desc=log verbose formatter' | |
+ echo ' Processes: 1 ' | |
Processes: 1 | |
+ for flag in "${flag_map[@]}" | |
++ echo 'deployed: true' | |
++ cut -f1 '-d ' | |
++ tr - ' ' | |
+ key=deployed: | |
++ printf '%-30s %-25s' Deployed: true | |
+ dokku_log_verbose 'Deployed: true ' | |
+ declare 'desc=log verbose formatter' | |
+ echo ' Deployed: true ' | |
Deployed: true | |
+ for flag in "${flag_map[@]}" | |
++ echo 'running: false' | |
++ cut -f1 '-d ' | |
++ tr - ' ' | |
+ key=running: | |
++ printf '%-30s %-25s' Running: false | |
+ dokku_log_verbose 'Running: false ' | |
+ declare 'desc=log verbose formatter' | |
+ echo ' Running: false ' | |
Running: false | |
+ for flag in "${flag_map[@]}" | |
++ echo 'restore: false' | |
++ cut -f1 '-d ' | |
++ tr - ' ' | |
+ key=restore: | |
++ printf '%-30s %-25s' Restore: false | |
+ dokku_log_verbose 'Restore: false ' | |
+ declare 'desc=log verbose formatter' | |
+ echo ' Restore: false ' | |
Restore: false | |
+ for flag in "${flag_map[@]}" | |
++ echo 'restart-policy: on-failure:10' | |
++ cut -f1 '-d ' | |
++ tr - ' ' | |
+ key='restart policy:' | |
++ printf '%-30s %-25s' 'Restart policy:' on-failure:10 | |
+ dokku_log_verbose 'Restart policy: on-failure:10 ' | |
+ declare 'desc=log verbose formatter' | |
+ echo ' Restart policy: on-failure:10 ' | |
Restart policy: on-failure:10 | |
+ for flag in "${flag_map[@]}" | |
++ echo 'ps-can-scale: true' | |
++ cut -f1 '-d ' | |
++ tr - ' ' | |
+ key='ps can scale:' | |
++ printf '%-30s %-25s' 'Ps can scale:' true | |
+ dokku_log_verbose 'Ps can scale: true ' | |
+ declare 'desc=log verbose formatter' | |
+ echo ' Ps can scale: true ' | |
Ps can scale: true | |
+ for STATUS in "${STATUSES[@]}" | |
+ name=web.1 | |
+ value=missing#9f3e35b24fbd | |
+ status=missing | |
+ cid=9f3e35b24fbd | |
++ printf '%-30s %-10s (CID: %s)' 'Status web.1:' missing 9f3e35b24fbd | |
+ dokku_log_verbose 'Status web.1: missing (CID: 9f3e35b24fbd)' | |
+ declare 'desc=log verbose formatter' | |
+ echo ' Status web.1: missing (CID: 9f3e35b24fbd)' | |
Status web.1: missing (CID: 9f3e35b24fbd) | |
++ source /var/lib/dokku/core-plugins/available/common/property-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 | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ set -eo pipefail | |
+ [[ -n 1 ]] | |
+ set -x | |
+ cmd-scheduler-docker-local-report-single handcount-backend | |
+ declare APP=handcount-backend INFO_FLAG= | |
+ [[ '' == \t\r\u\e ]] | |
+ verify_app_name handcount-backend | |
+ declare 'desc=verify app name format and app existence' | |
+ local APP=handcount-backend | |
+ is_valid_app_name handcount-backend | |
+ declare 'desc=verify app name format' | |
+ local APP=handcount-backend | |
+ [[ -z handcount-backend ]] | |
+ [[ handcount-backend =~ ^[a-z].* ]] | |
+ [[ ! handcount-backend =~ [A-Z] ]] | |
+ [[ ! handcount-backend =~ [:] ]] | |
+ return 0 | |
+ [[ ! -d /home/dokku/handcount-backend ]] | |
+ return 0 | |
+ flag_map=("--scheduler-docker-local-disable-chown: $(fn-plugin-property-get "scheduler-docker-local" "$APP" "disable-chown" "")") | |
++ fn-plugin-property-get scheduler-docker-local handcount-backend disable-chown '' | |
++ declare 'desc=returns the property store value for an app' | |
++ declare PLUGIN=scheduler-docker-local APP=handcount-backend KEY=disable-chown DEFAULT= | |
++ local CONFIG_VALUE | |
++ [[ -z scheduler-docker-local ]] | |
++ [[ -z handcount-backend ]] | |
++ [[ -z disable-chown ]] | |
+++ fn-plugin-property-read scheduler-docker-local handcount-backend disable-chown | |
+++ declare 'desc=read a key from the property store for an app' | |
+++ declare PLUGIN=scheduler-docker-local APP=handcount-backend KEY=disable-chown | |
+++ [[ -z scheduler-docker-local ]] | |
+++ [[ -z handcount-backend ]] | |
+++ [[ -z disable-chown ]] | |
+++ [[ ! -f /var/lib/dokku/config/scheduler-docker-local/handcount-backend/disable-chown ]] | |
+++ return 1 | |
+++ true | |
++ CONFIG_VALUE= | |
++ [[ -z '' ]] | |
++ CONFIG_VALUE= | |
++ echo '' | |
+ local flag_map | |
+ [[ -z '' ]] | |
+ dokku_log_info2_quiet 'handcount-backend scheduler-docker-local information' | |
+ declare 'desc=log info2 formatter (with quiet option)' | |
+ [[ -z '' ]] | |
+ echo '=====> handcount-backend scheduler-docker-local information' | |
=====> handcount-backend scheduler-docker-local information | |
+ for flag in "${flag_map[@]}" | |
++ echo 'scheduler-docker-local-disable-chown: ' | |
++ tr - ' ' | |
++ cut -f1 '-d ' | |
+ key='scheduler docker local disable chown:' | |
++ printf '%-30s %-25s' 'Scheduler docker local disable chown:' '' | |
+ dokku_log_verbose 'Scheduler docker local disable chown: ' | |
+ declare 'desc=log verbose formatter' | |
+ echo ' Scheduler docker local disable chown: ' | |
Scheduler docker local disable chown: | |
++ source /var/lib/dokku/plugins/available/docker-options/functions | |
+++ set -eo pipefail | |
+++ [[ -n 1 ]] | |
+++ set -x | |
+++ source /var/lib/dokku/core-plugins/available/common/functions | |
++++ set -eo pipefail | |
++++ [[ -n 1 ]] | |
++++ set -x | |
+++ AVAILABLE_PHASES=(build deploy run) | |
++ source /var/lib/dokku/plugins/available/storage/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/docker-options/functions | |
++++ set -eo pipefail | |
++++ [[ -n 1 ]] | |
++++ set -x | |
++++ source /var/lib/dokku/core-plugins/available/common/functions | |
+++++ set -eo pipefail | |
+++++ [[ -n 1 ]] | |
+++++ set -x | |
++++ AVAILABLE_PHASES=(build deploy run) | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ set -eo pipefail | |
+ [[ -n 1 ]] | |
+ set -x | |
+ cmd-storage-report-single handcount-backend | |
+ declare APP=handcount-backend INFO_FLAG= | |
+ [[ '' == \t\r\u\e ]] | |
+ verify_app_name handcount-backend | |
+ declare 'desc=verify app name format and app existence' | |
+ local APP=handcount-backend | |
+ is_valid_app_name handcount-backend | |
+ declare 'desc=verify app name format' | |
+ local APP=handcount-backend | |
+ [[ -z handcount-backend ]] | |
+ [[ handcount-backend =~ ^[a-z].* ]] | |
+ [[ ! handcount-backend =~ [A-Z] ]] | |
+ [[ ! handcount-backend =~ [:] ]] | |
+ return 0 | |
+ [[ ! -d /home/dokku/handcount-backend ]] | |
+ return 0 | |
+ flag_map=("--storage-build-mounts: $(fn-storage-bind-mounts "$APP" build)" "--storage-deploy-mounts: $(fn-storage-bind-mounts "$APP" deploy)" "--storage-run-mounts: $(fn-storage-bind-mounts "$APP" run)") | |
++ fn-storage-bind-mounts handcount-backend build | |
++ declare APP=handcount-backend PHASE=build | |
+++ fn-get-phase-file-path handcount-backend build | |
+++ declare 'desc=return docker-options config file path for specified phase' | |
+++ local APP=handcount-backend PHASE=build | |
+++ local PHASE_FILE=/home/dokku/handcount-backend/DOCKER_OPTIONS_BUILD | |
+++ echo /home/dokku/handcount-backend/DOCKER_OPTIONS_BUILD | |
++ local PHASE_FILE=/home/dokku/handcount-backend/DOCKER_OPTIONS_BUILD | |
++ [[ -r /home/dokku/handcount-backend/DOCKER_OPTIONS_BUILD ]] | |
++ fn-storage-bind-mounts handcount-backend deploy | |
++ declare APP=handcount-backend PHASE=deploy | |
+++ fn-get-phase-file-path handcount-backend deploy | |
+++ declare 'desc=return docker-options config file path for specified phase' | |
+++ local APP=handcount-backend PHASE=deploy | |
+++ local PHASE_FILE=/home/dokku/handcount-backend/DOCKER_OPTIONS_DEPLOY | |
+++ echo /home/dokku/handcount-backend/DOCKER_OPTIONS_DEPLOY | |
++ local PHASE_FILE=/home/dokku/handcount-backend/DOCKER_OPTIONS_DEPLOY | |
++ [[ -r /home/dokku/handcount-backend/DOCKER_OPTIONS_DEPLOY ]] | |
++ sed -e '/^-v/!d' /home/dokku/handcount-backend/DOCKER_OPTIONS_DEPLOY | |
++ tr '\n' ' ' | |
++ fn-storage-bind-mounts handcount-backend run | |
++ declare APP=handcount-backend PHASE=run | |
+++ fn-get-phase-file-path handcount-backend run | |
+++ declare 'desc=return docker-options config file path for specified phase' | |
+++ local APP=handcount-backend PHASE=run | |
+++ local PHASE_FILE=/home/dokku/handcount-backend/DOCKER_OPTIONS_RUN | |
+++ echo /home/dokku/handcount-backend/DOCKER_OPTIONS_RUN | |
++ local PHASE_FILE=/home/dokku/handcount-backend/DOCKER_OPTIONS_RUN | |
++ [[ -r /home/dokku/handcount-backend/DOCKER_OPTIONS_RUN ]] | |
++ sed -e '/^-v/!d' /home/dokku/handcount-backend/DOCKER_OPTIONS_RUN | |
++ tr '\n' ' ' | |
+ local flag_map | |
+ [[ -z '' ]] | |
+ dokku_log_info2_quiet 'handcount-backend storage information' | |
+ declare 'desc=log info2 formatter (with quiet option)' | |
+ [[ -z '' ]] | |
+ echo '=====> handcount-backend storage information' | |
=====> handcount-backend storage information | |
+ for flag in "${flag_map[@]}" | |
++ echo 'storage-build-mounts: ' | |
++ tr - ' ' | |
++ cut -f1 '-d ' | |
+ key='storage build mounts:' | |
++ printf '%-30s %-25s' 'Storage build mounts:' '' | |
+ dokku_log_verbose 'Storage build mounts: ' | |
+ declare 'desc=log verbose formatter' | |
+ echo ' Storage build mounts: ' | |
Storage build mounts: | |
+ for flag in "${flag_map[@]}" | |
++ echo 'storage-deploy-mounts: -v /var/lib/dokku/data/storage/handcount-backend:/app/storage ' | |
++ tr - ' ' | |
++ cut -f1 '-d ' | |
+ key='storage deploy mounts:' | |
++ printf '%-30s %-25s' 'Storage deploy mounts:' '-v /var/lib/dokku/data/storage/handcount-backend:/app/storage ' | |
+ dokku_log_verbose 'Storage deploy mounts: -v /var/lib/dokku/data/storage/handcount-backend:/app/storage ' | |
+ declare 'desc=log verbose formatter' | |
+ echo ' Storage deploy mounts: -v /var/lib/dokku/data/storage/handcount-backend:/app/storage ' | |
Storage deploy mounts: -v /var/lib/dokku/data/storage/handcount-backend:/app/storage | |
+ for flag in "${flag_map[@]}" | |
++ echo 'storage-run-mounts: -v /var/lib/dokku/data/storage/handcount-backend:/app/storage ' | |
++ tr - ' ' | |
++ cut -f1 '-d ' | |
+ key='storage run mounts:' | |
++ printf '%-30s %-25s' 'Storage run mounts:' '-v /var/lib/dokku/data/storage/handcount-backend:/app/storage ' | |
+ dokku_log_verbose 'Storage run mounts: -v /var/lib/dokku/data/storage/handcount-backend:/app/storage ' | |
+ declare 'desc=log verbose formatter' | |
+ echo ' Storage run mounts: -v /var/lib/dokku/data/storage/handcount-backend:/app/storage ' | |
Storage run mounts: -v /var/lib/dokku/data/storage/handcount-backend:/app/storage | |
+ implemented=1 | |
+ [[ 1 -eq 0 ]] | |
+ [[ 1 -eq 0 ]] | |
+ exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment