Created
April 24, 2020 21:19
-
-
Save Yardboy/2b764b50251e565ee1a7c7c91da8e6da to your computer and use it in GitHub Desktop.
dokku deploy log
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
git : + export DOKKU_HOST_ROOT=/home/dokku | |
At line:1 char:1 | |
+ git push dokku HEAD:master > deploy.log 2>&1 | |
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
+ CategoryInfo : NotSpecified: (+ export DOKKU_HOST_ROOT=/home/dokku:String) [], RemoteException | |
+ FullyQualifiedErrorId : NativeCommandError | |
+ DOKKU_HOST_ROOT=/home/dokku | |
+ export DOKKU_DISTRO | |
++ . /etc/os-release | |
++ echo ubuntu | |
+ DOKKU_DISTRO=ubuntu | |
+ 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=/v | |
ar/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_LOGS_DIR=/var/log/dokku | |
+ DOKKU_LOGS_DIR=/var/log/dokku | |
+ export DOKKU_EVENTS_LOGFILE=/var/log/dokku/events.log | |
+ DOKKU_EVENTS_LOGFILE=/var/log/dokku/events.log | |
+ export DOKKU_CONTAINER_LABEL=dokku | |
+ DOKKU_CONTAINER_LABEL=dokku | |
+ export DOKKU_GLOBAL_RUN_ARGS=--label=dokku | |
+ DOKKU_GLOBAL_RUN_ARGS=--label=dokku | |
+ source /var/lib/dokku/core-plugins/available/common/functions | |
++ se | |
t -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ parse_args git-receive-pack ''\''shards'\''' | |
+ 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 'shards' ]] | |
+ export -n SSH_ORIGINAL_COMMAND | |
+ [[ git-receive-pack =~ config-* ]] | |
+ [[ git-receive-pack =~ docker-options* ]] | |
+ set -f | |
+ /usr/bin/dokku git-receive-pack ''\''shards'\''' | |
+ export DOKKU_HOST_ROOT=/home/dokku | |
+ DOKKU_ | |
HOST_ROOT=/home/dokku | |
+ export DOKKU_DISTRO | |
++ . /etc/os-release | |
++ echo ubuntu | |
+ DOKKU_DISTRO=ubuntu | |
+ 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 PLUGI | |
N_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_LOGS_DIR=/var/log/dokku | |
+ DOKKU_LOGS_DIR= | |
/var/log/dokku | |
+ export DOKKU_EVENTS_LOGFILE=/var/log/dokku/events.log | |
+ DOKKU_EVENTS_LOGFILE=/var/log/dokku/events.log | |
+ export DOKKU_CONTAINER_LABEL=dokku | |
+ DOKKU_CONTAINER_LABEL=dokku | |
+ export DOKKU_GLOBAL_RUN_ARGS=--label=dokku | |
+ DOKKU_GLOBAL_RUN_ARGS=--label=dokku | |
+ source /var/lib/dokku/core-plugins/available/common/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ parse_args git-receive-pack ''\''shards'\''' | |
+ 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 ''\''shards'\''' | |
+ declare 'desc=calls user-auth plugin trigger' | |
+ export SSH_USER=dokku | |
+ SSH_USER=dokku | |
+ export SSH_NAME=admin1 | |
+ SSH_NAME=admin1 | |
+ plugn trigger user-auth dokku admin1 git-receive-pack ''\''shards'\''' | |
+ | |
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 ''\''shards'\''' | |
+ 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 ''\''shards'\''' | |
+ 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 ''\''shards'\''' | |
+ 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 ''\''shards'\''' | |
+ exit_code=10 | |
+ set -e | |
+ [[ 10 -eq 10 ]] | |
+ continue | |
+ for script in $PLUGIN_ENABLED_PATH/*/commands | |
+ s | |
et +e | |
+ /var/lib/dokku/plugins/enabled/buildpacks/commands git-receive-pack ''\''shards'\''' | |
+ 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 ''\''shards'\''' | |
+ 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 ''\''shards'\''' | |
+ 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 ''\''shards'\''' | |
+ 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 ''\''shards'\''' | |
+ exit_code=10 | |
+ set -e | |
+ [[ 10 -eq 10 ]] | |
+ continue | |
+ for script in $PLUGIN_ENABLED_P | |
ATH/*/commands | |
+ set +e | |
+ /var/lib/dokku/plugins/enabled/domains/commands git-receive-pack ''\''shards'\''' | |
+ 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 ''\''shards'\''' | |
+ 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 ''\''shards'\''' | |
+ 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/li | |
b/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 ''\''shards'\''' | |
+ declare 'desc=catch-all for any other git-* commands' | |
+ local 'cmd=git-*' | |
++ echo ''\''shards'\''' | |
++ sed 's/^\///g' | |
++ sed 's/\\'\''/'\''/g' | |
++ perl -pe 's/(?<!\\)'\''//g' | |
+ local APP=shards | |
+ local APP_PATH=/home/dokku/shards | |
+ is_valid_app_name shards | |
+ declare 'desc=verify app name format' | |
+ local APP=shards | |
+ [[ -z shards ]] | |
+ [[ shards =~ ^[a-z].* ]] | |
+ [[ ! shards =~ [A-Z] ]] | |
+ [[ ! shards =~ [:] ]] | |
+ return 0 | |
+ [[ git-receive-pack == \g\i\t\-\r\e\c\e\i\v\e\-\p\a\c\k ]] | |
+ [[ ! -d /home/dokku/shards/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/shards'\''' | |
+ git-shell -c 'git-receive-pack '\''/home/dokku/shards'\''' | |
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 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_LOGS_DIR=/var/log/dokku | |
remote: + DOKKU_LOGS_DIR=/var/log/dokku | |
remote: + export DOKKU_EVENTS_LOGFILE=/var/log/dokku/events.log | |
remote: + DOKKU_EVENTS_LOGFILE=/var/log/dokku/events.log | |
remote: + export DOKKU_CONTAINER_LABEL=dokku | |
remote: + DOKKU_CONTAINER_LABEL=dokku | |
remote: + export DOKKU_GLOBAL_RUN_ARGS=--label=dokku | |
remote: + DOKKU_GLOBAL_RUN_ARGS=--label=dokku | |
remote: + source /var/lib/dokku/core-plugins/available/common/functions | |
remote: ++ set -eo pipefail | |
remote: ++ [[ -n 1 ]] | |
remote: ++ set -x | |
remote: + parse_args git-hook shards | |
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 shards | |
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: + plugn trigger user-auth dokku admin1 git-hook shards | |
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 shards | |
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 shards | |
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 shards | |
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 shards | |
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 shards | |
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 shards | |
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 shards | |
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 shards | |
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 shards | |
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 shards | |
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 shards | |
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 shards | |
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 shards | |
remote: + declare 'desc=kick off receive-app trigger from git prereceive hook' | |
remote: + local cmd=git-hook | |
remote: + local APP=shards | |
remote: + local DOKKU_DEPLOY_BRANCH | |
remote: + is_valid_app_name shards | |
remote: + declare 'desc=verify app name format' | |
remote: + local APP=shards | |
remote: + [[ -z shards ]] | |
remote: + [[ shards =~ ^[a-z].* ]] | |
remote: + [[ ! shards =~ [A-Z] ]] | |
remote: + [[ ! shards =~ [:] ]] | |
remote: + return 0 | |
remote: ++ git_deploy_branch shards | |
remote: ++ declare 'desc=retrieve the deploy branch for a given application' | |
remote: ++ local cmd=git-hook | |
remote: ++ local APP=shards | |
remote: +++ fn-plugin-property-get git shards deploy-branch '' | |
remote: +++ declare 'desc=returns the property store value for an app' | |
remote: +++ declare PLUGIN=git APP=shards KEY=deploy-branch DEFAULT= | |
remote: +++ local CONFIG_VALUE | |
remote: +++ [[ -z git ]] | |
remote: +++ [[ -z shards ]] | |
remote: +++ [[ -z deploy-branch ]] | |
remote: ++++ fn-plugin-property-read git shards deploy-branch | |
remote: ++++ declare 'desc=read a key from the property store for an app' | |
remote: ++++ declare PLUGIN=git APP=shards KEY=deploy-branch | |
remote: ++++ [[ -z git ]] | |
remote: ++++ [[ -z shards ]] | |
remote: ++++ [[ -z deploy-branch ]] | |
remote: ++++ [[ ! -f /var/lib/dokku/config/git/shards/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 shards 4e918f5f49a85ffaf991fe87e1952a6e1473fe29 | |
remote: + declare 'desc=git receive-app plugin trigger' | |
remote: + declare APP=shards REV=4e918f5f49a85ffaf991fe87e1952a6e1473fe29 | |
remote: + [[ ! -d /home/dokku/shards/refs ]] | |
remote: + acquire_app_deploy_lock shards exclusive | |
remote: + declare 'desc=acquire advisory lock for use in git/tar deploys' | |
remote: + local APP=shards | |
remote: + verify_app_name shards | |
remote: + declare 'desc=verify app name format and app existence' | |
remote: + local APP=shards | |
remote: + is_valid_app_name shards | |
remote: + declare 'desc=verify app name format' | |
remote: + local APP=shards | |
remote: + [[ -z shards ]] | |
remote: + [[ shards =~ ^[a-z].* ]] | |
remote: + [[ ! shards =~ [A-Z] ]] | |
remote: + [[ ! shards =~ [:] ]] | |
remote: + return 0 | |
remote: + [[ ! -d /home/dokku/shards ]] | |
remote: + return 0 | |
remote: + local LOCK_TYPE=exclusive | |
remote: + local APP_DEPLOY_LOCK_FILE=/home/dokku/shards/.deploy.lock | |
remote: + local 'LOCK_WAITING_MSG=shards currently has a deploy lock in place. Waiting...' | |
remote: + local 'LOCK_FAILED_MSG=shards currently has a deploy lock in place. Exiting...' | |
remote: + acquire_advisory_lock /home/dokku/shards/.deploy.lock exclusive 'shards currently has a deploy lock in place. Waiting...' 'shards currently has | |
a deploy lock in place. Exiting...' | |
remote: + declare 'desc=acquire advisory lock' | |
remote: + local LOCK_FILE=/home/dokku/shards/.deploy.lock LOCK_TYPE=exclusive 'LOCK_WAITING_MSG=shards currently has a deploy lock in place. Waiting...' | |
'LOCK_FAILED_MSG=shards currently has a deploy lock in place. Exiting...' | |
remote: + local LOCK_FD=200 | |
remote: + local SHOW_MSG=true | |
remote: + eval 'exec 200>/home/dokku/shards/.deploy.lock' | |
remote: ++ exec | |
remote: + [[ exclusive == \w\a\i\t\i\n\g ]] | |
remote: + flock -n 200 | |
remote: + git_build shards 4e918f5f49a85ffaf991fe87e1952a6e1473fe29 | |
remote: + declare 'desc=setup and call git_build_app_repo' | |
remote: + local APP=shards REV=4e918f5f49a85ffaf991fe87e1952a6e1473fe29 | |
remote: + local DOKKU_DEPLOY_BRANCH ENV_VAR_NAME REF | |
remote: + [[ 2 -ge 2 ]] | |
remote: ++ fn-plugin-property-get git shards rev-env-var | |
remote: ++ declare 'desc=returns the property store value for an app' | |
remote: ++ declare PLUGIN=git APP=shards KEY=rev-env-var DEFAULT= | |
remote: ++ local CONFIG_VALUE | |
remote: ++ [[ -z git ]] | |
remote: ++ [[ -z shards ]] | |
remote: ++ [[ -z rev-env-var ]] | |
remote: +++ fn-plugin-property-read git shards rev-env-var | |
remote: +++ declare 'desc=read a key from the property store for an app' | |
remote: +++ declare PLUGIN=git APP=shards KEY=rev-env-var | |
remote: +++ [[ -z git ]] | |
remote: +++ [[ -z shards ]] | |
remote: +++ [[ -z rev-env-var ]] | |
remote: +++ [[ ! -f /var/lib/dokku/config/git/shards/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 shards rev-env-var | |
remote: + declare 'desc=returns whether the property store has a value for an app' | |
remote: + declare PLUGIN=git APP=shards KEY=rev-env-var DEFAULT= | |
remote: + local CONFIG_VALUE | |
remote: + [[ -z git ]] | |
remote: + [[ -z shards ]] | |
remote: + [[ -z rev-env-var ]] | |
remote: + [[ ! -f /var/lib/dokku/config/git/shards/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 shards GIT_REV=4e918f5f49a85ffaf991fe87e1952a6e1473fe29 | |
remote: + declare 'desc=set value of given config var' | |
remote: + config_sub set --no-restart shards GIT_REV=4e918f5f49a85ffaf991fe87e1952a6e1473fe29 | |
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 shards GIT_REV=4e918f5f49a85ffaf991fe87e1952a6e1473fe29 | |
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=4e918f5f49a85ffaf991fe87e1952a6e1473fe29 | |
remote: + git_build_app_repo shards 4e918f5f49a85ffaf991fe87e1952a6e1473fe29 | |
remote: + declare 'desc=builds local git app repo for app' | |
remote: + declare APP=shards REV=4e918f5f49a85ffaf991fe87e1952a6e1473fe29 | |
remote: + local DOKKU_GLOBAL_DISABLE_AUTOCREATE | |
remote: + verify_app_name shards | |
remote: + declare 'desc=verify app name format and app existence' | |
remote: + local APP=shards | |
remote: + is_valid_app_name shards | |
remote: + declare 'desc=verify app name format' | |
remote: + local APP=shards | |
remote: + [[ -z shards ]] | |
remote: + [[ shards =~ ^[a-z].* ]] | |
remote: + [[ ! shards =~ [A-Z] ]] | |
remote: + [[ ! shards =~ [:] ]] | |
remote: + return 0 | |
remote: + [[ ! -d /home/dokku/shards ]] | |
remote: + return 0 | |
remote: ++ mktemp -d /tmp/dokku_git.XXXX | |
remote: + local GIT_BUILD_APP_REPO_TMP_WORK_DIR=/tmp/dokku_git.Wcsi | |
remote: + trap 'rm -rf "$GIT_BUILD_APP_REPO_TMP_WORK_DIR" >/dev/null' RETURN INT TERM EXIT | |
remote: + local TMP_TAG=dokku/4e918f5f49a85ffaf991fe87e1952a6e1473fe29 | |
remote: + chmod 755 /tmp/dokku_git.Wcsi | |
remote: + unset GIT_DIR GIT_WORK_TREE | |
remote: + apps_exists shards | |
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/shards | |
remote: + suppress_output env -u GIT_QUARANTINE_PATH git worktree add /tmp/dokku_git.Wcsi 4e918f5f49a85ffaf991fe87e1952a6e1473fe29 | |
remote: + declare 'desc=suppress all output from a given command unless there is an error' | |
remote: + local TMP_COMMAND_OUTPUT | |
remote: ++ mktemp /tmp/suppress_output.XXXX | |
remote: + TMP_COMMAND_OUTPUT=/tmp/suppress_output.V6kM | |
remote: + trap 'rm -rf "$TMP_COMMAND_OUTPUT" >/dev/null' RETURN INT TERM EXIT | |
remote: + env -u GIT_QUARANTINE_PATH git worktree add /tmp/dokku_git.Wcsi 4e918f5f49a85ffaf991fe87e1952a6e1473fe29 | |
remote: + return 0 | |
remote: ++ rm -rf /tmp/suppress_output.V6kM | |
remote: + popd | |
remote: + pushd /tmp/dokku_git.Wcsi | |
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/suppress_output.XXXX | |
remote: + TMP_COMMAND_OUTPUT=/tmp/suppress_output.Jj07 | |
remote: + trap 'rm -rf "$TMP_COMMAND_OUTPUT" >/dev/null' RETURN INT TERM EXIT | |
remote: + env -u GIT_QUARANTINE_PATH git submodule update --init --recursive | |
remote: + return 0 | |
remote: ++ rm -rf /tmp/suppress_output.Jj07 | |
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: ++ 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/shards | |
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 shards DOKKU_DISABLE_ANSI_PREFIX_REMOVAL | |
remote: ++ declare 'desc=get value of given config var' | |
remote: ++ config_sub get shards 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 shards DOKKU_DISABLE_ANSI_PREFIX_REMOVAL | |
remote: ++ true | |
remote: + DOKKU_APP_DISABLE_ANSI_PREFIX_REMOVAL= | |
remote: ++ config_get --global DOKKU_DISABLE_ANSI_PREFIX_REMOVAL | |
remote: ++ declare 'desc=get value of given config var' | |
remote: ++ config_sub get --global DOKKU_DISABLE_ANSI_PREFIX_REMOVAL | |
remote: ++ declare 'desc=executes a config subcommand' | |
remote: ++ local name=get | |
remote: ++ shift | |
remote: ++ /var/lib/dokku/plugins/available/config/subcommands/get config:get --global DOKKU_DISABLE_ANSI_PREFIX_REMOVAL | |
remote: ++ true | |
remote: + DOKKU_GLOBAL_DISABLE_ANSI_PREFIX_REMOVAL= | |
remote: + DOKKU_DISABLE_ANSI_PREFIX_REMOVAL= | |
remote: + [[ '' == \t\r\u\e ]] | |
remote: + sed -u 's/^/[1G/' | |
remote: + git_trigger_build shards /tmp/dokku_git.Wcsi 4e918f5f49a85ffaf991fe87e1952a6e1473fe29 | |
remote: + declare 'desc=triggers the actual build process for a given app within a directory at a particular revision' | |
remote: + declare APP=shards TMP_WORK_DIR=/tmp/dokku_git.Wcsi REV=4e918f5f49a85ffaf991fe87e1952a6e1473fe29 | |
remote: + plugn trigger post-extract shards /tmp/dokku_git.Wcsi 4e918f5f49a85ffaf991fe87e1952a6e1473fe29 | |
remote: + source /var/lib/dokku/core-plugins/available/common/functions | |
remote: ++ set -eo pipefail | |
remote: ++ [[ -n 1 ]] | |
remote: ++ set -x | |
remote: + [[ ! -n '' ]] | |
remote: + [[ -f Dockerfile ]] | |
remote: ++ [[ -f .env ]] | |
remote: ++ echo 1 | |
remote: + [[ 1 != \0 ]] | |
remote: + [[ ! -f .buildpacks ]] | |
remote: ++ config_get shards BUILDPACK_URL | |
remote: ++ declare 'desc=get value of given config var' | |
remote: ++ config_sub get shards BUILDPACK_URL | |
remote: ++ declare 'desc=executes a config subcommand' | |
remote: ++ local name=get | |
remote: ++ shift | |
remote: ++ /var/lib/dokku/plugins/available/config/subcommands/get config:get shards BUILDPACK_URL | |
remote: ++ true | |
remote: + [[ -z '' ]] | |
remote: + plugn trigger pre-receive-app shards dockerfile /tmp/dokku_git.Wcsi 4e918f5f49a85ffaf991fe87e1952a6e1473fe29 | |
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 shards dockerfile /tmp/dokku_git.Wcsi | |
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=shards | |
remote: ++ get_app_image_name shards | |
remote: ++ declare 'desc=return image identifier for a given app, tag tuple. validate if tag is presented' | |
remote: ++ local APP=shards | |
remote: ++ local IMAGE_TAG= | |
remote: ++ IMAGE_REPO= | |
remote: ++ is_valid_app_name shards | |
remote: ++ declare 'desc=verify app name format' | |
remote: ++ local APP=shards | |
remote: ++ [[ -z shards ]] | |
remote: ++ [[ shards =~ ^[a-z].* ]] | |
remote: ++ [[ ! shards =~ [A-Z] ]] | |
remote: ++ [[ ! shards =~ [:] ]] | |
remote: ++ return 0 | |
remote: ++ [[ -z '' ]] | |
remote: +++ get_app_image_repo shards | |
remote: +++ declare 'desc=central definition of image repo pattern' | |
remote: +++ local APP=shards | |
remote: +++ local IMAGE_REPO=dokku/shards | |
remote: +++ is_valid_app_name shards | |
remote: +++ declare 'desc=verify app name format' | |
remote: +++ local APP=shards | |
remote: +++ [[ -z shards ]] | |
remote: +++ [[ shards =~ ^[a-z].* ]] | |
remote: +++ [[ ! shards =~ [A-Z] ]] | |
remote: +++ [[ ! shards =~ [:] ]] | |
remote: +++ return 0 | |
remote: +++ echo dokku/shards | |
remote: ++ IMAGE_REPO=dokku/shards | |
remote: ++ [[ -n '' ]] | |
remote: ++ local IMAGE=dokku/shards:latest | |
remote: ++ echo dokku/shards:latest | |
remote: + local IMAGE=dokku/shards:latest | |
remote: + local IMAGE_SOURCE_TYPE=dockerfile | |
remote: + local TMP_WORK_DIR=/tmp/dokku_git.Wcsi | |
remote: ++ config_get shards DOKKU_SKIP_CLEANUP | |
remote: ++ declare 'desc=get value of given config var' | |
remote: ++ config_sub get shards 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 shards DOKKU_SKIP_CLEANUP | |
remote: ++ true | |
remote: + local DOKKU_SKIP_CLEANUP= | |
remote: + docker_cleanup shards | |
remote: + declare 'desc=cleans up all exited/dead containers and removes all dangling images' | |
remote: + declare APP=shards 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 shards ]] | |
remote: ++ config_get shards DOKKU_SKIP_CLEANUP | |
remote: ++ declare 'desc=get value of given config var' | |
remote: ++ config_sub get shards 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 shards 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...' | |
remote: [1G-----> Cleaning up... | |
remote: ++ get_app_scheduler shards | |
remote: ++ declare 'desc=fetch the scheduler for a given application' | |
remote: ++ declare APP=shards | |
remote: ++ local DOKKU_APP_SCHEDULER DOKKU_GLOBAL_SCHEDULER DOKKU_SCHEDULER | |
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 shards ]] | |
remote: +++ config_get shards DOKKU_SCHEDULER | |
remote: +++ declare 'desc=get value of given config var' | |
remote: +++ config_sub get shards 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 shards 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: + plugn trigger scheduler-docker-cleanup docker-local shards '' | |
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 shards '' | |
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=shards FORCE_CLEANUP= | |
remote: + [[ docker-local != \d\o\c\k\e\r\-\l\o\c\a\l ]] | |
remote: ++ docker ps -a -f status=exited -f label=dokku -q | |
remote: + docker rm a720ab89f328 | |
remote: ++ docker ps -a -f status=dead -f label=dokku -q | |
remote: + docker rm | |
remote: + true | |
remote: ++ docker images -f dangling=true -q | |
remote: ++ docker ps -a -f status=exited -f label=dokku -q | |
remote: + docker rmi 6f970091254b 43caf7ab2852 f0e40064a917 07d0e3d537cb 5d135cfa2a20 e0b348910956 8b508ef89329 1528af47d091 d12422f571b4 3985fa84c978 | |
37a78d94242d 81158bfb6f78 c3c6c1511ed4 | |
remote: + docker rm | |
remote: + true | |
remote: ++ docker ps -a -f status=dead -f label=dokku -q | |
remote: + docker rm | |
remote: + true | |
remote: + dokku_log_info1 'Building shards from dockerfile...' | |
remote: + declare 'desc=log info1 formatter' | |
remote: + echo '-----> Building shards from dockerfile...' | |
remote: + DOKKU_QUIET_OUTPUT=1 | |
remote: + config_set --no-restart shards DOKKU_APP_TYPE=dockerfile | |
remote: + declare 'desc=set value of given config var' | |
remote: + config_sub set --no-restart shards DOKKU_APP_TYPE=dockerfile | |
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 shards DOKKU_APP_TYPE=dockerfile | |
remote: ++ docker images -f dangling=true -q | |
remote: [1G-----> Building shards from dockerfile... | |
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 shards dockerfile /tmp/dokku_git.Wcsi | |
remote: + declare 'desc=build phase' | |
remote: + source /var/lib/dokku/plugins/available/config/functions | |
remote: ++ set -eo pipefail | |
remote: ++ [[ -n 1 ]] | |
remote: ++ set -x | |
remote: ++ source /var/lib/dokku/core-plugins/available/common/functions | |
remote: +++ set -eo pipefail | |
remote: +++ [[ -n 1 ]] | |
remote: +++ set -x | |
remote: + local APP=shards | |
remote: + local IMAGE_SOURCE_TYPE=dockerfile | |
remote: + local TMP_WORK_DIR=/tmp/dokku_git.Wcsi | |
remote: ++ get_app_image_name shards | |
remote: ++ declare 'desc=return image identifier for a given app, tag tuple. validate if tag is presented' | |
remote: ++ local APP=shards | |
remote: ++ local IMAGE_TAG= | |
remote: ++ IMAGE_REPO= | |
remote: ++ is_valid_app_name shards | |
remote: ++ declare 'desc=verify app name format' | |
remote: ++ local APP=shards | |
remote: ++ [[ -z shards ]] | |
remote: ++ [[ shards =~ ^[a-z].* ]] | |
remote: ++ [[ ! shards =~ [A-Z] ]] | |
remote: ++ [[ ! shards =~ [:] ]] | |
remote: ++ return 0 | |
remote: ++ [[ -z '' ]] | |
remote: +++ get_app_image_repo shards | |
remote: +++ declare 'desc=central definition of image repo pattern' | |
remote: +++ local APP=shards | |
remote: +++ local IMAGE_REPO=dokku/shards | |
remote: +++ is_valid_app_name shards | |
remote: +++ declare 'desc=verify app name format' | |
remote: +++ local APP=shards | |
remote: +++ [[ -z shards ]] | |
remote: +++ [[ shards =~ ^[a-z].* ]] | |
remote: +++ [[ ! shards =~ [A-Z] ]] | |
remote: +++ [[ ! shards =~ [:] ]] | |
remote: +++ return 0 | |
remote: +++ echo dokku/shards | |
remote: ++ IMAGE_REPO=dokku/shards | |
remote: ++ [[ -n '' ]] | |
remote: ++ local IMAGE=dokku/shards:latest | |
remote: ++ echo dokku/shards:latest | |
remote: + local IMAGE=dokku/shards:latest | |
remote: + local cid | |
remote: + verify_app_name shards | |
remote: + declare 'desc=verify app name format and app existence' | |
remote: + local APP=shards | |
remote: + is_valid_app_name shards | |
remote: + declare 'desc=verify app name format' | |
remote: + local APP=shards | |
remote: + [[ -z shards ]] | |
remote: + [[ shards =~ ^[a-z].* ]] | |
remote: + [[ ! shards =~ [A-Z] ]] | |
remote: + [[ ! shards =~ [:] ]] | |
remote: + return 0 | |
remote: + [[ ! -d /home/dokku/shards ]] | |
remote: + return 0 | |
remote: + local DOKKU_APP_CACHE_DIR=/home/dokku/shards/cache | |
remote: + local DOKKU_APP_HOST_CACHE_DIR=/home/dokku/shards/cache | |
remote: ++ config_export app shards | |
remote: ++ declare 'desc=returns export command for config variable of specified type (app/global)' | |
remote: ++ local CONFIG_TYPE=app | |
remote: ++ shift | |
remote: ++ local APP=shards | |
remote: ++ [[ app == \g\l\o\b\a\l ]] | |
remote: ++ shift | |
remote: ++ config_sub export shards | |
remote: ++ declare 'desc=executes a config subcommand' | |
remote: ++ local name=export | |
remote: ++ shift | |
remote: ++ /var/lib/dokku/plugins/available/config/subcommands/export config:export shards | |
remote: ++ return 0 | |
remote: + eval 'export DATABASE_URL='\''mysql2://mysql:54de2f4cf18ab5fd@dokku-mysql-shardsdb:3306/shardsdb'\'' | |
remote: export DOKKU_APP_TYPE='\''dockerfile'\'' | |
remote: export DOKKU_DOCKERFILE_PORTS='\''3000'\'' | |
remote: export DOKKU_PROXY_PORT='\''80'\'' | |
remote: export DOKKU_PROXY_PORT_MAP='\''http:3000:3000'\'' | |
remote: export GIT_REV='\''4e918f5f49a85ffaf991fe87e1952a6e1473fe29'\'' | |
remote: export RACK_ENV='\''production'\'' | |
remote: export RAILS_ENV='\''production'\'' | |
remote: export RAILS_SERVE_STATIC_FILES='\''true'\'' | |
remote: export REDIS_URL='\''redis://shardsrd:80738cf6c4eb5851551ed3f76ce287aa3821b15f490287f5e544841452e2acee@dokku-redis-shardsrd:6379'\'' | |
remote: export | |
SECRET_KEY_BASE='\''0448b7a2219f8630d06e76c969ac50542b92c84762dd966f91293145cb52bb599e564e372d2a060db618d1ac00ac41f4fb518575c37d0a8dca5c318c031b5be2'\''' | |
remote: ++ export DATABASE_URL=mysql2://mysql:54de2f4cf18ab5fd@dokku-mysql-shardsdb:3306/shardsdb | |
remote: ++ DATABASE_URL=mysql2://mysql:54de2f4cf18ab5fd@dokku-mysql-shardsdb:3306/shardsdb | |
remote: ++ export DOKKU_APP_TYPE=dockerfile | |
remote: ++ DOKKU_APP_TYPE=dockerfile | |
remote: ++ export DOKKU_DOCKERFILE_PORTS=3000 | |
remote: ++ DOKKU_DOCKERFILE_PORTS=3000 | |
remote: ++ export DOKKU_PROXY_PORT=80 | |
remote: ++ DOKKU_PROXY_PORT=80 | |
remote: ++ export DOKKU_PROXY_PORT_MAP=http:3000:3000 | |
remote: ++ DOKKU_PROXY_PORT_MAP=http:3000:3000 | |
remote: ++ export GIT_REV=4e918f5f49a85ffaf991fe87e1952a6e1473fe29 | |
remote: ++ GIT_REV=4e918f5f49a85ffaf991fe87e1952a6e1473fe29 | |
remote: ++ export RACK_ENV=production | |
remote: ++ RACK_ENV=production | |
remote: ++ export RAILS_ENV=production | |
remote: ++ RAILS_ENV=production | |
remote: ++ export RAILS_SERVE_STATIC_FILES=true | |
remote: ++ RAILS_SERVE_STATIC_FILES=true | |
remote: ++ export REDIS_URL=redis://shardsrd:80738cf6c4eb5851551ed3f76ce287aa3821b15f490287f5e544841452e2acee@dokku-redis-shardsrd:6379 | |
remote: ++ REDIS_URL=redis://shardsrd:80738cf6c4eb5851551ed3f76ce287aa3821b15f490287f5e544841452e2acee@dokku-redis-shardsrd:6379 | |
remote: ++ export | |
SECRET_KEY_BASE=0448b7a2219f8630d06e76c969ac50542b92c84762dd966f91293145cb52bb599e564e372d2a060db618d1ac00ac41f4fb518575c37d0a8dca5c318c031b5be2 | |
remote: ++ | |
SECRET_KEY_BASE=0448b7a2219f8630d06e76c969ac50542b92c84762dd966f91293145cb52bb599e564e372d2a060db618d1ac00ac41f4fb518575c37d0a8dca5c318c031b5be2 | |
remote: + pushd /tmp/dokku_git.Wcsi | |
remote: + case "$IMAGE_SOURCE_TYPE" in | |
remote: ++ get_dockerfile_exposed_ports Dockerfile | |
remote: ++ declare 'desc=return all exposed ports from passed file path' | |
remote: +++ xargs | |
remote: +++ awk '{ print $2 }' | |
remote: +++ egrep '^EXPOSE ' Dockerfile | |
remote: ++ local DOCKERFILE_PORTS=3000 | |
remote: ++ echo 3000 | |
remote: + local DOCKERFILE_PORTS=3000 | |
remote: + [[ -n 3000 ]] | |
remote: + config_set --no-restart shards DOKKU_DOCKERFILE_PORTS=3000 | |
remote: + declare 'desc=set value of given config var' | |
remote: + config_sub set --no-restart shards DOKKU_DOCKERFILE_PORTS=3000 | |
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 shards DOKKU_DOCKERFILE_PORTS=3000 | |
remote: [1G-----> Setting config vars | |
remote: [1G DOKKU_DOCKERFILE_PORTS: 3000 | |
remote: + source /var/lib/dokku/core-plugins/available/common/functions | |
remote: ++ set -eo pipefail | |
remote: ++ [[ -n 1 ]] | |
remote: ++ set -x | |
remote: + [[ ! -n '' ]] | |
remote: ++ extract_directive_from_dockerfile Dockerfile ENTRYPOINT | |
remote: ++ declare 'desc=return requested directive from passed file path' | |
remote: ++ local FILE_PATH=Dockerfile | |
remote: ++ local SEARCH_STRING=ENTRYPOINT | |
remote: +++ tail -n1 | |
remote: +++ egrep '^ENTRYPOINT ' Dockerfile | |
remote: ++ local FOUND_LINE= | |
remote: ++ echo '' | |
remote: + local DOCKERFILE_ENTRYPOINT= | |
remote: + [[ -n '' ]] | |
remote: ++ extract_directive_from_dockerfile Dockerfile CMD | |
remote: ++ declare 'desc=return requested directive from passed file path' | |
remote: ++ local FILE_PATH=Dockerfile | |
remote: ++ local SEARCH_STRING=CMD | |
remote: +++ egrep '^CMD ' Dockerfile | |
remote: +++ tail -n1 | |
remote: ++ local FOUND_LINE= | |
remote: ++ echo '' | |
remote: + local DOCKERFILE_CMD= | |
remote: + [[ -n '' ]] | |
remote: + plugn trigger pre-build-dockerfile shards | |
remote: + source /var/lib/dokku/core-plugins/available/common/functions | |
remote: ++ set -eo pipefail | |
remote: ++ [[ -n 1 ]] | |
remote: ++ set -x | |
remote: + [[ ! -n '' ]] | |
remote: + [[ '' == \f\a\l\s\e ]] | |
remote: ++ plugn trigger docker-args-build shards dockerfile | |
remote: ++ : | |
remote: + source /var/lib/dokku/plugins/available/config/functions | |
remote: ++ set -eo pipefail | |
remote: ++ [[ -n 1 ]] | |
remote: ++ set -x | |
remote: ++ source /var/lib/dokku/core-plugins/available/common/functions | |
remote: +++ set -eo pipefail | |
remote: +++ [[ -n 1 ]] | |
remote: +++ set -x | |
remote: + app_user_docker_args shards dockerfile | |
remote: + local APP=shards | |
remote: + local STDIN | |
remote: + local DOKKU_APP_TYPE | |
remote: + local DOKKU_APP_USER | |
remote: ++ cat | |
remote: + STDIN= | |
remote: ++ config_get shards DOKKU_APP_TYPE | |
remote: ++ declare 'desc=get value of given config var' | |
remote: ++ config_sub get shards 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 shards DOKKU_APP_TYPE | |
remote: + DOKKU_APP_TYPE=dockerfile | |
remote: ++ config_get shards DOKKU_APP_USER | |
remote: ++ declare 'desc=get value of given config var' | |
remote: ++ config_sub get shards 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 shards DOKKU_APP_USER | |
remote: ++ true | |
remote: + DOKKU_APP_USER= | |
remote: + DOKKU_APP_USER=herokuishuser | |
remote: + [[ dockerfile == \h\e\r\o\k\u\i\s\h ]] | |
remote: + local docker_args= | |
remote: + echo -n '' | |
remote: + source /var/lib/dokku/core-plugins/available/common/functions | |
remote: ++ set -eo pipefail | |
remote: ++ [[ -n 1 ]] | |
remote: ++ set -x | |
remote: + [[ ! -n '' ]] | |
remote: + docker_args shards dockerfile | |
remote: + declare 'desc=docker args plugin trigger' | |
remote: + local trigger=/var/lib/dokku/plugins/enabled/docker-options/docker-args-build | |
remote: ++ cat | |
remote: + local STDIN= | |
remote: + local APP=shards | |
remote: + local IMAGE_SOURCE_TYPE=dockerfile | |
remote: + case "$0" in | |
remote: + local PHASE=BUILD | |
remote: + local FILE_PREFIX=DOCKER_OPTIONS_ | |
remote: + local PHASE_FILE_PATH=/home/dokku/shards/DOCKER_OPTIONS_BUILD | |
remote: + local output= | |
remote: + [[ -f /home/dokku/shards/DOCKER_OPTIONS_BUILD ]] | |
remote: + local DONE=false | |
remote: + false | |
remote: + local line | |
remote: + read -r line | |
remote: + [[ -z --link dokku.mysql.shardsdb:dokku-mysql-shardsdb ]] | |
remote: + case "$line" in | |
remote: + case "$IMAGE_SOURCE_TYPE" in | |
remote: + case "$line" in | |
remote: + continue | |
remote: + false | |
remote: + local line | |
remote: + read -r line | |
remote: + [[ -z --link dokku.redis.shardsrd:dokku-redis-shardsrd ]] | |
remote: + case "$line" in | |
remote: + case "$IMAGE_SOURCE_TYPE" in | |
remote: + case "$line" in | |
remote: + continue | |
remote: + false | |
remote: + local line | |
remote: + read -r line | |
remote: + local DONE=true | |
remote: + [[ -z '' ]] | |
remote: + continue | |
remote: + true | |
remote: + echo -n '' | |
remote: + local DOCKER_ARGS= | |
remote: + local IMAGE_SOURCE_TYPE=dockerfile | |
remote: ++ : | |
remote: ++ plugn trigger docker-args-process-run shards '' dockerfile '' | |
remote: + DOCKER_ARGS+= | |
remote: ++ sed -e 's/--volume=[[:graph:]]\+[[:blank:]]\?//g' -e 's/-v[[:blank:]]\?[[:graph:]]\+[[:blank:]]\?//g' | |
remote: + local DOCKER_ARGS= | |
remote: + declare -a ARG_ARRAY | |
remote: + eval 'ARG_ARRAY=()' | |
remote: ++ ARG_ARRAY=() | |
remote: + docker build -t dokku/shards:latest . | |
remote: [1GSending build context to Docker daemon 756.2kB | |
remote: remote: | |
remote: [1GStep 1/23 : FROM ruby:2.6.5 | |
remote: [1G ---> ad10dfbc638b | |
remote: [1GStep 2/23 : LABEL app-name="shards" | |
remote: [1G ---> Using cache | |
remote: [1G ---> 916d3499f883 | |
remote: [1GStep 3/23 : RUN apt-get update -qq && apt-get install -y nodejs curl vim | |
remote: [1G ---> Using cache | |
remote: [1G ---> 5ce044145d7e | |
remote: [1GStep 4/23 : ENV APP_HOME /app | |
remote: [1G ---> Using cache | |
remote: [1G ---> ba5ac4f10102 | |
remote: [1GStep 5/23 : RUN mkdir $APP_HOME | |
remote: [1G ---> Using cache | |
remote: [1G ---> c66dfe9d84ad | |
remote: [1GStep 6/23 : WORKDIR $APP_HOME | |
remote: + docker rmi 43caf7ab2852 f0e40064a917 07d0e3d537cb 5d135cfa2a20 e0b348910956 8b508ef89329 1528af47d091 d12422f571b4 3985fa84c978 37a78d94242d | |
81158bfb6f78 c3c6c1511ed4 | |
remote: [1G ---> Using cache | |
remote: [1G ---> 6fa9771d59c5 | |
remote: [1GStep 7/23 : ENV YARN_VERSION=1.22.4 | |
remote: [1G ---> Using cache | |
remote: [1G ---> 1b061e18ac23 | |
remote: [1GStep 8/23 : RUN curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version $YARN_VERSION | |
remote: [1G ---> Using cache | |
remote: [1G ---> 33f24e68ec12 | |
remote: [1GStep 9/23 : ENV PATH="/root/.yarn/bin:${PATH}" | |
remote: [1G ---> Using cache | |
remote: [1G ---> 97d427942f31 | |
remote: [1GStep 10/23 : RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb | |
remote: [1G ---> Using cache | |
remote: [1G ---> 20583cc2d18b | |
remote: [1GStep 11/23 : RUN dpkg -i google-chrome-stable_current_amd64.deb; apt-get -fy install | |
remote: [1G ---> Using cache | |
remote: [1G ---> ab2203d8eee6 | |
remote: [1GStep 12/23 : RUN rm google-chrome-stable_current_amd64.deb | |
remote: [1G ---> Using cache | |
remote: [1G ---> 38e42904daff | |
remote: [1GStep 13/23 : ENV BUNDLE_PATH /bundle | |
remote: [1G ---> Using cache | |
remote: [1G ---> 4811c57da7f6 | |
remote: [1GStep 14/23 : ADD Gemfile* $APP_HOME/ | |
remote: [1G ---> Using cache | |
remote: [1G ---> 7f46cafc9cd6 | |
remote: [1GStep 15/23 : RUN gem install bundler:1.17.3 | |
remote: [1G ---> Using cache | |
remote: [1G ---> 7e94e0018730 | |
remote: [1GStep 16/23 : RUN bundle config --global silence_root_warning 1 | |
remote: [1G ---> Using cache | |
remote: [1G ---> abe4dd715163 | |
remote: [1GStep 17/23 : RUN bundle install | |
remote: [1G ---> Using cache | |
remote: [1G ---> 014bf7ff34d8 | |
remote: [1GStep 18/23 : ADD package.json yarn.lock $APP_HOME/ | |
remote: [1G ---> Using cache | |
remote: [1G ---> c081fcba533d | |
remote: [1GStep 19/23 : RUN yarn install --force | |
remote: [1G ---> Using cache | |
remote: [1G ---> 3465e00b7eea | |
remote: [1GStep 20/23 : COPY . $APP_HOME | |
remote: [1G ---> Using cache | |
remote: [1G ---> fced1ffac2f8 | |
remote: [1GStep 21/23 : ARG RAILS_ENV | |
remote: [1G ---> Using cache | |
remote: [1G ---> 1be6a3ddc9bb | |
remote: [1GStep 22/23 : ENV RAILS_ENV ${RAILS_ENV} | |
remote: [1G ---> Using cache | |
remote: [1G ---> e83f1555b672 | |
remote: [1GStep 23/23 : EXPOSE 3000 | |
remote: [1G ---> Using cache | |
remote: [1G ---> 942806752995 | |
remote: [1GSuccessfully built 942806752995 | |
remote: [1GSuccessfully tagged dokku/shards:latest | |
remote: + plugn trigger post-build-dockerfile shards | |
remote: + source /var/lib/dokku/core-plugins/available/common/functions | |
remote: ++ set -eo pipefail | |
remote: ++ [[ -n 1 ]] | |
remote: ++ set -x | |
remote: + [[ ! -n '' ]] | |
remote: + release_and_deploy shards | |
remote: + declare 'desc=main function for releasing and deploying an app' | |
remote: + source /var/lib/dokku/plugins/available/config/functions | |
remote: ++ set -eo pipefail | |
remote: ++ [[ -n 1 ]] | |
remote: ++ set -x | |
remote: ++ source /var/lib/dokku/core-plugins/available/common/functions | |
remote: +++ set -eo pipefail | |
remote: +++ [[ -n 1 ]] | |
remote: +++ set -x | |
remote: + local APP=shards | |
remote: + local IMAGE_TAG= | |
remote: ++ get_app_image_name shards '' | |
remote: ++ declare 'desc=return image identifier for a given app, tag tuple. validate if tag is presented' | |
remote: ++ local APP=shards | |
remote: ++ local IMAGE_TAG= | |
remote: ++ IMAGE_REPO= | |
remote: ++ is_valid_app_name shards | |
remote: ++ declare 'desc=verify app name format' | |
remote: ++ local APP=shards | |
remote: ++ [[ -z shards ]] | |
remote: ++ [[ shards =~ ^[a-z].* ]] | |
remote: ++ [[ ! shards =~ [A-Z] ]] | |
remote: ++ [[ ! shards =~ [:] ]] | |
remote: ++ return 0 | |
remote: ++ [[ -z '' ]] | |
remote: +++ get_app_image_repo shards | |
remote: +++ declare 'desc=central definition of image repo pattern' | |
remote: +++ local APP=shards | |
remote: +++ local IMAGE_REPO=dokku/shards | |
remote: +++ is_valid_app_name shards | |
remote: +++ declare 'desc=verify app name format' | |
remote: +++ local APP=shards | |
remote: +++ [[ -z shards ]] | |
remote: +++ [[ shards =~ ^[a-z].* ]] | |
remote: +++ [[ ! shards =~ [A-Z] ]] | |
remote: +++ [[ ! shards =~ [:] ]] | |
remote: +++ return 0 | |
remote: +++ echo dokku/shards | |
remote: ++ IMAGE_REPO=dokku/shards | |
remote: ++ [[ -n '' ]] | |
remote: ++ local IMAGE=dokku/shards:latest | |
remote: ++ echo dokku/shards:latest | |
remote: + local IMAGE=dokku/shards:latest | |
remote: + local DOKKU_DOCKERFILE_PORTS | |
remote: + verify_app_name shards | |
remote: + declare 'desc=verify app name format and app existence' | |
remote: + local APP=shards | |
remote: + is_valid_app_name shards | |
remote: + declare 'desc=verify app name format' | |
remote: + local APP=shards | |
remote: + [[ -z shards ]] | |
remote: + [[ shards =~ ^[a-z].* ]] | |
remote: + [[ ! shards =~ [A-Z] ]] | |
remote: + [[ ! shards =~ [:] ]] | |
remote: + return 0 | |
remote: + [[ ! -d /home/dokku/shards ]] | |
remote: + return 0 | |
remote: + verify_image dokku/shards:latest | |
remote: + declare 'desc=verify image existence' | |
remote: + local IMAGE=dokku/shards:latest | |
remote: + docker inspect dokku/shards:latest | |
remote: + return 0 | |
remote: + is_image_herokuish_based dokku/shards:latest | |
remote: + declare 'desc=returns true if app image is based on herokuish' | |
remote: + declare IMAGE=dokku/shards:latest | |
remote: + local USER_VALUE | |
remote: + [[ -z dokku/shards:latest ]] | |
remote: ++ docker inspect -f '{{range .Config.Env}}{{if eq . "USER=herokuishuser" }}{{println .}}{{end}}{{end}}' dokku/shards:latest | |
remote: + USER_VALUE= | |
remote: + [[ '' == '' ]] | |
remote: + return 1 | |
remote: + local IMAGE_SOURCE_TYPE=dockerfile | |
remote: ++ config_get shards DOKKU_DOCKERFILE_PORTS | |
remote: ++ declare 'desc=get value of given config var' | |
remote: ++ config_sub get shards DOKKU_DOCKERFILE_PORTS | |
remote: ++ declare 'desc=executes a config subcommand' | |
remote: ++ local name=get | |
remote: ++ shift | |
remote: ++ /var/lib/dokku/plugins/available/config/subcommands/get config:get shards DOKKU_DOCKERFILE_PORTS | |
remote: + DOKKU_DOCKERFILE_PORTS=3000 | |
remote: + [[ -z 3000 ]] | |
remote: ++ config_get shards DOKKU_SKIP_DEPLOY | |
remote: ++ declare 'desc=get value of given config var' | |
remote: ++ config_sub get shards DOKKU_SKIP_DEPLOY | |
remote: ++ declare 'desc=executes a config subcommand' | |
remote: ++ local name=get | |
remote: ++ shift | |
remote: ++ /var/lib/dokku/plugins/available/config/subcommands/get config:get shards DOKKU_SKIP_DEPLOY | |
remote: ++ true | |
remote: + local DOKKU_APP_SKIP_DEPLOY= | |
remote: ++ config_get --global DOKKU_SKIP_DEPLOY | |
remote: ++ declare 'desc=get value of given config var' | |
remote: ++ config_sub get --global DOKKU_SKIP_DEPLOY | |
remote: ++ declare 'desc=executes a config subcommand' | |
remote: ++ local name=get | |
remote: ++ shift | |
remote: ++ /var/lib/dokku/plugins/available/config/subcommands/get config:get --global DOKKU_SKIP_DEPLOY | |
remote: ++ true | |
remote: + local DOKKU_GLOBAL_SKIP_DEPLOY= | |
remote: + local DOKKU_SKIP_DEPLOY= | |
remote: + dokku_log_info1 'Releasing shards (dokku/shards:latest)...' | |
remote: + declare 'desc=log info1 formatter' | |
remote: + echo '-----> Releasing shards (dokku/shards:latest)...' | |
remote: + dokku_release shards dockerfile '' | |
remote: + declare 'desc=release phase' | |
remote: + source /var/lib/dokku/plugins/available/config/functions | |
remote: ++ set -eo pipefail | |
remote: ++ [[ -n 1 ]] | |
remote: ++ set -x | |
remote: ++ source /var/lib/dokku/core-plugins/available/common/functions | |
remote: +++ set -eo pipefail | |
remote: +++ [[ -n 1 ]] | |
remote: +++ set -x | |
remote: [1G-----> Releasing shards (dokku/shards:latest)... | |
remote: + local APP=shards | |
remote: + local IMAGE_SOURCE_TYPE=dockerfile | |
remote: + local IMAGE_TAG= | |
remote: ++ get_app_image_name shards '' | |
remote: ++ declare 'desc=return image identifier for a given app, tag tuple. validate if tag is presented' | |
remote: ++ local APP=shards | |
remote: ++ local IMAGE_TAG= | |
remote: ++ IMAGE_REPO= | |
remote: ++ is_valid_app_name shards | |
remote: ++ declare 'desc=verify app name format' | |
remote: ++ local APP=shards | |
remote: ++ [[ -z shards ]] | |
remote: ++ [[ shards =~ ^[a-z].* ]] | |
remote: ++ [[ ! shards =~ [A-Z] ]] | |
remote: ++ [[ ! shards =~ [:] ]] | |
remote: ++ return 0 | |
remote: ++ [[ -z '' ]] | |
remote: +++ get_app_image_repo shards | |
remote: +++ declare 'desc=central definition of image repo pattern' | |
remote: +++ local APP=shards | |
remote: +++ local IMAGE_REPO=dokku/shards | |
remote: +++ is_valid_app_name shards | |
remote: +++ declare 'desc=verify app name format' | |
remote: +++ local APP=shards | |
remote: +++ [[ -z shards ]] | |
remote: +++ [[ shards =~ ^[a-z].* ]] | |
remote: +++ [[ ! shards =~ [A-Z] ]] | |
remote: +++ [[ ! shards =~ [:] ]] | |
remote: +++ return 0 | |
remote: +++ echo dokku/shards | |
remote: ++ IMAGE_REPO=dokku/shards | |
remote: ++ [[ -n '' ]] | |
remote: ++ local IMAGE=dokku/shards:latest | |
remote: ++ echo dokku/shards:latest | |
remote: + local IMAGE=dokku/shards:latest | |
remote: + local cid | |
remote: + verify_app_name shards | |
remote: + declare 'desc=verify app name format and app existence' | |
remote: + local APP=shards | |
remote: + is_valid_app_name shards | |
remote: + declare 'desc=verify app name format' | |
remote: + local APP=shards | |
remote: + [[ -z shards ]] | |
remote: + [[ shards =~ ^[a-z].* ]] | |
remote: + [[ ! shards =~ [A-Z] ]] | |
remote: + [[ ! shards =~ [:] ]] | |
remote: + return 0 | |
remote: + [[ ! -d /home/dokku/shards ]] | |
remote: + return 0 | |
remote: + case "$IMAGE_SOURCE_TYPE" in | |
remote: + plugn trigger pre-release-dockerfile shards '' | |
remote: + source /var/lib/dokku/core-plugins/available/common/functions | |
remote: ++ set -eo pipefail | |
remote: ++ [[ -n 1 ]] | |
remote: ++ set -x | |
remote: + [[ ! -n '' ]] | |
remote: + plugn trigger post-release-dockerfile shards '' | |
remote: + source /var/lib/dokku/core-plugins/available/common/functions | |
remote: ++ set -eo pipefail | |
remote: ++ [[ -n 1 ]] | |
remote: ++ set -x | |
remote: + [[ ! -n '' ]] | |
remote: + [[ '' != \t\r\u\e ]] | |
remote: + dokku_log_info1 'Deploying shards (dokku/shards:latest)...' | |
remote: + declare 'desc=log info1 formatter' | |
remote: + echo '-----> Deploying shards (dokku/shards:latest)...' | |
remote: + dokku_deploy_cmd shards '' | |
remote: + declare 'desc=deploy phase' | |
remote: + declare APP=shards IMAGE_TAG= | |
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: [1G-----> Deploying shards (dokku/shards:latest)... | |
remote: ++ get_app_scheduler shards | |
remote: ++ declare 'desc=fetch the scheduler for a given application' | |
remote: ++ declare APP=shards | |
remote: ++ local DOKKU_APP_SCHEDULER DOKKU_GLOBAL_SCHEDULER DOKKU_SCHEDULER | |
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 shards ]] | |
remote: +++ config_get shards DOKKU_SCHEDULER | |
remote: +++ declare 'desc=get value of given config var' | |
remote: +++ config_sub get shards 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 shards 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: + plugn trigger scheduler-deploy docker-local shards '' | |
remote: + source /var/lib/dokku/core-plugins/available/common/functions | |
remote: ++ set -eo pipefail | |
remote: ++ [[ -n 1 ]] | |
remote: ++ set -x | |
remote: + [[ ! -n '' ]] | |
remote: + source /var/lib/dokku/core-plugins/available/common/functions | |
remote: ++ set -eo pipefail | |
remote: ++ [[ -n 1 ]] | |
remote: ++ set -x | |
remote: + source /var/lib/dokku/plugins/available/checks/functions | |
remote: ++ set -eo pipefail | |
remote: ++ [[ -n 1 ]] | |
remote: ++ set -x | |
remote: ++ source /var/lib/dokku/core-plugins/available/common/functions | |
remote: +++ set -eo pipefail | |
remote: +++ [[ -n 1 ]] | |
remote: +++ set -x | |
remote: ++ source /var/lib/dokku/plugins/available/config/functions | |
remote: +++ set -eo pipefail | |
remote: +++ [[ -n 1 ]] | |
remote: +++ set -x | |
remote: +++ source /var/lib/dokku/core-plugins/available/common/functions | |
remote: ++++ set -eo pipefail | |
remote: ++++ [[ -n 1 ]] | |
remote: ++++ set -x | |
remote: + source /var/lib/dokku/plugins/available/config/functions | |
remote: ++ set -eo pipefail | |
remote: ++ [[ -n 1 ]] | |
remote: ++ set -x | |
remote: ++ source /var/lib/dokku/core-plugins/available/common/functions | |
remote: +++ set -eo pipefail | |
remote: +++ [[ -n 1 ]] | |
remote: +++ set -x | |
remote: + source /var/lib/dokku/plugins/available/ps/functions | |
remote: ++ set -eo pipefail | |
remote: ++ [[ -n 1 ]] | |
remote: ++ set -x | |
remote: ++ source /var/lib/dokku/core-plugins/available/common/functions | |
remote: +++ set -eo pipefail | |
remote: +++ [[ -n 1 ]] | |
remote: +++ set -x | |
remote: ++ source /var/lib/dokku/plugins/available/config/functions | |
remote: +++ set -eo pipefail | |
remote: +++ [[ -n 1 ]] | |
remote: +++ set -x | |
remote: +++ source /var/lib/dokku/core-plugins/available/common/functions | |
remote: ++++ set -eo pipefail | |
remote: ++++ [[ -n 1 ]] | |
remote: ++++ set -x | |
remote: + source /var/lib/dokku/plugins/available/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: + scheduler-docker-local-scheduler-deploy docker-local shards '' | |
remote: + declare 'desc=deploys an image tag for a given application' | |
remote: + declare 'trigger=scheduler-docker-local scheduler-deploy' | |
remote: + declare DOKKU_SCHEDULER=docker-local APP=shards IMAGE_TAG= | |
remote: + [[ docker-local != \d\o\c\k\e\r\-\l\o\c\a\l ]] | |
remote: + rm -f /var/lib/dokku/data/scheduler-docker-local/shards/failed-containers | |
remote: + local DOKKU_DOCKER_STOP_TIMEOUT DOKKU_HEROKUISH DOKKU_NETWORK_BIND_ALL IMAGE | |
remote: + DOKKU_HEROKUISH=false | |
remote: ++ get_deploying_app_image_name shards '' | |
remote: ++ declare 'desc=return deploying image identifier for a given app, tag tuple. validate if tag is presented' | |
remote: ++ local APP=shards | |
remote: ++ local IMAGE_TAG= | |
remote: ++ IMAGE_REPO= | |
remote: ++ is_valid_app_name shards | |
remote: ++ declare 'desc=verify app name format' | |
remote: ++ local APP=shards | |
remote: ++ [[ -z shards ]] | |
remote: ++ [[ shards =~ ^[a-z].* ]] | |
remote: ++ [[ ! shards =~ [A-Z] ]] | |
remote: ++ [[ ! shards =~ [:] ]] | |
remote: ++ return 0 | |
remote: +++ plugn trigger deployed-app-repository shards | |
remote: + source /var/lib/dokku/core-plugins/available/common/functions | |
remote: ++ set -eo pipefail | |
remote: ++ [[ -n 1 ]] | |
remote: ++ set -x | |
remote: + [[ ! -n '' ]] | |
remote: ++ local IMAGE_REMOTE_REPOSITORY= | |
remote: +++ plugn trigger deployed-app-image-tag shards | |
remote: + source /var/lib/dokku/core-plugins/available/common/functions | |
remote: ++ set -eo pipefail | |
remote: ++ [[ -n 1 ]] | |
remote: ++ set -x | |
remote: + [[ ! -n '' ]] | |
remote: ++ local NEW_IMAGE_TAG= | |
remote: +++ plugn trigger deployed-app-image-repo shards | |
remote: + source /var/lib/dokku/core-plugins/available/common/functions | |
remote: ++ set -eo pipefail | |
remote: ++ [[ -n 1 ]] | |
remote: ++ set -x | |
remote: + [[ ! -n '' ]] | |
remote: ++ local NEW_IMAGE_REPO= | |
remote: ++ [[ -n '' ]] | |
remote: ++ [[ -n '' ]] | |
remote: ++ [[ -z '' ]] | |
remote: +++ get_app_image_repo shards | |
remote: +++ declare 'desc=central definition of image repo pattern' | |
remote: +++ local APP=shards | |
remote: +++ local IMAGE_REPO=dokku/shards | |
remote: +++ is_valid_app_name shards | |
remote: +++ declare 'desc=verify app name format' | |
remote: +++ local APP=shards | |
remote: +++ [[ -z shards ]] | |
remote: +++ [[ shards =~ ^[a-z].* ]] | |
remote: +++ [[ ! shards =~ [A-Z] ]] | |
remote: +++ [[ ! shards =~ [:] ]] | |
remote: +++ return 0 | |
remote: +++ echo dokku/shards | |
remote: ++ IMAGE_REPO=dokku/shards | |
remote: ++ [[ -z '' ]] | |
remote: ++ IMAGE_TAG=latest | |
remote: ++ local IMAGE=dokku/shards:latest | |
remote: ++ verify_image dokku/shards:latest | |
remote: ++ declare 'desc=verify image existence' | |
remote: ++ local IMAGE=dokku/shards:latest | |
remote: ++ docker inspect dokku/shards:latest | |
remote: ++ return 0 | |
remote: ++ echo dokku/shards:latest | |
remote: + IMAGE=dokku/shards:latest | |
remote: + verify_app_name shards | |
remote: + declare 'desc=verify app name format and app existence' | |
remote: + local APP=shards | |
remote: + is_valid_app_name shards | |
remote: + declare 'desc=verify app name format' | |
remote: + local APP=shards | |
remote: + [[ -z shards ]] | |
remote: + [[ shards =~ ^[a-z].* ]] | |
remote: + [[ ! shards =~ [A-Z] ]] | |
remote: + [[ ! shards =~ [:] ]] | |
remote: + return 0 | |
remote: + [[ ! -d /home/dokku/shards ]] | |
remote: + return 0 | |
remote: + plugn trigger pre-deploy shards '' | |
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/core-plugins/available/app-json/internal-functions | |
remote: ++ set -eo pipefail | |
remote: ++ [[ -n 1 ]] | |
remote: ++ set -x | |
remote: ++ source /var/lib/dokku/core-plugins/available/common/functions | |
remote: +++ set -eo pipefail | |
remote: +++ [[ -n 1 ]] | |
remote: +++ set -x | |
remote: ++ source /var/lib/dokku/plugins/available/config/functions | |
remote: +++ set -eo pipefail | |
remote: +++ [[ -n 1 ]] | |
remote: +++ set -x | |
remote: +++ source /var/lib/dokku/core-plugins/available/common/functions | |
remote: ++++ set -eo pipefail | |
remote: ++++ [[ -n 1 ]] | |
remote: ++++ set -x | |
remote: ++ source /var/lib/dokku/plugins/available/ps/functions | |
remote: +++ set -eo pipefail | |
remote: +++ [[ -n 1 ]] | |
remote: +++ set -x | |
remote: +++ source /var/lib/dokku/core-plugins/available/common/functions | |
remote: ++++ set -eo pipefail | |
remote: ++++ [[ -n 1 ]] | |
remote: ++++ set -x | |
remote: +++ source /var/lib/dokku/plugins/available/config/functions | |
remote: ++++ set -eo pipefail | |
remote: ++++ [[ -n 1 ]] | |
remote: ++++ set -x | |
remote: ++++ source /var/lib/dokku/core-plugins/available/common/functions | |
remote: +++++ set -eo pipefail | |
remote: +++++ [[ -n 1 ]] | |
remote: +++++ set -x | |
remote: + app_json_pre_deploy shards '' | |
remote: + declare 'desc=app-json scripts execution' | |
remote: + local trigger=app_json_pre_deploy | |
remote: + local APP=shards | |
remote: + local IMAGE_TAG= | |
remote: + local PHASE_SCRIPT_KEY=predeploy | |
remote: + execute_script shards '' predeploy | |
remote: + declare 'desc=executes appropriate phase script key from app.json' | |
remote: + declare APP=shards IMAGE_TAG= PHASE_SCRIPT_KEY=predeploy | |
remote: + local IMAGE id SCRIPT_CMD | |
remote: ++ get_deploying_app_image_name shards '' | |
remote: ++ declare 'desc=return deploying image identifier for a given app, tag tuple. validate if tag is presented' | |
remote: ++ local APP=shards | |
remote: ++ local IMAGE_TAG= | |
remote: ++ IMAGE_REPO= | |
remote: ++ is_valid_app_name shards | |
remote: ++ declare 'desc=verify app name format' | |
remote: ++ local APP=shards | |
remote: ++ [[ -z shards ]] | |
remote: ++ [[ shards =~ ^[a-z].* ]] | |
remote: ++ [[ ! shards =~ [A-Z] ]] | |
remote: ++ [[ ! shards =~ [:] ]] | |
remote: ++ return 0 | |
remote: +++ plugn trigger deployed-app-repository shards | |
remote: + source /var/lib/dokku/core-plugins/available/common/functions | |
remote: ++ set -eo pipefail | |
remote: ++ [[ -n 1 ]] | |
remote: ++ set -x | |
remote: + [[ ! -n '' ]] | |
remote: ++ local IMAGE_REMOTE_REPOSITORY= | |
remote: +++ plugn trigger deployed-app-image-tag shards | |
remote: + source /var/lib/dokku/core-plugins/available/common/functions | |
remote: ++ set -eo pipefail | |
remote: ++ [[ -n 1 ]] | |
remote: ++ set -x | |
remote: + [[ ! -n '' ]] | |
remote: ++ local NEW_IMAGE_TAG= | |
remote: +++ plugn trigger deployed-app-image-repo shards | |
remote: + source /var/lib/dokku/core-plugins/available/common/functions | |
remote: ++ set -eo pipefail | |
remote: ++ [[ -n 1 ]] | |
remote: ++ set -x | |
remote: + [[ ! -n '' ]] | |
remote: ++ local NEW_IMAGE_REPO= | |
remote: ++ [[ -n '' ]] | |
remote: ++ [[ -n '' ]] | |
remote: ++ [[ -z '' ]] | |
remote: +++ get_app_image_repo shards | |
remote: +++ declare 'desc=central definition of image repo pattern' | |
remote: +++ local APP=shards | |
remote: +++ local IMAGE_REPO=dokku/shards | |
remote: +++ is_valid_app_name shards | |
remote: +++ declare 'desc=verify app name format' | |
remote: +++ local APP=shards | |
remote: +++ [[ -z shards ]] | |
remote: +++ [[ shards =~ ^[a-z].* ]] | |
remote: +++ [[ ! shards =~ [A-Z] ]] | |
remote: +++ [[ ! shards =~ [:] ]] | |
remote: +++ return 0 | |
remote: +++ echo dokku/shards | |
remote: ++ IMAGE_REPO=dokku/shards | |
remote: ++ [[ -z '' ]] | |
remote: ++ IMAGE_TAG=latest | |
remote: ++ local IMAGE=dokku/shards:latest | |
remote: ++ verify_image dokku/shards:latest | |
remote: ++ declare 'desc=verify image existence' | |
remote: ++ local IMAGE=dokku/shards:latest | |
remote: ++ docker inspect dokku/shards:latest | |
remote: ++ return 0 | |
remote: ++ echo dokku/shards:latest | |
remote: + IMAGE=dokku/shards:latest | |
remote: + [[ predeploy == \r\e\l\e\a\s\e ]] | |
remote: ++ get_phase_script dokku/shards:latest predeploy | |
remote: + SCRIPT_CMD= | |
remote: + [[ -z '' ]] | |
remote: + return | |
remote: + execute_script shards '' release | |
remote: + declare 'desc=executes appropriate phase script key from app.json' | |
remote: + declare APP=shards IMAGE_TAG= PHASE_SCRIPT_KEY=release | |
remote: + local IMAGE id SCRIPT_CMD | |
remote: ++ get_deploying_app_image_name shards '' | |
remote: ++ declare 'desc=return deploying image identifier for a given app, tag tuple. validate if tag is presented' | |
remote: ++ local APP=shards | |
remote: ++ local IMAGE_TAG= | |
remote: ++ IMAGE_REPO= | |
remote: ++ is_valid_app_name shards | |
remote: ++ declare 'desc=verify app name format' | |
remote: ++ local APP=shards | |
remote: ++ [[ -z shards ]] | |
remote: ++ [[ shards =~ ^[a-z].* ]] | |
remote: ++ [[ ! shards =~ [A-Z] ]] | |
remote: ++ [[ ! shards =~ [:] ]] | |
remote: ++ return 0 | |
remote: +++ plugn trigger deployed-app-repository shards | |
remote: + source /var/lib/dokku/core-plugins/available/common/functions | |
remote: ++ set -eo pipefail | |
remote: ++ [[ -n 1 ]] | |
remote: ++ set -x | |
remote: + [[ ! -n '' ]] | |
remote: ++ local IMAGE_REMOTE_REPOSITORY= | |
remote: +++ plugn trigger deployed-app-image-tag shards | |
remote: + source /var/lib/dokku/core-plugins/available/common/functions | |
remote: ++ set -eo pipefail | |
remote: ++ [[ -n 1 ]] | |
remote: ++ set -x | |
remote: + [[ ! -n '' ]] | |
remote: ++ local NEW_IMAGE_TAG= | |
remote: +++ plugn trigger deployed-app-image-repo shards | |
remote: + source /var/lib/dokku/core-plugins/available/common/functions | |
remote: ++ set -eo pipefail | |
remote: ++ [[ -n 1 ]] | |
remote: ++ set -x | |
remote: + [[ ! -n '' ]] | |
remote: ++ local NEW_IMAGE_REPO= | |
remote: ++ [[ -n '' ]] | |
remote: ++ [[ -n '' ]] | |
remote: ++ [[ -z '' ]] | |
remote: +++ get_app_image_repo shards | |
remote: +++ declare 'desc=central definition of image repo pattern' | |
remote: +++ local APP=shards | |
remote: +++ local IMAGE_REPO=dokku/shards | |
remote: +++ is_valid_app_name shards | |
remote: +++ declare 'desc=verify app name format' | |
remote: +++ local APP=shards | |
remote: +++ [[ -z shards ]] | |
remote: +++ [[ shards =~ ^[a-z].* ]] | |
remote: +++ [[ ! shards =~ [A-Z] ]] | |
remote: +++ [[ ! shards =~ [:] ]] | |
remote: +++ return 0 | |
remote: +++ echo dokku/shards | |
remote: ++ IMAGE_REPO=dokku/shards | |
remote: ++ [[ -z '' ]] | |
remote: ++ IMAGE_TAG=latest | |
remote: ++ local IMAGE=dokku/shards:latest | |
remote: ++ verify_image dokku/shards:latest | |
remote: ++ declare 'desc=verify image existence' | |
remote: ++ local IMAGE=dokku/shards:latest | |
remote: ++ docker inspect dokku/shards:latest | |
remote: ++ return 0 | |
remote: ++ echo dokku/shards:latest | |
remote: + IMAGE=dokku/shards:latest | |
remote: + [[ release == \r\e\l\e\a\s\e ]] | |
remote: ++ get_release_cmd shards '' | |
remote: ++ remove_procfile shards | |
remote: ++ declare 'desc=removes DOKKU_PROCFILE' | |
remote: ++ local APP=shards | |
remote: ++ local DOKKU_PROCFILE=/home/dokku/shards/DOKKU_PROCFILE | |
remote: ++ [[ -f /home/dokku/shards/DOKKU_PROCFILE ]] | |
remote: + SCRIPT_CMD= | |
remote: + [[ -z '' ]] | |
remote: + return | |
remote: + source /var/lib/dokku/core-plugins/available/common/functions | |
remote: ++ set -eo pipefail | |
remote: ++ [[ -n 1 ]] | |
remote: ++ set -x | |
remote: + source /var/lib/dokku/plugins/available/ps/functions | |
remote: ++ set -eo pipefail | |
remote: ++ [[ -n 1 ]] | |
remote: ++ set -x | |
remote: ++ source /var/lib/dokku/core-plugins/available/common/functions | |
remote: +++ set -eo pipefail | |
remote: +++ [[ -n 1 ]] | |
remote: +++ set -x | |
remote: ++ source /var/lib/dokku/plugins/available/config/functions | |
remote: +++ set -eo pipefail | |
remote: +++ [[ -n 1 ]] | |
remote: +++ set -x | |
remote: +++ source /var/lib/dokku/core-plugins/available/common/functions | |
remote: ++++ set -eo pipefail | |
remote: ++++ [[ -n 1 ]] | |
remote: ++++ set -x | |
remote: + ps_pre_deploy shards '' | |
remote: + declare 'desc=ps pre-deploy plugin trigger' | |
remote: + local trigger=ps_pre_deploy | |
remote: + local APP=shards | |
remote: + local IMAGE_TAG= | |
remote: + extract_procfile shards '' | |
remote: + declare 'desc=extracts procfile from app image' | |
remote: + local APP=shards | |
remote: + local IMAGE_TAG= | |
remote: ++ get_deploying_app_image_name shards '' | |
remote: ++ declare 'desc=return deploying image identifier for a given app, tag tuple. validate if tag is presented' | |
remote: ++ local APP=shards | |
remote: ++ local IMAGE_TAG= | |
remote: ++ IMAGE_REPO= | |
remote: ++ is_valid_app_name shards | |
remote: ++ declare 'desc=verify app name format' | |
remote: ++ local APP=shards | |
remote: ++ [[ -z shards ]] | |
remote: ++ [[ shards =~ ^[a-z].* ]] | |
remote: ++ [[ ! shards =~ [A-Z] ]] | |
remote: ++ [[ ! shards =~ [:] ]] | |
remote: ++ return 0 | |
remote: +++ plugn trigger deployed-app-repository shards | |
remote: + source /var/lib/dokku/core-plugins/available/common/functions | |
remote: ++ set -eo pipefail | |
remote: ++ [[ -n 1 ]] | |
remote: ++ set -x | |
remote: + [[ ! -n '' ]] | |
remote: ++ local IMAGE_REMOTE_REPOSITORY= | |
remote: +++ plugn trigger deployed-app-image-tag shards | |
remote: + source /var/lib/dokku/core-plugins/available/common/functions | |
remote: ++ set -eo pipefail | |
remote: ++ [[ -n 1 ]] | |
remote: ++ set -x | |
remote: + [[ ! -n '' ]] | |
remote: ++ local NEW_IMAGE_TAG= | |
remote: +++ plugn trigger deployed-app-image-repo shards | |
remote: + source /var/lib/dokku/core-plugins/available/common/functions | |
remote: ++ set -eo pipefail | |
remote: ++ [[ -n 1 ]] | |
remote: ++ set -x | |
remote: + [[ ! -n '' ]] | |
remote: ++ local NEW_IMAGE_REPO= | |
remote: ++ [[ -n '' ]] | |
remote: ++ [[ -n '' ]] | |
remote: ++ [[ -z '' ]] | |
remote: +++ get_app_image_repo shards | |
remote: +++ declare 'desc=central definition of image repo pattern' | |
remote: +++ local APP=shards | |
remote: +++ local IMAGE_REPO=dokku/shards | |
remote: +++ is_valid_app_name shards | |
remote: +++ declare 'desc=verify app name format' | |
remote: +++ local APP=shards | |
remote: +++ [[ -z shards ]] | |
remote: +++ [[ shards =~ ^[a-z].* ]] | |
remote: +++ [[ ! shards =~ [A-Z] ]] | |
remote: +++ [[ ! shards =~ [:] ]] | |
remote: +++ return 0 | |
remote: +++ echo dokku/shards | |
remote: ++ IMAGE_REPO=dokku/shards | |
remote: ++ [[ -z '' ]] | |
remote: ++ IMAGE_TAG=latest | |
remote: ++ local IMAGE=dokku/shards:latest | |
remote: ++ verify_image dokku/shards:latest | |
remote: ++ declare 'desc=verify image existence' | |
remote: ++ local IMAGE=dokku/shards:latest | |
remote: ++ docker inspect dokku/shards:latest | |
remote: ++ return 0 | |
remote: ++ echo dokku/shards:latest | |
remote: + local IMAGE=dokku/shards:latest | |
remote: + local DOKKU_PROCFILE=/home/dokku/shards/DOKKU_PROCFILE | |
remote: + verify_app_name shards | |
remote: + declare 'desc=verify app name format and app existence' | |
remote: + local APP=shards | |
remote: + is_valid_app_name shards | |
remote: + declare 'desc=verify app name format' | |
remote: + local APP=shards | |
remote: + [[ -z shards ]] | |
remote: + [[ shards =~ ^[a-z].* ]] | |
remote: + [[ ! shards =~ [A-Z] ]] | |
remote: + [[ ! shards =~ [:] ]] | |
remote: + return 0 | |
remote: + [[ ! -d /home/dokku/shards ]] | |
remote: + return 0 | |
remote: + remove_procfile shards | |
remote: + declare 'desc=removes DOKKU_PROCFILE' | |
remote: + local APP=shards | |
remote: + local DOKKU_PROCFILE=/home/dokku/shards/DOKKU_PROCFILE | |
remote: + [[ -f /home/dokku/shards/DOKKU_PROCFILE ]] | |
remote: + copy_from_image dokku/shards:latest Procfile /home/dokku/shards/DOKKU_PROCFILE | |
remote: + [[ -f /home/dokku/shards/DOKKU_PROCFILE ]] | |
remote: + dokku_log_info1_quiet 'No Procfile found in app image' | |
remote: + declare 'desc=log info1 formatter (with quiet option)' | |
remote: + [[ -z '' ]] | |
remote: + echo '-----> No Procfile found in app image' | |
remote: + generate_scale_file shards '' | |
remote: [1G-----> No Procfile found in app image | |
remote: + declare 'desc=generates DOKKU_SCALE file' | |
remote: + local APP=shards | |
remote: + local IMAGE_TAG= | |
remote: ++ get_deploying_app_image_name shards '' | |
remote: ++ declare 'desc=return deploying image identifier for a given app, tag tuple. validate if tag is presented' | |
remote: ++ local APP=shards | |
remote: ++ local IMAGE_TAG= | |
remote: ++ IMAGE_REPO= | |
remote: ++ is_valid_app_name shards | |
remote: ++ declare 'desc=verify app name format' | |
remote: ++ local APP=shards | |
remote: ++ [[ -z shards ]] | |
remote: ++ [[ shards =~ ^[a-z].* ]] | |
remote: ++ [[ ! shards =~ [A-Z] ]] | |
remote: ++ [[ ! shards =~ [:] ]] | |
remote: ++ return 0 | |
remote: +++ plugn trigger deployed-app-repository shards | |
remote: + source /var/lib/dokku/core-plugins/available/common/functions | |
remote: ++ set -eo pipefail | |
remote: ++ [[ -n 1 ]] | |
remote: ++ set -x | |
remote: + [[ ! -n '' ]] | |
remote: ++ local IMAGE_REMOTE_REPOSITORY= | |
remote: +++ plugn trigger deployed-app-image-tag shards | |
remote: + source /var/lib/dokku/core-plugins/available/common/functions | |
remote: ++ set -eo pipefail | |
remote: ++ [[ -n 1 ]] | |
remote: ++ set -x | |
remote: + [[ ! -n '' ]] | |
remote: ++ local NEW_IMAGE_TAG= | |
remote: +++ plugn trigger deployed-app-image-repo shards | |
remote: + source /var/lib/dokku/core-plugins/available/common/functions | |
remote: ++ set -eo pipefail | |
remote: ++ [[ -n 1 ]] | |
remote: ++ set -x | |
remote: + [[ ! -n '' ]] | |
remote: ++ local NEW_IMAGE_REPO= | |
remote: ++ [[ -n '' ]] | |
remote: ++ [[ -n '' ]] | |
remote: ++ [[ -z '' ]] | |
remote: +++ get_app_image_repo shards | |
remote: +++ declare 'desc=central definition of image repo pattern' | |
remote: +++ local APP=shards | |
remote: +++ local IMAGE_REPO=dokku/shards | |
remote: +++ is_valid_app_name shards | |
remote: +++ declare 'desc=verify app name format' | |
remote: +++ local APP=shards | |
remote: +++ [[ -z shards ]] | |
remote: +++ [[ shards =~ ^[a-z].* ]] | |
remote: +++ [[ ! shards =~ [A-Z] ]] | |
remote: +++ [[ ! shards =~ [:] ]] | |
remote: +++ return 0 | |
remote: +++ echo dokku/shards | |
remote: ++ IMAGE_REPO=dokku/shards | |
remote: ++ [[ -z '' ]] | |
remote: ++ IMAGE_TAG=latest | |
remote: ++ local IMAGE=dokku/shards:latest | |
remote: ++ verify_image dokku/shards:latest | |
remote: ++ declare 'desc=verify image existence' | |
remote: ++ local IMAGE=dokku/shards:latest | |
remote: ++ docker inspect dokku/shards:latest | |
remote: ++ return 0 | |
remote: ++ echo dokku/shards:latest | |
remote: + local IMAGE=dokku/shards:latest | |
remote: + local DOKKU_SCALE_FILE=/home/dokku/shards/DOKKU_SCALE | |
remote: + local DOKKU_PROCFILE=/home/dokku/shards/DOKKU_PROCFILE | |
remote: + verify_app_name shards | |
remote: + declare 'desc=verify app name format and app existence' | |
remote: + local APP=shards | |
remote: + is_valid_app_name shards | |
remote: + declare 'desc=verify app name format' | |
remote: + local APP=shards | |
remote: + [[ -z shards ]] | |
remote: + [[ shards =~ ^[a-z].* ]] | |
remote: + [[ ! shards =~ [A-Z] ]] | |
remote: + [[ ! shards =~ [:] ]] | |
remote: + return 0 | |
remote: + [[ ! -d /home/dokku/shards ]] | |
remote: + return 0 | |
remote: + copy_from_image dokku/shards:latest DOKKU_SCALE /home/dokku/shards | |
remote: + [[ ! -f /home/dokku/shards/DOKKU_SCALE ]] | |
remote: + print_dokku_scale_file shards | |
remote: + declare 'desc=prints contents of DOKKU_SCALE file' | |
remote: + local APP=shards | |
remote: + local DOKKU_SCALE_FILE=/home/dokku/shards/DOKKU_SCALE | |
remote: ++ xargs | |
remote: + dokku_log_verbose_quiet 'DOKKU_SCALE declares scale -> web=1' | |
remote: + declare 'desc=log verbose formatter (with quiet option)' | |
remote: + [[ -z '' ]] | |
remote: + echo ' DOKKU_SCALE declares scale -> web=1' | |
remote: [1G DOKKU_SCALE declares scale -> web=1 | |
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: + scheduler-docker-local-pre-deploy shards '' | |
remote: + declare 'desc=scheduler-docker-local pre-deploy plugin trigger' | |
remote: + declare 'trigger=scheduler-docker-local pre-deploy' | |
remote: + declare APP=shards IMAGE_TAG= | |
remote: + local IMAGE DISABLE_CHOWN DOCKER_ARGS DOKKU_APP_TYPE DOKKU_APP_USER APP_PATHS CONTAINER_PATHS | |
remote: + declare -a ARG_ARRAY | |
remote: ++ get_app_scheduler shards | |
remote: ++ declare 'desc=fetch the scheduler for a given application' | |
remote: ++ declare APP=shards | |
remote: ++ local DOKKU_APP_SCHEDULER DOKKU_GLOBAL_SCHEDULER DOKKU_SCHEDULER | |
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 shards ]] | |
remote: +++ config_get shards DOKKU_SCHEDULER | |
remote: +++ declare 'desc=get value of given config var' | |
remote: +++ config_sub get shards 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 shards 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: + [[ docker-local != \d\o\c\k\e\r\-\l\o\c\a\l ]] | |
remote: ++ get_app_image_name shards '' | |
remote: ++ declare 'desc=return image identifier for a given app, tag tuple. validate if tag is presented' | |
remote: ++ local APP=shards | |
remote: ++ local IMAGE_TAG= | |
remote: ++ IMAGE_REPO= | |
remote: ++ is_valid_app_name shards | |
remote: ++ declare 'desc=verify app name format' | |
remote: ++ local APP=shards | |
remote: ++ [[ -z shards ]] | |
remote: ++ [[ shards =~ ^[a-z].* ]] | |
remote: ++ [[ ! shards =~ [A-Z] ]] | |
remote: ++ [[ ! shards =~ [:] ]] | |
remote: ++ return 0 | |
remote: ++ [[ -z '' ]] | |
remote: +++ get_app_image_repo shards | |
remote: +++ declare 'desc=central definition of image repo pattern' | |
remote: +++ local APP=shards | |
remote: +++ local IMAGE_REPO=dokku/shards | |
remote: +++ is_valid_app_name shards | |
remote: +++ declare 'desc=verify app name format' | |
remote: +++ local APP=shards | |
remote: +++ [[ -z shards ]] | |
remote: +++ [[ shards =~ ^[a-z].* ]] | |
remote: +++ [[ ! shards =~ [A-Z] ]] | |
remote: +++ [[ ! shards =~ [:] ]] | |
remote: +++ return 0 | |
remote: +++ echo dokku/shards | |
remote: ++ IMAGE_REPO=dokku/shards | |
remote: ++ [[ -n '' ]] | |
remote: ++ local IMAGE=dokku/shards:latest | |
remote: ++ echo dokku/shards:latest | |
remote: + IMAGE=dokku/shards:latest | |
remote: ++ config_get shards DOKKU_APP_TYPE | |
remote: ++ declare 'desc=get value of given config var' | |
remote: ++ config_sub get shards 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 shards DOKKU_APP_TYPE | |
remote: + DOKKU_APP_TYPE=dockerfile | |
remote: ++ config_get shards DOKKU_APP_USER | |
remote: ++ declare 'desc=get value of given config var' | |
remote: ++ config_sub get shards 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 shards DOKKU_APP_USER | |
remote: ++ true | |
remote: + DOKKU_APP_USER= | |
remote: + DOKKU_APP_USER=herokuishuser | |
remote: ++ dokku --quiet storage:list shards | |
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 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_LOGS_DIR=/var/log/dokku | |
remote: + DOKKU_LOGS_DIR=/var/log/dokku | |
remote: + export DOKKU_EVENTS_LOGFILE=/var/log/dokku/events.log | |
remote: + DOKKU_EVENTS_LOGFILE=/var/log/dokku/events.log | |
remote: + export DOKKU_CONTAINER_LABEL=dokku | |
remote: + DOKKU_CONTAINER_LABEL=dokku | |
remote: + export DOKKU_GLOBAL_RUN_ARGS=--label=dokku | |
remote: + DOKKU_GLOBAL_RUN_ARGS=--label=dokku | |
remote: + source /var/lib/dokku/core-plugins/available/common/functions | |
remote: ++ set -eo pipefail | |
remote: ++ [[ -n 1 ]] | |
remote: ++ set -x | |
remote: + parse_args --quiet storage:list shards | |
remote: + declare 'desc=top-level cli arg parser' | |
remote: + local next_index=1 | |
remote: + local skip=false | |
remote: + args=("$@") | |
remote: + local args | |
remote: + for arg in "$@" | |
remote: + [[ false == \t\r\u\e ]] | |
remote: + case "$arg" in | |
remote: + export DOKKU_QUIET_OUTPUT=1 | |
remote: + DOKKU_QUIET_OUTPUT=1 | |
remote: + next_index=2 | |
remote: + for arg in "$@" | |
remote: + [[ false == \t\r\u\e ]] | |
remote: + case "$arg" in | |
remote: + next_index=3 | |
remote: + for arg in "$@" | |
remote: + [[ false == \t\r\u\e ]] | |
remote: + case "$arg" in | |
remote: + next_index=4 | |
remote: + return 0 | |
remote: + args=("$@") | |
remote: + skip_arg=false | |
remote: + [[ --quiet =~ ^--.* ]] | |
remote: + for arg in "$@" | |
remote: + false | |
remote: + [[ --quiet == \-\-\v\e\r\s\i\o\n ]] | |
remote: + [[ --quiet == \-\-\a\p\p ]] | |
remote: + [[ --quiet =~ ^--.* ]] | |
remote: + shift 1 | |
remote: + for arg in "$@" | |
remote: + false | |
remote: + [[ storage:list == \-\-\v\e\r\s\i\o\n ]] | |
remote: + [[ storage:list == \-\-\a\p\p ]] | |
remote: + [[ storage:list =~ ^--.* ]] | |
remote: + break | |
remote: + has_tty | |
remote: + declare 'desc=return 0 if we have a tty' | |
remote: ++ /usr/bin/tty | |
remote: ++ true | |
remote: + [[ not a tty == \n\o\t\ \a\ \t\t\y ]] | |
remote: + return 1 | |
remote: + DOKKU_QUIET_OUTPUT=1 | |
remote: ++ id -un | |
remote: + [[ dokku != \d\o\k\k\u ]] | |
remote: + [[ storage:list =~ ^plugin:.* ]] | |
remote: + [[ storage:list == \s\s\h\-\k\e\y\s\:\a\d\d ]] | |
remote: + [[ -n '' ]] | |
remote: + dokku_auth storage:list shards | |
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: + plugn trigger user-auth dokku admin1 storage:list shards | |
remote: + source /var/lib/dokku/core-plugins/available/common/functions | |
remote: ++ set -eo pipefail | |
remote: ++ [[ -n 1 ]] | |
remote: ++ set -x | |
remote: + [[ ! -n '' ]] | |
remote: + source /var/lib/dokku/core-plugins/available/common/functions | |
remote: ++ set -eo pipefail | |
remote: ++ [[ -n 1 ]] | |
remote: ++ set -x | |
remote: + [[ storage:list =~ (ssh-keys:add|ssh-keys:remove) ]] | |
remote: + return 0 | |
remote: + case "$1" in | |
remote: + execute_dokku_cmd storage:list shards | |
remote: + declare 'desc=executes dokku sub-commands' | |
remote: + local PLUGIN_NAME=storage:list | |
remote: + local PLUGIN_CMD=storage:list | |
remote: + local implemented=0 | |
remote: + local script | |
remote: + argv=("$@") | |
remote: + local argv | |
remote: + case "$PLUGIN_NAME" in | |
remote: ++ readlink -f /var/lib/dokku/plugins/enabled/storage | |
remote: + [[ /var/lib/dokku/core-plugins/available/storage == *core-plugins* ]] | |
remote: + [[ storage:list == \s\t\o\r\a\g\e\:\l\i\s\t ]] | |
remote: + shift 1 | |
remote: + [[ -n '' ]] | |
remote: + set -- storage:list shards | |
remote: + [[ -x /var/lib/dokku/plugins/enabled/storage:list/subcommands/default ]] | |
remote: + [[ -x /var/lib/dokku/plugins/enabled/storage:list/subcommands/storage:list ]] | |
remote: + [[ -x /var/lib/dokku/plugins/enabled/storage/subcommands/list ]] | |
remote: + [[ -n list ]] | |
remote: + /var/lib/dokku/plugins/enabled/storage/subcommands/list storage:list shards | |
remote: + source /var/lib/dokku/plugins/available/storage/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/plugins/available/docker-options/functions | |
remote: +++ set -eo pipefail | |
remote: +++ [[ -n 1 ]] | |
remote: +++ set -x | |
remote: +++ source /var/lib/dokku/core-plugins/available/common/functions | |
remote: ++++ set -eo pipefail | |
remote: ++++ [[ -n 1 ]] | |
remote: ++++ set -x | |
remote: +++ AVAILABLE_PHASES=(build deploy run) | |
remote: ++ source /var/lib/dokku/plugins/available/storage/functions | |
remote: +++ set -eo pipefail | |
remote: +++ [[ -n 1 ]] | |
remote: +++ set -x | |
remote: +++ source /var/lib/dokku/core-plugins/available/common/functions | |
remote: ++++ set -eo pipefail | |
remote: ++++ [[ -n 1 ]] | |
remote: ++++ set -x | |
remote: +++ source /var/lib/dokku/plugins/available/docker-options/functions | |
remote: ++++ set -eo pipefail | |
remote: ++++ [[ -n 1 ]] | |
remote: ++++ set -x | |
remote: ++++ source /var/lib/dokku/core-plugins/available/common/functions | |
remote: +++++ set -eo pipefail | |
remote: +++++ [[ -n 1 ]] | |
remote: +++++ set -x | |
remote: ++++ AVAILABLE_PHASES=(build deploy run) | |
remote: ++ set -eo pipefail | |
remote: ++ [[ -n 1 ]] | |
remote: ++ set -x | |
remote: + storage_list_cmd storage:list shards | |
remote: + declare 'desc=List all bound mounts' | |
remote: + local cmd=storage:list | |
remote: + local passed_phases=deploy | |
remote: + [[ -z shards ]] | |
remote: + verify_app_name shards | |
remote: + declare 'desc=verify app name format and app existence' | |
remote: + local APP=shards | |
remote: + is_valid_app_name shards | |
remote: + declare 'desc=verify app name format' | |
remote: + local APP=shards | |
remote: + [[ -z shards ]] | |
remote: + [[ shards =~ ^[a-z].* ]] | |
remote: + [[ ! shards =~ [A-Z] ]] | |
remote: + [[ ! shards =~ [:] ]] | |
remote: + return 0 | |
remote: + [[ ! -d /home/dokku/shards ]] | |
remote: + return 0 | |
remote: + local APP=shards | |
remote: + dokku_log_quiet 'shards volume bind-mounts:' | |
remote: + declare 'desc=log quiet formatter' | |
remote: + [[ -z 1 ]] | |
remote: ++ get_phase_file_path deploy | |
remote: ++ declare 'desc=return docker-options config file path for specified phase' | |
remote: ++ local phase_file_prefix=DOCKER_OPTIONS_ | |
remote: ++ local phase=deploy | |
remote: ++ [[ -n shards ]] | |
remote: ++ [[ -n deploy ]] | |
remote: ++ fn-get-phase-file-path shards deploy | |
remote: ++ declare 'desc=return docker-options config file path for specified phase' | |
remote: ++ local APP=shards PHASE=deploy | |
remote: ++ local PHASE_FILE=/home/dokku/shards/DOCKER_OPTIONS_DEPLOY | |
remote: ++ echo /home/dokku/shards/DOCKER_OPTIONS_DEPLOY | |
remote: + get_bind_mounts /home/dokku/shards/DOCKER_OPTIONS_DEPLOY | |
remote: + declare 'desc=strips docker options and prints mounts' | |
remote: + local -r phase_file_path=/home/dokku/shards/DOCKER_OPTIONS_DEPLOY | |
remote: + [[ -r /home/dokku/shards/DOCKER_OPTIONS_DEPLOY ]] | |
remote: + sed -e '/^-v/!d' -e 's/^-v/ /' | |
remote: + implemented=1 | |
remote: + [[ 1 -eq 0 ]] | |
remote: + [[ 1 -eq 0 ]] | |
remote: + APP_PATHS= | |
remote: + [[ -n '' ]] | |
remote: + [[ dockerfile != \h\e\r\o\k\u\i\s\h ]] | |
remote: + return | |
remote: + is_image_herokuish_based dokku/shards:latest | |
remote: + declare 'desc=returns true if app image is based on herokuish' | |
remote: + declare IMAGE=dokku/shards:latest | |
remote: + local USER_VALUE | |
remote: + [[ -z dokku/shards:latest ]] | |
remote: ++ docker inspect -f '{{range .Config.Env}}{{if eq . "USER=herokuishuser" }}{{println .}}{{end}}{{end}}' dokku/shards:latest | |
remote: + USER_VALUE= | |
remote: + [[ '' == '' ]] | |
remote: + return 1 | |
remote: + local IMAGE_SOURCE_TYPE=dockerfile | |
remote: + [[ false == \t\r\u\e ]] | |
remote: + local DOKKU_SCALE_FILE=/home/dokku/shards/DOKKU_SCALE | |
remote: ++ get_app_container_ids shards | |
remote: ++ declare 'desc=returns list of docker container ids for given app and optional container_type' | |
remote: ++ local APP=shards | |
remote: ++ local CONTAINER_TYPE= | |
remote: ++ verify_app_name shards | |
remote: ++ declare 'desc=verify app name format and app existence' | |
remote: ++ local APP=shards | |
remote: ++ is_valid_app_name shards | |
remote: ++ declare 'desc=verify app name format' | |
remote: ++ local APP=shards | |
remote: ++ [[ -z shards ]] | |
remote: ++ [[ shards =~ ^[a-z].* ]] | |
remote: ++ [[ ! shards =~ [A-Z] ]] | |
remote: ++ [[ ! shards =~ [:] ]] | |
remote: ++ return 0 | |
remote: ++ [[ ! -d /home/dokku/shards ]] | |
remote: ++ return 0 | |
remote: ++ [[ -f /home/dokku/shards/CONTAINER ]] | |
remote: ++ [[ -n '' ]] | |
remote: ++ local 'CONTAINER_PATTERN=/home/dokku/shards/CONTAINER.*' | |
remote: ++ shopt -s nullglob | |
remote: ++ local DOKKU_CID_FILE | |
remote: ++ shopt -u nullglob | |
remote: ++ echo '' | |
remote: + local oldids= | |
remote: ++ plugn trigger network-get-property shards bind-all-interfaces | |
remote: + source /var/lib/dokku/core-plugins/available/common/functions | |
remote: ++ set -eo pipefail | |
remote: ++ [[ -n 1 ]] | |
remote: ++ set -x | |
remote: + [[ ! -n '' ]] | |
remote: + DOKKU_NETWORK_BIND_ALL=false | |
remote: ++ config_get shards DOKKU_DOCKER_STOP_TIMEOUT | |
remote: ++ declare 'desc=get value of given config var' | |
remote: ++ config_sub get shards DOKKU_DOCKER_STOP_TIMEOUT | |
remote: ++ declare 'desc=executes a config subcommand' | |
remote: ++ local name=get | |
remote: ++ shift | |
remote: ++ /var/lib/dokku/plugins/available/config/subcommands/get config:get shards DOKKU_DOCKER_STOP_TIMEOUT | |
remote: ++ true | |
remote: + DOKKU_DOCKER_STOP_TIMEOUT= | |
remote: + [[ -n '' ]] | |
remote: + local line | |
remote: + local PROC_TYPE | |
remote: + local PROC_COUNT | |
remote: + local CONTAINER_INDEX | |
remote: + read -r line | |
remote: + [[ web=1 =~ ^#.* ]] | |
remote: ++ strip_inline_comments web=1 | |
remote: ++ declare 'desc=removes bash-style comment from input line' | |
remote: ++ local line=web=1 | |
remote: ++ local stripped_line=web=1 | |
remote: ++ echo web=1 | |
remote: + line=web=1 | |
remote: + PROC_TYPE=web | |
remote: + PROC_COUNT=1 | |
remote: + CONTAINER_INDEX=1 | |
remote: ++ is_app_proctype_checks_disabled shards web | |
remote: ++ declare 'desc=return true if app'\''s proctype(s) checks are disabled' | |
remote: ++ local APP=shards | |
remote: ++ verify_app_name shards | |
remote: ++ declare 'desc=verify app name format and app existence' | |
remote: ++ local APP=shards | |
remote: ++ is_valid_app_name shards | |
remote: ++ declare 'desc=verify app name format' | |
remote: ++ local APP=shards | |
remote: ++ [[ -z shards ]] | |
remote: ++ [[ shards =~ ^[a-z].* ]] | |
remote: ++ [[ ! shards =~ [A-Z] ]] | |
remote: ++ [[ ! shards =~ [:] ]] | |
remote: ++ return 0 | |
remote: ++ [[ ! -d /home/dokku/shards ]] | |
remote: ++ return 0 | |
remote: ++ local PROCTYPE=web status=false | |
remote: +++ config_get shards DOKKU_CHECKS_DISABLED | |
remote: +++ declare 'desc=get value of given config var' | |
remote: +++ config_sub get shards DOKKU_CHECKS_DISABLED | |
remote: +++ declare 'desc=executes a config subcommand' | |
remote: +++ local name=get | |
remote: +++ shift | |
remote: +++ /var/lib/dokku/plugins/available/config/subcommands/get config:get shards DOKKU_CHECKS_DISABLED | |
remote: +++ true | |
remote: ++ local DOKKU_CHECKS_DISABLED= | |
remote: ++ [[ '' == \_\a\l\l\_ ]] | |
remote: +++ is_val_in_list web '' | |
remote: +++ declare 'desc=return true if value (web) is in list () separated by delimiter (); delimiter defaults to comma' | |
remote: +++ local value=web list= delimiter=, | |
remote: +++ local IFS=, val_in_list=false | |
remote: +++ echo false | |
remote: ++ [[ false == \t\r\u\e ]] | |
remote: ++ echo false | |
remote: + [[ false == \t\r\u\e ]] | |
remote: + [[ 1 -le 1 ]] | |
remote: + local cid= | |
remote: + local port= | |
remote: + local ipaddr= | |
remote: + local DOKKU_CONTAINER_ID_FILE=/home/dokku/shards/CONTAINER.web.1 | |
remote: + local DOCKER_ARGS | |
remote: ++ : | |
remote: ++ plugn trigger docker-args-deploy shards '' web 1 | |
remote: + source /var/lib/dokku/plugins/available/config/functions | |
remote: ++ set -eo pipefail | |
remote: ++ [[ -n 1 ]] | |
remote: ++ set -x | |
remote: ++ source /var/lib/dokku/core-plugins/available/common/functions | |
remote: +++ set -eo pipefail | |
remote: +++ [[ -n 1 ]] | |
remote: +++ set -x | |
remote: + app_user_docker_args shards '' web 1 | |
remote: + local APP=shards | |
remote: + local STDIN | |
remote: + local DOKKU_APP_TYPE | |
remote: + local DOKKU_APP_USER | |
remote: ++ cat | |
remote: + STDIN= | |
remote: ++ config_get shards DOKKU_APP_TYPE | |
remote: ++ declare 'desc=get value of given config var' | |
remote: ++ config_sub get shards 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 shards DOKKU_APP_TYPE | |
remote: + DOKKU_APP_TYPE=dockerfile | |
remote: ++ config_get shards DOKKU_APP_USER | |
remote: ++ declare 'desc=get value of given config var' | |
remote: ++ config_sub get shards 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 shards DOKKU_APP_USER | |
remote: ++ true | |
remote: + DOKKU_APP_USER= | |
remote: + DOKKU_APP_USER=herokuishuser | |
remote: + [[ dockerfile == \h\e\r\o\k\u\i\s\h ]] | |
remote: + local docker_args= | |
remote: + echo -n '' | |
remote: + source /var/lib/dokku/core-plugins/available/common/functions | |
remote: ++ set -eo pipefail | |
remote: ++ [[ -n 1 ]] | |
remote: ++ set -x | |
remote: + [[ ! -n '' ]] | |
remote: + source /var/lib/dokku/core-plugins/available/common/functions | |
remote: ++ set -eo pipefail | |
remote: ++ [[ -n 1 ]] | |
remote: ++ set -x | |
remote: + source /var/lib/dokku/plugins/available/config/functions | |
remote: ++ set -eo pipefail | |
remote: ++ [[ -n 1 ]] | |
remote: ++ set -x | |
remote: ++ source /var/lib/dokku/core-plugins/available/common/functions | |
remote: +++ set -eo pipefail | |
remote: +++ [[ -n 1 ]] | |
remote: +++ set -x | |
remote: + config_docker_args shards '' web 1 | |
remote: + declare 'desc=config docker-args plugin trigger' | |
remote: + declare APP=shards IMAGE_TAG= | |
remote: + local ENV_ARGS IMAGE STDIN trigger | |
remote: ++ get_deploying_app_image_name shards '' | |
remote: ++ declare 'desc=return deploying image identifier for a given app, tag tuple. validate if tag is presented' | |
remote: ++ local APP=shards | |
remote: ++ local IMAGE_TAG= | |
remote: ++ IMAGE_REPO= | |
remote: ++ is_valid_app_name shards | |
remote: ++ declare 'desc=verify app name format' | |
remote: ++ local APP=shards | |
remote: ++ [[ -z shards ]] | |
remote: ++ [[ shards =~ ^[a-z].* ]] | |
remote: ++ [[ ! shards =~ [A-Z] ]] | |
remote: ++ [[ ! shards =~ [:] ]] | |
remote: ++ return 0 | |
remote: +++ plugn trigger deployed-app-repository shards | |
remote: + source /var/lib/dokku/core-plugins/available/common/functions | |
remote: ++ set -eo pipefail | |
remote: ++ [[ -n 1 ]] | |
remote: ++ set -x | |
remote: + [[ ! -n '' ]] | |
remote: ++ local IMAGE_REMOTE_REPOSITORY= | |
remote: +++ plugn trigger deployed-app-image-tag shards | |
remote: + source /var/lib/dokku/core-plugins/available/common/functions | |
remote: ++ set -eo pipefail | |
remote: ++ [[ -n 1 ]] | |
remote: ++ set -x | |
remote: + [[ ! -n '' ]] | |
remote: ++ local NEW_IMAGE_TAG= | |
remote: +++ plugn trigger deployed-app-image-repo shards | |
remote: + source /var/lib/dokku/core-plugins/available/common/functions | |
remote: ++ set -eo pipefail | |
remote: ++ [[ -n 1 ]] | |
remote: ++ set -x | |
remote: + [[ ! -n '' ]] | |
remote: ++ local NEW_IMAGE_REPO= | |
remote: ++ [[ -n '' ]] | |
remote: ++ [[ -n '' ]] | |
remote: ++ [[ -z '' ]] | |
remote: +++ get_app_image_repo shards | |
remote: +++ declare 'desc=central definition of image repo pattern' | |
remote: +++ local APP=shards | |
remote: +++ local IMAGE_REPO=dokku/shards | |
remote: +++ is_valid_app_name shards | |
remote: +++ declare 'desc=verify app name format' | |
remote: +++ local APP=shards | |
remote: +++ [[ -z shards ]] | |
remote: +++ [[ shards =~ ^[a-z].* ]] | |
remote: +++ [[ ! shards =~ [A-Z] ]] | |
remote: +++ [[ ! shards =~ [:] ]] | |
remote: +++ return 0 | |
remote: +++ echo dokku/shards | |
remote: ++ IMAGE_REPO=dokku/shards | |
remote: ++ [[ -z '' ]] | |
remote: ++ IMAGE_TAG=latest | |
remote: ++ local IMAGE=dokku/shards:latest | |
remote: ++ verify_image dokku/shards:latest | |
remote: ++ declare 'desc=verify image existence' | |
remote: ++ local IMAGE=dokku/shards:latest | |
remote: ++ docker inspect dokku/shards:latest | |
remote: ++ return 0 | |
remote: ++ echo dokku/shards:latest | |
remote: + IMAGE=dokku/shards:latest | |
remote: ++ cat | |
remote: + STDIN= | |
remote: + trigger='/var/lib/dokku/plugins/enabled/config/docker-args-deploy config_docker_args' | |
remote: + verify_app_name shards | |
remote: + declare 'desc=verify app name format and app existence' | |
remote: + local APP=shards | |
remote: + is_valid_app_name shards | |
remote: + declare 'desc=verify app name format' | |
remote: + local APP=shards | |
remote: + [[ -z shards ]] | |
remote: + [[ shards =~ ^[a-z].* ]] | |
remote: + [[ ! shards =~ [A-Z] ]] | |
remote: + [[ ! shards =~ [:] ]] | |
remote: + return 0 | |
remote: + [[ ! -d /home/dokku/shards ]] | |
remote: + return 0 | |
remote: + is_image_herokuish_based dokku/shards:latest | |
remote: + declare 'desc=returns true if app image is based on herokuish' | |
remote: + declare IMAGE=dokku/shards:latest | |
remote: + local USER_VALUE | |
remote: + [[ -z dokku/shards:latest ]] | |
remote: ++ docker inspect -f '{{range .Config.Env}}{{if eq . "USER=herokuishuser" }}{{println .}}{{end}}{{end}}' dokku/shards:latest | |
remote: + USER_VALUE= | |
remote: + [[ '' == '' ]] | |
remote: + return 1 | |
remote: ++ config_export app shards --format docker-args --merged | |
remote: ++ declare 'desc=returns export command for config variable of specified type (app/global)' | |
remote: ++ local CONFIG_TYPE=app | |
remote: ++ shift | |
remote: ++ local APP=shards | |
remote: ++ [[ app == \g\l\o\b\a\l ]] | |
remote: ++ shift | |
remote: ++ config_sub export --format docker-args --merged shards | |
remote: ++ declare 'desc=executes a config subcommand' | |
remote: ++ local name=export | |
remote: ++ shift | |
remote: ++ /var/lib/dokku/plugins/available/config/subcommands/export config:export --format docker-args --merged shards | |
remote: ++ return 0 | |
remote: + ENV_ARGS='--env=DATABASE_URL='\''mysql2://mysql:54de2f4cf18ab5fd@dokku-mysql-shardsdb:3306/shardsdb'\'' --env=DOKKU_APP_TYPE='\''dockerfile'\'' | |
--env=DOKKU_DOCKERFILE_PORTS='\''3000'\'' --env=DOKKU_PROXY_PORT='\''80'\'' --env=DOKKU_PROXY_PORT_MAP='\''http:3000:3000'\'' | |
--env=GIT_REV='\''4e918f5f49a85ffaf991fe87e1952a6e1473fe29'\'' --env=RACK_ENV='\''production'\'' --env=RAILS_ENV='\''production'\'' | |
--env=RAILS_SERVE_STATIC_FILES='\''true'\'' | |
--env=REDIS_URL='\''redis://shardsrd:80738cf6c4eb5851551ed3f76ce287aa3821b15f490287f5e544841452e2acee@dokku-redis-shardsrd:6379'\'' --env=SECRET_KEY_BASE=' | |
\''0448b7a2219f8630d06e76c969ac50542b92c84762dd966f91293145cb52bb599e564e372d2a060db618d1ac00ac41f4fb518575c37d0a8dca5c318c031b5be2'\''' | |
remote: + echo -n ' --env=DATABASE_URL='\''mysql2://mysql:54de2f4cf18ab5fd@dokku-mysql-shardsdb:3306/shardsdb'\'' --env=DOKKU_APP_TYPE='\''dockerfile'\'' | |
--env=DOKKU_DOCKERFILE_PORTS='\''3000'\'' --env=DOKKU_PROXY_PORT='\''80'\'' --env=DOKKU_PROXY_PORT_MAP='\''http:3000:3000'\'' | |
--env=GIT_REV='\''4e918f5f49a85ffaf991fe87e1952a6e1473fe29'\'' --env=RACK_ENV='\''production'\'' --env=RAILS_ENV='\''production'\'' | |
--env=RAILS_SERVE_STATIC_FILES='\''true'\'' | |
--env=REDIS_URL='\''redis://shardsrd:80738cf6c4eb5851551ed3f76ce287aa3821b15f490287f5e544841452e2acee@dokku-redis-shardsrd:6379'\'' --env=SECRET_KEY_BASE=' | |
\''0448b7a2219f8630d06e76c969ac50542b92c84762dd966f91293145cb52bb599e564e372d2a060db618d1ac00ac41f4fb518575c37d0a8dca5c318c031b5be2'\''' | |
remote: + docker_args shards '' web 1 | |
remote: + declare 'desc=docker args plugin trigger' | |
remote: + local trigger=/var/lib/dokku/plugins/enabled/docker-options/docker-args-deploy | |
remote: ++ cat | |
remote: + local STDIN= | |
remote: + local APP=shards | |
remote: + local IMAGE_SOURCE_TYPE= | |
remote: + case "$0" in | |
remote: + local PHASE=DEPLOY | |
remote: + local FILE_PREFIX=DOCKER_OPTIONS_ | |
remote: + local PHASE_FILE_PATH=/home/dokku/shards/DOCKER_OPTIONS_DEPLOY | |
remote: + local output= | |
remote: + [[ -f /home/dokku/shards/DOCKER_OPTIONS_DEPLOY ]] | |
remote: + local DONE=false | |
remote: + false | |
remote: + local line | |
remote: + read -r line | |
remote: + [[ -z --link dokku.mysql.shardsdb:dokku-mysql-shardsdb ]] | |
remote: + case "$line" in | |
remote: + case "$IMAGE_SOURCE_TYPE" in | |
remote: + local 'output= --link dokku.mysql.shardsdb:dokku-mysql-shardsdb' | |
remote: + false | |
remote: + local line | |
remote: + read -r line | |
remote: + [[ -z --link dokku.redis.shardsrd:dokku-redis-shardsrd ]] | |
remote: + case "$line" in | |
remote: + case "$IMAGE_SOURCE_TYPE" in | |
remote: + local 'output= --link dokku.mysql.shardsdb:dokku-mysql-shardsdb --link dokku.redis.shardsrd:dokku-redis-shardsrd' | |
remote: + false | |
remote: + local line | |
remote: + read -r line | |
remote: + [[ -z --restart=on-failure:10 ]] | |
remote: + case "$line" in | |
remote: + case "$IMAGE_SOURCE_TYPE" in | |
remote: + local 'output= --link dokku.mysql.shardsdb:dokku-mysql-shardsdb --link dokku.redis.shardsrd:dokku-redis-shardsrd --restart=on-failure:10' | |
remote: + false | |
remote: + local line | |
remote: + read -r line | |
remote: + local DONE=true | |
remote: + [[ -z '' ]] | |
remote: + continue | |
remote: + true | |
remote: + echo -n ' --link dokku.mysql.shardsdb:dokku-mysql-shardsdb --link dokku.redis.shardsrd:dokku-redis-shardsrd --restart=on-failure:10' | |
remote: + DOCKER_ARGS=' --env=DATABASE_URL='\''mysql2://mysql:54de2f4cf18ab5fd@dokku-mysql-shardsdb:3306/shardsdb'\'' | |
--env=DOKKU_APP_TYPE='\''dockerfile'\'' --env=DOKKU_DOCKERFILE_PORTS='\''3000'\'' --env=DOKKU_PROXY_PORT='\''80'\'' | |
--env=DOKKU_PROXY_PORT_MAP='\''http:3000:3000'\'' --env=GIT_REV='\''4e918f5f49a85ffaf991fe87e1952a6e1473fe29'\'' --env=RACK_ENV='\''production'\'' | |
--env=RAILS_ENV='\''production'\'' --env=RAILS_SERVE_STATIC_FILES='\''true'\'' | |
--env=REDIS_URL='\''redis://shardsrd:80738cf6c4eb5851551ed3f76ce287aa3821b15f490287f5e544841452e2acee@dokku-redis-shardsrd:6379'\'' --env=SECRET_KEY_BASE=' | |
\''0448b7a2219f8630d06e76c969ac50542b92c84762dd966f91293145cb52bb599e564e372d2a060db618d1ac00ac41f4fb518575c37d0a8dca5c318c031b5be2'\'' --link | |
dokku.mysql.shardsdb:dokku-mysql-shardsdb --link dokku.redis.shardsrd:dokku-redis-shardsrd --restart=on-failure:10' | |
remote: + DOCKER_ARGS+=' -e DYNO=web.1 ' | |
remote: ++ : | |
remote: ++ plugn trigger docker-args-process-deploy shards '' dockerfile web 1 | |
remote: + DOCKER_ARGS+= | |
remote: + [[ -n 1 ]] | |
remote: + DOCKER_ARGS+=' -e TRACE=true ' | |
remote: + declare -a ARG_ARRAY | |
remote: + eval 'ARG_ARRAY=( --env=DATABASE_URL='\''mysql2://mysql:54de2f4cf18ab5fd@dokku-mysql-shardsdb:3306/shardsdb'\'' | |
--env=DOKKU_APP_TYPE='\''dockerfile'\'' --env=DOKKU_DOCKERFILE_PORTS='\''3000'\'' --env=DOKKU_PROXY_PORT='\''80'\'' | |
--env=DOKKU_PROXY_PORT_MAP='\''http:3000:3000'\'' --env=GIT_REV='\''4e918f5f49a85ffaf991fe87e1952a6e1473fe29'\'' --env=RACK_ENV='\''production'\'' | |
--env=RAILS_ENV='\''production'\'' --env=RAILS_SERVE_STATIC_FILES='\''true'\'' | |
--env=REDIS_URL='\''redis://shardsrd:80738cf6c4eb5851551ed3f76ce287aa3821b15f490287f5e544841452e2acee@dokku-redis-shardsrd:6379'\'' --env=SECRET_KEY_BASE=' | |
\''0448b7a2219f8630d06e76c969ac50542b92c84762dd966f91293145cb52bb599e564e372d2a060db618d1ac00ac41f4fb518575c37d0a8dca5c318c031b5be2'\'' --link | |
dokku.mysql.shardsdb:dokku-mysql-shardsdb --link dokku.redis.shardsrd:dokku-redis-shardsrd --restart=on-failure:10 -e DYNO=web.1 -e TRACE=true )' | |
remote: ++ ARG_ARRAY=(--env=DATABASE_URL='mysql2://mysql:54de2f4cf18ab5fd@dokku-mysql-shardsdb:3306/shardsdb' --env=DOKKU_APP_TYPE='dockerfile' | |
--env=DOKKU_DOCKERFILE_PORTS='3000' --env=DOKKU_PROXY_PORT='80' --env=DOKKU_PROXY_PORT_MAP='http:3000:3000' | |
--env=GIT_REV='4e918f5f49a85ffaf991fe87e1952a6e1473fe29' --env=RACK_ENV='production' --env=RAILS_ENV='production' --env=RAILS_SERVE_STATIC_FILES='true' | |
--env=REDIS_URL='redis://shardsrd:80738cf6c4eb5851551ed3f76ce287aa3821b15f490287f5e544841452e2acee@dokku-redis-shardsrd:6379' | |
--env=SECRET_KEY_BASE='0448b7a2219f8630d06e76c969ac50542b92c84762dd966f91293145cb52bb599e564e372d2a060db618d1ac00ac41f4fb518575c37d0a8dca5c318c031b5be2' | |
--link dokku.mysql.shardsdb:dokku-mysql-shardsdb --link dokku.redis.shardsrd:dokku-redis-shardsrd --restart=on-failure:10 -e DYNO=web.1 -e TRACE=true) | |
remote: + local START_CMD | |
remote: + [[ false == \t\r\u\e ]] | |
remote: + [[ web == \w\e\b ]] | |
remote: + ports=($(plugn trigger network-compute-ports "$APP" "$PROC_TYPE" "$DOKKU_HEROKUISH")) | |
remote: ++ plugn trigger network-compute-ports shards web false | |
remote: + source /var/lib/dokku/core-plugins/available/common/functions | |
remote: ++ set -eo pipefail | |
remote: ++ [[ -n 1 ]] | |
remote: ++ set -x | |
remote: + [[ ! -n '' ]] | |
remote: + local DOKKU_DOCKER_PORT_ARGS= | |
remote: + local DOKKU_PORT= | |
remote: + for p in "${ports[@]}" | |
remote: + [[ ! 3000 =~ .*udp.* ]] | |
remote: + DOKKU_PORT=3000 | |
remote: + DOKKU_DOCKER_PORT_ARGS+=' -p 3000 ' | |
remote: ++ fn-scheduler-docker-local-extract-start-cmd shards web '' false 3000 | |
remote: ++ declare APP=shards PROC_TYPE=web START_CMD= DOKKU_HEROKUISH=false PORT=3000 | |
remote: ++ local DOKKU_DOCKERFILE_START_CMD DOKKU_PROCFILE_START_CMD START_CMD | |
remote: ++ [[ false != \f\a\l\s\e ]] | |
remote: +++ config_get shards DOKKU_DOCKERFILE_START_CMD | |
remote: +++ declare 'desc=get value of given config var' | |
remote: +++ config_sub get shards DOKKU_DOCKERFILE_START_CMD | |
remote: +++ declare 'desc=executes a config subcommand' | |
remote: +++ local name=get | |
remote: +++ shift | |
remote: +++ /var/lib/dokku/plugins/available/config/subcommands/get config:get shards DOKKU_DOCKERFILE_START_CMD | |
remote: +++ true | |
remote: ++ DOKKU_DOCKERFILE_START_CMD= | |
remote: +++ get_cmd_from_procfile shards web 3000 | |
remote: +++ declare 'desc=parse cmd from app Procfile' | |
remote: +++ declare APP=shards PROC_TYPE=web PORT=3000 | |
remote: +++ local DOKKU_PROCFILE=/home/dokku/shards/DOKKU_PROCFILE | |
remote: +++ local COMMAND | |
remote: +++ verify_app_name shards | |
remote: +++ declare 'desc=verify app name format and app existence' | |
remote: +++ local APP=shards | |
remote: +++ is_valid_app_name shards | |
remote: +++ declare 'desc=verify app name format' | |
remote: +++ local APP=shards | |
remote: +++ [[ -z shards ]] | |
remote: +++ [[ shards =~ ^[a-z].* ]] | |
remote: +++ [[ ! shards =~ [A-Z] ]] | |
remote: +++ [[ ! shards =~ [:] ]] | |
remote: +++ return 0 | |
remote: +++ [[ ! -d /home/dokku/shards ]] | |
remote: +++ return 0 | |
remote: +++ [[ ! -f /home/dokku/shards/DOKKU_PROCFILE ]] | |
remote: +++ return | |
remote: ++ DOKKU_PROCFILE_START_CMD= | |
remote: ++ START_CMD= | |
remote: ++ echo '' | |
remote: + START_CMD= | |
remote: + [[ false == \f\a\l\s\e ]] | |
remote: ++ docker run --label=dokku -d -e PORT=3000 --env=DATABASE_URL=mysql2://mysql:54de2f4cf18ab5fd@dokku-mysql-shardsdb:3306/shardsdb | |
--env=DOKKU_APP_TYPE=dockerfile --env=DOKKU_DOCKERFILE_PORTS=3000 --env=DOKKU_PROXY_PORT=80 --env=DOKKU_PROXY_PORT_MAP=http:3000:3000 | |
--env=GIT_REV=4e918f5f49a85ffaf991fe87e1952a6e1473fe29 --env=RACK_ENV=production --env=RAILS_ENV=production --env=RAILS_SERVE_STATIC_FILES=true | |
--env=REDIS_URL=redis://shardsrd:80738cf6c4eb5851551ed3f76ce287aa3821b15f490287f5e544841452e2acee@dokku-redis-shardsrd:6379 | |
--env=SECRET_KEY_BASE=0448b7a2219f8630d06e76c969ac50542b92c84762dd966f91293145cb52bb599e564e372d2a060db618d1ac00ac41f4fb518575c37d0a8dca5c318c031b5be2 | |
--link dokku.mysql.shardsdb:dokku-mysql-shardsdb --link dokku.redis.shardsrd:dokku-redis-shardsrd --restart=on-failure:10 -e DYNO=web.1 -e TRACE=true | |
dokku/shards:latest | |
remote: + cid=8ead9a7d1f98c687db122d40ea9a47113f1c8af646f601eb12c070a741c32ef9 | |
remote: ++ plugn trigger network-get-ipaddr shards web 8ead9a7d1f98c687db122d40ea9a47113f1c8af646f601eb12c070a741c32ef9 | |
remote: + source /var/lib/dokku/core-plugins/available/common/functions | |
remote: ++ set -eo pipefail | |
remote: ++ [[ -n 1 ]] | |
remote: ++ set -x | |
remote: + [[ ! -n '' ]] | |
remote: + ipaddr=172.17.0.4 | |
remote: ++ plugn trigger network-get-port shards web false 8ead9a7d1f98c687db122d40ea9a47113f1c8af646f601eb12c070a741c32ef9 | |
remote: + source /var/lib/dokku/core-plugins/available/common/functions | |
remote: ++ set -eo pipefail | |
remote: ++ [[ -n 1 ]] | |
remote: ++ set -x | |
remote: + [[ ! -n '' ]] | |
remote: + port=3000 | |
remote: + trap 'kill_new $cid $PROC_TYPE $CONTAINER_INDEX' INT TERM EXIT | |
remote: ++ is_app_proctype_checks_disabled shards web | |
remote: ++ declare 'desc=return true if app'\''s proctype(s) checks are disabled' | |
remote: ++ local APP=shards | |
remote: ++ verify_app_name shards | |
remote: ++ declare 'desc=verify app name format and app existence' | |
remote: ++ local APP=shards | |
remote: ++ is_valid_app_name shards | |
remote: ++ declare 'desc=verify app name format' | |
remote: ++ local APP=shards | |
remote: ++ [[ -z shards ]] | |
remote: ++ [[ shards =~ ^[a-z].* ]] | |
remote: ++ [[ ! shards =~ [A-Z] ]] | |
remote: ++ [[ ! shards =~ [:] ]] | |
remote: ++ return 0 | |
remote: ++ [[ ! -d /home/dokku/shards ]] | |
remote: ++ return 0 | |
remote: ++ local PROCTYPE=web status=false | |
remote: +++ config_get shards DOKKU_CHECKS_DISABLED | |
remote: +++ declare 'desc=get value of given config var' | |
remote: +++ config_sub get shards DOKKU_CHECKS_DISABLED | |
remote: +++ declare 'desc=executes a config subcommand' | |
remote: +++ local name=get | |
remote: +++ shift | |
remote: +++ /var/lib/dokku/plugins/available/config/subcommands/get config:get shards DOKKU_CHECKS_DISABLED | |
remote: +++ true | |
remote: ++ local DOKKU_CHECKS_DISABLED= | |
remote: ++ [[ '' == \_\a\l\l\_ ]] | |
remote: +++ is_val_in_list web '' | |
remote: +++ declare 'desc=return true if value (web) is in list () separated by delimiter (); delimiter defaults to comma' | |
remote: +++ local value=web list= delimiter=, | |
remote: +++ local IFS=, val_in_list=false | |
remote: +++ echo false | |
remote: ++ [[ false == \t\r\u\e ]] | |
remote: ++ echo false | |
remote: + [[ false == \f\a\l\s\e ]] | |
remote: + dokku_log_info1 'Attempting pre-flight checks' | |
remote: + declare 'desc=log info1 formatter' | |
remote: + echo '-----> Attempting pre-flight checks' | |
remote: [1G-----> Attempting pre-flight checks | |
remote: + plugn trigger check-deploy shards 8ead9a7d1f98c687db122d40ea9a47113f1c8af646f601eb12c070a741c32ef9 web 3000 172.17.0.4 | |
remote: + source /var/lib/dokku/core-plugins/available/common/functions | |
remote: ++ set -eo pipefail | |
remote: ++ [[ -n 1 ]] | |
remote: ++ set -x | |
remote: + [[ ! -n '' ]] | |
remote: + source /var/lib/dokku/core-plugins/available/common/functions | |
remote: ++ set -eo pipefail | |
remote: ++ [[ -n 1 ]] | |
remote: ++ set -x | |
remote: + source /var/lib/dokku/plugins/available/checks/functions | |
remote: ++ set -eo pipefail | |
remote: ++ [[ -n 1 ]] | |
remote: ++ set -x | |
remote: ++ source /var/lib/dokku/core-plugins/available/common/functions | |
remote: +++ set -eo pipefail | |
remote: +++ [[ -n 1 ]] | |
remote: +++ set -x | |
remote: ++ source /var/lib/dokku/plugins/available/config/functions | |
remote: +++ set -eo pipefail | |
remote: +++ [[ -n 1 ]] | |
remote: +++ set -x | |
remote: +++ source /var/lib/dokku/core-plugins/available/common/functions | |
remote: ++++ set -eo pipefail | |
remote: ++++ [[ -n 1 ]] | |
remote: ++++ set -x | |
remote: + source /var/lib/dokku/plugins/available/config/functions | |
remote: ++ set -eo pipefail | |
remote: ++ [[ -n 1 ]] | |
remote: ++ set -x | |
remote: ++ source /var/lib/dokku/core-plugins/available/common/functions | |
remote: +++ set -eo pipefail | |
remote: +++ [[ -n 1 ]] | |
remote: +++ set -x | |
remote: + scheduler-docker-local-check-deploy shards 8ead9a7d1f98c687db122d40ea9a47113f1c8af646f601eb12c070a741c32ef9 web 3000 172.17.0.4 | |
remote: + declare 'desc=scheduler-docker-local check-deploy plugin trigger' | |
remote: + local trigger=scheduler-docker-local-check-deploy | |
remote: + local APP=shards | |
remote: + local DOKKU_APP_CONTAINER_ID=8ead9a7d1f98c687db122d40ea9a47113f1c8af646f601eb12c070a741c32ef9 | |
remote: + local DOKKU_APP_CONTAINER_TYPE=web | |
remote: + local DOKKU_APP_LISTEN_PORT=3000 | |
remote: + local DOKKU_APP_LISTEN_IP=172.17.0.4 | |
remote: ++ get_app_scheduler shards | |
remote: ++ declare 'desc=fetch the scheduler for a given application' | |
remote: ++ declare APP=shards | |
remote: ++ local DOKKU_APP_SCHEDULER DOKKU_GLOBAL_SCHEDULER DOKKU_SCHEDULER | |
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 shards ]] | |
remote: +++ config_get shards DOKKU_SCHEDULER | |
remote: +++ declare 'desc=get value of given config var' | |
remote: +++ config_sub get shards 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 shards 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: + [[ docker-local != \d\o\c\k\e\r\-\l\o\c\a\l ]] | |
remote: + [[ -z 3000 ]] | |
remote: + [[ -z 172.17.0.4 ]] | |
remote: + [[ -z 8ead9a7d1f98c687db122d40ea9a47113f1c8af646f601eb12c070a741c32ef9 ]] | |
remote: ++ config_export global | |
remote: ++ declare 'desc=returns export command for config variable of specified type (app/global)' | |
remote: ++ local CONFIG_TYPE=global | |
remote: ++ shift | |
remote: ++ local APP= | |
remote: ++ [[ global == \g\l\o\b\a\l ]] | |
remote: ++ APP=--global | |
remote: ++ config_sub export --global | |
remote: ++ declare 'desc=executes a config subcommand' | |
remote: ++ local name=export | |
remote: ++ shift | |
remote: ++ /var/lib/dokku/plugins/available/config/subcommands/export config:export --global | |
remote: ++ return 0 | |
remote: + eval '' | |
remote: ++ config_export app shards | |
remote: ++ declare 'desc=returns export command for config variable of specified type (app/global)' | |
remote: ++ local CONFIG_TYPE=app | |
remote: ++ shift | |
remote: ++ local APP=shards | |
remote: ++ [[ app == \g\l\o\b\a\l ]] | |
remote: ++ shift | |
remote: ++ config_sub export shards | |
remote: ++ declare 'desc=executes a config subcommand' | |
remote: ++ local name=export | |
remote: ++ shift | |
remote: ++ /var/lib/dokku/plugins/available/config/subcommands/export config:export shards | |
remote: ++ return 0 | |
remote: + eval 'export DATABASE_URL='\''mysql2://mysql:54de2f4cf18ab5fd@dokku-mysql-shardsdb:3306/shardsdb'\'' | |
remote: export DOKKU_APP_TYPE='\''dockerfile'\'' | |
remote: export DOKKU_DOCKERFILE_PORTS='\''3000'\'' | |
remote: export DOKKU_PROXY_PORT='\''80'\'' | |
remote: export DOKKU_PROXY_PORT_MAP='\''http:3000:3000'\'' | |
remote: export GIT_REV='\''4e918f5f49a85ffaf991fe87e1952a6e1473fe29'\'' | |
remote: export RACK_ENV='\''production'\'' | |
remote: export RAILS_ENV='\''production'\'' | |
remote: export RAILS_SERVE_STATIC_FILES='\''true'\'' | |
remote: export REDIS_URL='\''redis://shardsrd:80738cf6c4eb5851551ed3f76ce287aa3821b15f490287f5e544841452e2acee@dokku-redis-shardsrd:6379'\'' | |
remote: export | |
SECRET_KEY_BASE='\''0448b7a2219f8630d06e76c969ac50542b92c84762dd966f91293145cb52bb599e564e372d2a060db618d1ac00ac41f4fb518575c37d0a8dca5c318c031b5be2'\''' | |
remote: ++ export DATABASE_URL=mysql2://mysql:54de2f4cf18ab5fd@dokku-mysql-shardsdb:3306/shardsdb | |
remote: ++ DATABASE_URL=mysql2://mysql:54de2f4cf18ab5fd@dokku-mysql-shardsdb:3306/shardsdb | |
remote: ++ export DOKKU_APP_TYPE=dockerfile | |
remote: ++ DOKKU_APP_TYPE=dockerfile | |
remote: ++ export DOKKU_DOCKERFILE_PORTS=3000 | |
remote: ++ DOKKU_DOCKERFILE_PORTS=3000 | |
remote: ++ export DOKKU_PROXY_PORT=80 | |
remote: ++ DOKKU_PROXY_PORT=80 | |
remote: ++ export DOKKU_PROXY_PORT_MAP=http:3000:3000 | |
remote: ++ DOKKU_PROXY_PORT_MAP=http:3000:3000 | |
remote: ++ export GIT_REV=4e918f5f49a85ffaf991fe87e1952a6e1473fe29 | |
remote: ++ GIT_REV=4e918f5f49a85ffaf991fe87e1952a6e1473fe29 | |
remote: ++ export RACK_ENV=production | |
remote: ++ RACK_ENV=production | |
remote: ++ export RAILS_ENV=production | |
remote: ++ RAILS_ENV=production | |
remote: ++ export RAILS_SERVE_STATIC_FILES=true | |
remote: ++ RAILS_SERVE_STATIC_FILES=true | |
remote: ++ export REDIS_URL=redis://shardsrd:80738cf6c4eb5851551ed3f76ce287aa3821b15f490287f5e544841452e2acee@dokku-redis-shardsrd:6379 | |
remote: ++ REDIS_URL=redis://shardsrd:80738cf6c4eb5851551ed3f76ce287aa3821b15f490287f5e544841452e2acee@dokku-redis-shardsrd:6379 | |
remote: ++ export | |
SECRET_KEY_BASE=0448b7a2219f8630d06e76c969ac50542b92c84762dd966f91293145cb52bb599e564e372d2a060db618d1ac00ac41f4fb518575c37d0a8dca5c318c031b5be2 | |
remote: ++ | |
SECRET_KEY_BASE=0448b7a2219f8630d06e76c969ac50542b92c84762dd966f91293145cb52bb599e564e372d2a060db618d1ac00ac41f4fb518575c37d0a8dca5c318c031b5be2 | |
remote: ++ is_app_proctype_checks_skipped shards web | |
remote: ++ declare 'desc=return true if app'\''s proctype(s) checks are skipped' | |
remote: ++ local APP=shards | |
remote: ++ verify_app_name shards | |
remote: ++ declare 'desc=verify app name format and app existence' | |
remote: ++ local APP=shards | |
remote: ++ is_valid_app_name shards | |
remote: ++ declare 'desc=verify app name format' | |
remote: ++ local APP=shards | |
remote: ++ [[ -z shards ]] | |
remote: ++ [[ shards =~ ^[a-z].* ]] | |
remote: ++ [[ ! shards =~ [A-Z] ]] | |
remote: ++ [[ ! shards =~ [:] ]] | |
remote: ++ return 0 | |
remote: ++ [[ ! -d /home/dokku/shards ]] | |
remote: ++ return 0 | |
remote: ++ local PROCTYPE=web status=false | |
remote: +++ config_get shards DOKKU_CHECKS_SKIPPED | |
remote: +++ declare 'desc=get value of given config var' | |
remote: +++ config_sub get shards DOKKU_CHECKS_SKIPPED | |
remote: +++ declare 'desc=executes a config subcommand' | |
remote: +++ local name=get | |
remote: +++ shift | |
remote: +++ /var/lib/dokku/plugins/available/config/subcommands/get config:get shards DOKKU_CHECKS_SKIPPED | |
remote: +++ true | |
remote: ++ local DOKKU_CHECKS_SKIPPED= | |
remote: ++ [[ '' == \_\a\l\l\_ ]] | |
remote: +++ is_val_in_list web '' | |
remote: +++ declare 'desc=return true if value (web) is in list () separated by delimiter (); delimiter defaults to comma' | |
remote: +++ local value=web list= delimiter=, | |
remote: +++ local IFS=, val_in_list=false | |
remote: +++ echo false | |
remote: ++ [[ false == \t\r\u\e ]] | |
remote: ++ echo false | |
remote: + [[ false == \t\r\u\e ]] | |
remote: + local WAIT=5 | |
remote: + local TIMEOUT=30 | |
remote: + local ATTEMPTS=5 | |
remote: ++ mktemp -d /tmp/dokku_CHECKS.XXXXX | |
remote: + local CHECK_DEPLOY_TMP_WORK_DIR=/tmp/dokku_CHECKS.mkJRz | |
remote: + docker cp 8ead9a7d1f98c687db122d40ea9a47113f1c8af646f601eb12c070a741c32ef9:/app/CHECKS /tmp/dokku_CHECKS.mkJRz | |
remote: + true | |
remote: + local FILENAME=/tmp/dokku_CHECKS.mkJRz/CHECKS | |
remote: + trap 'checks_check_deploy_cleanup $DOKKU_APP_CONTAINER_ID' RETURN INT TERM EXIT | |
remote: + [[ ! -s /tmp/dokku_CHECKS.mkJRz/CHECKS ]] | |
remote: + [[ web == \w\e\b ]] | |
remote: + dokku_log_verbose 'For more efficient zero downtime deployments, create a file CHECKS.' | |
remote: + declare 'desc=log verbose formatter' | |
remote: + echo ' For more efficient zero downtime deployments, create a file CHECKS.' | |
remote: + dokku_log_verbose 'See http://dokku.viewdocs.io/dokku/deployment/zero-downtime-deploys/ for examples' | |
remote: [1G For more efficient zero downtime deployments, create a file CHECKS. | |
remote: + declare 'desc=log verbose formatter' | |
remote: + echo ' See http://dokku.viewdocs.io/dokku/deployment/zero-downtime-deploys/ for examples' | |
remote: + dokku_log_verbose 'CHECKS file not found in container: Running simple container check...' | |
remote: + declare 'desc=log verbose formatter' | |
remote: + echo ' CHECKS file not found in container: Running simple container check...' | |
remote: + rm -rf /tmp/dokku_CHECKS.mkJRz | |
remote: [1G See http://dokku.viewdocs.io/dokku/deployment/zero-downtime-deploys/ for examples | |
remote: [1G CHECKS file not found in container: Running simple container check... | |
remote: + local DOKKU_DEFAULT_CHECKS_WAIT=10 | |
remote: + dokku_log_info1 'Waiting for 10 seconds ...' | |
remote: + declare 'desc=log info1 formatter' | |
remote: + echo '-----> Waiting for 10 seconds ...' | |
remote: + sleep 10 | |
remote: [1G-----> Waiting for 10 seconds ... | |
remote: + is_container_status 8ead9a7d1f98c687db122d40ea9a47113f1c8af646f601eb12c070a741c32ef9 Running | |
remote: + declare 'desc=return 0 if given docker container id is in given state' | |
remote: + local CID=8ead9a7d1f98c687db122d40ea9a47113f1c8af646f601eb12c070a741c32ef9 | |
remote: + local 'TEMPLATE={{.State.Running}}' | |
remote: ++ docker inspect -f '{{.State.Running}}' 8ead9a7d1f98c687db122d40ea9a47113f1c8af646f601eb12c070a741c32ef9 | |
remote: + local CONTAINER_STATUS=false | |
remote: + [[ false == \t\r\u\e ]] | |
remote: + return 1 | |
remote: + dokku_log_fail 'App container failed to start!!' | |
remote: + declare 'desc=log fail formatter' | |
remote: + echo 'App container failed to start!!' | |
remote: App container failed to start!! | |
remote: + exit 1 | |
remote: + checks_check_deploy_cleanup 8ead9a7d1f98c687db122d40ea9a47113f1c8af646f601eb12c070a741c32ef9 | |
remote: + declare 'desc=cleans up CHECK_DEPLOY_TMP_WORK_DIR and print container output' | |
remote: + local id=8ead9a7d1f98c687db122d40ea9a47113f1c8af646f601eb12c070a741c32ef9 | |
remote: + rm -rf /tmp/dokku_CHECKS.mkJRz | |
remote: + [[ -n 8ead9a7d1f98c687db122d40ea9a47113f1c8af646f601eb12c070a741c32ef9 ]] | |
remote: + dokku_log_info2_quiet 'shards web container output:' | |
remote: + declare 'desc=log info2 formatter (with quiet option)' | |
remote: + [[ -z '' ]] | |
remote: + echo '=====> shards web container output:' | |
remote: + dokku_container_log_verbose_quiet 8ead9a7d1f98c687db122d40ea9a47113f1c8af646f601eb12c070a741c32ef9 | |
remote: + declare 'desc=log verbose container output (with quiet option)' | |
remote: + local CID=8ead9a7d1f98c687db122d40ea9a47113f1c8af646f601eb12c070a741c32ef9 | |
remote: + shift | |
remote: + OIFS=' | |
remote: ' | |
remote: + IFS=' | |
remote: ' | |
remote: + local line | |
remote: [1G=====> shards web container output: | |
remote: ++ docker logs 8ead9a7d1f98c687db122d40ea9a47113f1c8af646f601eb12c070a741c32ef9 | |
remote: + for line in $(docker logs "$CID" 2>&1) | |
remote: + dokku_log_verbose_quiet 'Switch to inspect mode.' | |
remote: + declare 'desc=log verbose formatter (with quiet option)' | |
remote: + [[ -z '' ]] | |
remote: + echo ' Switch to inspect mode.' | |
remote: + IFS=' | |
remote: ' | |
remote: + dokku_log_info2_quiet 'end shards web container output' | |
remote: + declare 'desc=log info2 formatter (with quiet option)' | |
remote: + [[ -z '' ]] | |
remote: + echo '=====> end shards web container output' | |
remote: [1G Switch to inspect mode. | |
remote: [1G=====> end shards web container output | |
remote: + kill_new 8ead9a7d1f98c687db122d40ea9a47113f1c8af646f601eb12c070a741c32ef9 web 1 | |
remote: + declare 'desc=wrapper function to kill newly started app container' | |
remote: + declare CID=8ead9a7d1f98c687db122d40ea9a47113f1c8af646f601eb12c070a741c32ef9 PROC_TYPE=web CONTAINER_INDEX=1 | |
remote: + mkdir -p /var/lib/dokku/data/scheduler-docker-local/shards | |
remote: + echo '8ead9a7d1f98c687db122d40ea9a47113f1c8af646f601eb12c070a741c32ef9 web.1' | |
remote: + docker inspect 8ead9a7d1f98c687db122d40ea9a47113f1c8af646f601eb12c070a741c32ef9 | |
remote: + docker container update --restart=no 8ead9a7d1f98c687db122d40ea9a47113f1c8af646f601eb12c070a741c32ef9 | |
remote: + docker stop 8ead9a7d1f98c687db122d40ea9a47113f1c8af646f601eb12c070a741c32ef9 | |
remote: + docker kill 8ead9a7d1f98c687db122d40ea9a47113f1c8af646f601eb12c070a741c32ef9 | |
remote: + rm -rf '' | |
remote: + exit_code=1 | |
remote: + set -e | |
remote: + [[ 1 -eq 10 ]] | |
remote: + implemented=1 | |
remote: + [[ 1 -ne 0 ]] | |
remote: + exit 1 | |
+ 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 ''\''shards'\''' | |
+ 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 ''\''shards'\''' | |
+ exit_code=10 | |
+ set -e | |
+ [[ 10 -eq 10 ]] | |
+ continue | |
+ for script in $PLUGIN_ENABLED_PATH/*/commands | |
+ set +e | |
+ /var/lib/dokku/plugins/enabled/mysql/commands git-receive-pack ''\''shards'\''' | |
+ 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 ''\''shards'\''' | |
+ 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 ''\''shards'\''' | |
+ 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 ''\''shards'\''' | |
+ 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 ''\''shards'\''' | |
+ 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 ''\''shards'\''' | |
+ 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 ''\''shards'\''' | |
+ 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 ''\''shards'\''' | |
+ exit_code=10 | |
+ s | |
et -e | |
+ [[ 10 -eq 10 ]] | |
+ continue | |
+ for script in $PLUGIN_ENABLED_PATH/*/commands | |
+ set +e | |
+ /var/lib/dokku/plugins/enabled/resource/commands git-receive-pack ''\''shards'\''' | |
+ 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 ''\''shards'\''' | |
+ 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-rece | |
ive-pack ''\''shards'\''' | |
+ 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 ''\''shards'\''' | |
+ 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 ''\''shards'\''' | |
+ 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 ''\''shards'\''' | |
+ exit_cod | |
e=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 ''\''shards'\''' | |
+ exit_code=10 | |
+ set -e | |
+ [[ 10 -eq 10 ]] | |
+ continue | |
+ [[ 1 -eq 0 ]] | |
+ set +f | |
+ exit 0 | |
To ghast-dokku:shards | |
! [remote rejected] HEAD -> master (pre-receive hook declined) | |
error: failed to push some refs to 'dokku@ghast-dokku:shards' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment