Skip to content

Instantly share code, notes, and snippets.

@gustavorps
Last active March 17, 2021 14:24
Show Gist options
  • Save gustavorps/900b84af034e7a67e5117f221c7393eb to your computer and use it in GitHub Desktop.
Save gustavorps/900b84af034e7a67e5117f221c7393eb to your computer and use it in GitHub Desktop.

#4472: Not able to build an application using an Dockerfile with multiple --build-arg

+ export DOKKU_HOST_ROOT=/home/dokku
+ DOKKU_HOST_ROOT=/home/dokku
+ export DOKKU_DISTRO
++ . /etc/os-release
++ echo ubuntu
+ DOKKU_DISTRO=ubuntu
+ export DOCKER_BIN=docker
+ DOCKER_BIN=docker
+ export DOKKU_IMAGE=gliderlabs/herokuish:latest
+ DOKKU_IMAGE=gliderlabs/herokuish:latest
+ export DOKKU_CNB_BUILDER=heroku/buildpacks
+ DOKKU_CNB_BUILDER=heroku/buildpacks
+ export DOKKU_LIB_ROOT=/var/lib/dokku
+ DOKKU_LIB_ROOT=/var/lib/dokku
+ export PLUGIN_PATH=/var/lib/dokku/plugins
+ PLUGIN_PATH=/var/lib/dokku/plugins
+ export PLUGIN_AVAILABLE_PATH=/var/lib/dokku/plugins/available
+ PLUGIN_AVAILABLE_PATH=/var/lib/dokku/plugins/available
+ export PLUGIN_ENABLED_PATH=/var/lib/dokku/plugins/enabled
+ PLUGIN_ENABLED_PATH=/var/lib/dokku/plugins/enabled
+ export PLUGIN_CORE_PATH=/var/lib/dokku/core-plugins
+ PLUGIN_CORE_PATH=/var/lib/dokku/core-plugins
+ export PLUGIN_CORE_AVAILABLE_PATH=/var/lib/dokku/core-plugins/available
+ PLUGIN_CORE_AVAILABLE_PATH=/var/lib/dokku/core-plugins/available
+ export PLUGIN_CORE_ENABLED_PATH=/var/lib/dokku/core-plugins/enabled
+ PLUGIN_CORE_ENABLED_PATH=/var/lib/dokku/core-plugins/enabled
+ export DOKKU_SYSTEM_GROUP=dokku
+ DOKKU_SYSTEM_GROUP=dokku
+ export DOKKU_SYSTEM_USER=dokku
+ DOKKU_SYSTEM_USER=dokku
+ export DOKKU_API_VERSION=1
+ DOKKU_API_VERSION=1
+ export DOKKU_NOT_IMPLEMENTED_EXIT=10
+ DOKKU_NOT_IMPLEMENTED_EXIT=10
+ export DOKKU_VALID_EXIT=0
+ DOKKU_VALID_EXIT=0
+ export DOKKU_PID=3277827
+ DOKKU_PID=3277827
+ export DOKKU_LOGS_DIR=/var/log/dokku
+ DOKKU_LOGS_DIR=/var/log/dokku
+ export DOKKU_LOGS_HOST_DIR=/var/log/dokku
+ DOKKU_LOGS_HOST_DIR=/var/log/dokku
+ export DOKKU_EVENTS_LOGFILE=/var/log/dokku/events.log
+ DOKKU_EVENTS_LOGFILE=/var/log/dokku/events.log
+ export DOKKU_CONTAINER_LABEL=dokku
+ DOKKU_CONTAINER_LABEL=dokku
+ export 'DOKKU_GLOBAL_BUILD_ARGS=--label=org.label-schema.schema-version=1.0 --label=org.label-schema.vendor=dokku --label=dokku'
+ DOKKU_GLOBAL_BUILD_ARGS='--label=org.label-schema.schema-version=1.0 --label=org.label-schema.vendor=dokku --label=dokku'
+ export 'DOKKU_GLOBAL_RUN_ARGS=--label=org.label-schema.schema-version=1.0 --label=org.label-schema.vendor=dokku --label=dokku'
+ DOKKU_GLOBAL_RUN_ARGS='--label=org.label-schema.schema-version=1.0 --label=org.label-schema.vendor=dokku --label=dokku'
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ parse_args git-receive-pack ''\''app'\'''
+ declare 'desc=top-level cli arg parser'
+ local next_index=1
+ local skip=false
+ args=("$@")
+ local args
+ local flags
+ for arg in "$@"
+ [[ false == \t\r\u\e ]]
+ case "$arg" in
+ [[ false == \t\r\u\e ]]
+ [[ git-receive-pack == \-\-\a\p\p ]]
+ [[ git-receive-pack =~ ^--.* ]]
+ next_index=2
+ for arg in "$@"
+ [[ false == \t\r\u\e ]]
+ case "$arg" in
+ [[ false == \t\r\u\e ]]
+ [[ 'app' == \-\-\a\p\p ]]
+ [[ 'app' =~ ^--.* ]]
+ next_index=3
+ [[ -z '' ]]
++ sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//'
++ echo -e ''
+ export DOKKU_GLOBAL_FLAGS=
+ DOKKU_GLOBAL_FLAGS=
+ return 0
+ args=("$@")
+ skip_arg=false
+ [[ git-receive-pack =~ ^--.* ]]
+ has_tty
+ declare 'desc=return 0 if we have a tty'
++ LC_ALL=C
++ /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 ]]
+ [[ git-receive-pack == \s\s\h\-\k\e\y\s\:\r\e\m\o\v\e ]]
+ [[ -n git-receive-pack 'app' ]]
+ export -n SSH_ORIGINAL_COMMAND
+ [[ git-receive-pack =~ config-* ]]
+ [[ git-receive-pack =~ docker-options* ]]
+ set -f
+ /usr/bin/dokku git-receive-pack ''\''app'\'''
+ export DOKKU_HOST_ROOT=/home/dokku
+ DOKKU_HOST_ROOT=/home/dokku
+ export DOKKU_DISTRO
++ . /etc/os-release
++ echo ubuntu
+ DOKKU_DISTRO=ubuntu
+ export DOCKER_BIN=docker
+ DOCKER_BIN=docker
+ export DOKKU_IMAGE=gliderlabs/herokuish:latest
+ DOKKU_IMAGE=gliderlabs/herokuish:latest
+ export DOKKU_CNB_BUILDER=heroku/buildpacks
+ DOKKU_CNB_BUILDER=heroku/buildpacks
+ export DOKKU_LIB_ROOT=/var/lib/dokku
+ DOKKU_LIB_ROOT=/var/lib/dokku
+ export PLUGIN_PATH=/var/lib/dokku/plugins
+ PLUGIN_PATH=/var/lib/dokku/plugins
+ export PLUGIN_AVAILABLE_PATH=/var/lib/dokku/plugins/available
+ PLUGIN_AVAILABLE_PATH=/var/lib/dokku/plugins/available
+ export PLUGIN_ENABLED_PATH=/var/lib/dokku/plugins/enabled
+ PLUGIN_ENABLED_PATH=/var/lib/dokku/plugins/enabled
+ export PLUGIN_CORE_PATH=/var/lib/dokku/core-plugins
+ PLUGIN_CORE_PATH=/var/lib/dokku/core-plugins
+ export PLUGIN_CORE_AVAILABLE_PATH=/var/lib/dokku/core-plugins/available
+ PLUGIN_CORE_AVAILABLE_PATH=/var/lib/dokku/core-plugins/available
+ export PLUGIN_CORE_ENABLED_PATH=/var/lib/dokku/core-plugins/enabled
+ PLUGIN_CORE_ENABLED_PATH=/var/lib/dokku/core-plugins/enabled
+ export DOKKU_SYSTEM_GROUP=dokku
+ DOKKU_SYSTEM_GROUP=dokku
+ export DOKKU_SYSTEM_USER=dokku
+ DOKKU_SYSTEM_USER=dokku
+ export DOKKU_API_VERSION=1
+ DOKKU_API_VERSION=1
+ export DOKKU_NOT_IMPLEMENTED_EXIT=10
+ DOKKU_NOT_IMPLEMENTED_EXIT=10
+ export DOKKU_VALID_EXIT=0
+ DOKKU_VALID_EXIT=0
+ export DOKKU_PID=3277836
+ DOKKU_PID=3277836
+ export DOKKU_LOGS_DIR=/var/log/dokku
+ DOKKU_LOGS_DIR=/var/log/dokku
+ export DOKKU_LOGS_HOST_DIR=/var/log/dokku
+ DOKKU_LOGS_HOST_DIR=/var/log/dokku
+ export DOKKU_EVENTS_LOGFILE=/var/log/dokku/events.log
+ DOKKU_EVENTS_LOGFILE=/var/log/dokku/events.log
+ export DOKKU_CONTAINER_LABEL=dokku
+ DOKKU_CONTAINER_LABEL=dokku
+ export 'DOKKU_GLOBAL_BUILD_ARGS=--label=org.label-schema.schema-version=1.0 --label=org.label-schema.vendor=dokku --label=dokku'
+ DOKKU_GLOBAL_BUILD_ARGS='--label=org.label-schema.schema-version=1.0 --label=org.label-schema.vendor=dokku --label=dokku'
+ export 'DOKKU_GLOBAL_RUN_ARGS=--label=org.label-schema.schema-version=1.0 --label=org.label-schema.vendor=dokku --label=dokku'
+ DOKKU_GLOBAL_RUN_ARGS='--label=org.label-schema.schema-version=1.0 --label=org.label-schema.vendor=dokku --label=dokku'
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ parse_args git-receive-pack ''\''app'\'''
+ declare 'desc=top-level cli arg parser'
+ local next_index=1
+ local skip=false
+ args=("$@")
+ local args
+ local flags
+ for arg in "$@"
+ [[ false == \t\r\u\e ]]
+ case "$arg" in
+ [[ false == \t\r\u\e ]]
+ [[ git-receive-pack == \-\-\a\p\p ]]
+ [[ git-receive-pack =~ ^--.* ]]
+ next_index=2
+ for arg in "$@"
+ [[ false == \t\r\u\e ]]
+ case "$arg" in
+ [[ false == \t\r\u\e ]]
+ [[ 'app' == \-\-\a\p\p ]]
+ [[ 'app' =~ ^--.* ]]
+ next_index=3
+ [[ -z '' ]]
++ sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//'
++ echo -e ''
+ export DOKKU_GLOBAL_FLAGS=
+ DOKKU_GLOBAL_FLAGS=
+ return 0
+ args=("$@")
+ skip_arg=false
+ [[ git-receive-pack =~ ^--.* ]]
+ has_tty
+ declare 'desc=return 0 if we have a tty'
++ LC_ALL=C
++ /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 ]]
+ [[ git-receive-pack == \s\s\h\-\k\e\y\s\:\r\e\m\o\v\e ]]
+ [[ -n '' ]]
+ dokku_auth git-receive-pack ''\''app'\'''
+ declare 'desc=calls user-auth plugin trigger'
+ export SSH_USER=dokku
+ SSH_USER=dokku
+ export SSH_NAME=GUSTAVO
+ SSH_NAME=GUSTAVO
++ wc -l
++ find /var/lib/dokku/plugins/enabled/20_events/user-auth
+ [[ 1 == 1 ]]
+ return 0
+ case "$1" in
+ execute_dokku_cmd git-receive-pack ''\''app'\'''
+ 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 ''\''app'\'''
+ 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 ''\''app'\'''
+ 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 ''\''app'\'''
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in $PLUGIN_ENABLED_PATH/*/commands
+ set +e
+ /var/lib/dokku/plugins/enabled/builder/commands git-receive-pack ''\''app'\'''
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in $PLUGIN_ENABLED_PATH/*/commands
+ set +e
+ /var/lib/dokku/plugins/enabled/buildpacks/commands git-receive-pack ''\''app'\'''
+ 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 ''\''app'\'''
+ 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 ''\''app'\'''
+ 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 ''\''app'\'''
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in $PLUGIN_ENABLED_PATH/*/commands
+ set +e
+ /var/lib/dokku/plugins/enabled/cron/commands git-receive-pack ''\''app'\'''
+ 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 ''\''app'\'''
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in $PLUGIN_ENABLED_PATH/*/commands
+ set +e
+ /var/lib/dokku/plugins/enabled/domains/commands git-receive-pack ''\''app'\'''
+ 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 ''\''app'\'''
+ 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 ''\''app'\'''
+ source /var/lib/dokku/plugins/available/git/functions
++ source /var/lib/dokku/core-plugins/available/common/functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
++ source /var/lib/dokku/core-plugins/available/common/property-functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
++ source /var/lib/dokku/plugins/available/apps/functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
+++ source /var/lib/dokku/core-plugins/available/common/functions
++++ set -eo pipefail
++++ [[ -n 1 ]]
++++ set -x
+++ source /var/lib/dokku/plugins/available/config/functions
++++ set -eo pipefail
++++ [[ -n 1 ]]
++++ set -x
++++ source /var/lib/dokku/core-plugins/available/common/functions
+++++ set -eo pipefail
+++++ [[ -n 1 ]]
+++++ set -x
++ source /var/lib/dokku/plugins/available/config/functions
+++ set -eo pipefail
+++ [[ -n 1 ]]
+++ set -x
+++ source /var/lib/dokku/core-plugins/available/common/functions
++++ set -eo pipefail
++++ [[ -n 1 ]]
++++ set -x
++ 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
++ 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
+ source /var/lib/dokku/plugins/available/git/help-functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ case "$1" in
+ cmd-git-glob git-receive-pack ''\''app'\'''
+ declare 'desc=catch-all for any other git-* commands'
+ declare 'cmd=git-*'
++ sed 's/^\///g'
++ sed 's/\\'\''/'\''/g'
++ perl -pe 's/(?<!\\)'\''//g'
++ echo ''\''app'\'''
+ local APP=app
+ local APP_PATH=/home/dokku/app
+ plugn trigger app-exists app
+ [[ git-receive-pack == \g\i\t\-\r\e\c\e\i\v\e\-\p\a\c\k ]]
+ [[ ! -d /home/dokku/app/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/app'\'''
+ git-shell -c 'git-receive-pack '\''/home/dokku/app'\'''
remote: + export DOKKU_HOST_ROOT=/home/dokku
remote: + DOKKU_HOST_ROOT=/home/dokku
remote: + export DOKKU_DISTRO
remote: ++ . /etc/os-release
remote: ++ echo ubuntu
remote: + DOKKU_DISTRO=ubuntu
remote: + export DOCKER_BIN=docker
remote: + DOCKER_BIN=docker
remote: + export DOKKU_IMAGE=gliderlabs/herokuish:latest
remote: + DOKKU_IMAGE=gliderlabs/herokuish:latest
remote: + export DOKKU_CNB_BUILDER=heroku/buildpacks
remote: + DOKKU_CNB_BUILDER=heroku/buildpacks
remote: + export DOKKU_LIB_ROOT=/var/lib/dokku
remote: + DOKKU_LIB_ROOT=/var/lib/dokku
remote: + export PLUGIN_PATH=/var/lib/dokku/plugins
remote: + PLUGIN_PATH=/var/lib/dokku/plugins
remote: + export PLUGIN_AVAILABLE_PATH=/var/lib/dokku/plugins/available
remote: + PLUGIN_AVAILABLE_PATH=/var/lib/dokku/plugins/available
remote: + export PLUGIN_ENABLED_PATH=/var/lib/dokku/plugins/enabled
remote: + PLUGIN_ENABLED_PATH=/var/lib/dokku/plugins/enabled
remote: + export PLUGIN_CORE_PATH=/var/lib/dokku/core-plugins
remote: + PLUGIN_CORE_PATH=/var/lib/dokku/core-plugins
remote: + export PLUGIN_CORE_AVAILABLE_PATH=/var/lib/dokku/core-plugins/available
remote: + PLUGIN_CORE_AVAILABLE_PATH=/var/lib/dokku/core-plugins/available
remote: + export PLUGIN_CORE_ENABLED_PATH=/var/lib/dokku/core-plugins/enabled
remote: + PLUGIN_CORE_ENABLED_PATH=/var/lib/dokku/core-plugins/enabled
remote: + export DOKKU_SYSTEM_GROUP=dokku
remote: + DOKKU_SYSTEM_GROUP=dokku
remote: + export DOKKU_SYSTEM_USER=dokku
remote: + DOKKU_SYSTEM_USER=dokku
remote: + export DOKKU_API_VERSION=1
remote: + DOKKU_API_VERSION=1
remote: + export DOKKU_NOT_IMPLEMENTED_EXIT=10
remote: + DOKKU_NOT_IMPLEMENTED_EXIT=10
remote: + export DOKKU_VALID_EXIT=0
remote: + DOKKU_VALID_EXIT=0
remote: + export DOKKU_PID=3278239
remote: + DOKKU_PID=3278239
remote: + export DOKKU_LOGS_DIR=/var/log/dokku
remote: + DOKKU_LOGS_DIR=/var/log/dokku
remote: + export DOKKU_LOGS_HOST_DIR=/var/log/dokku
remote: + DOKKU_LOGS_HOST_DIR=/var/log/dokku
remote: + export DOKKU_EVENTS_LOGFILE=/var/log/dokku/events.log
remote: + DOKKU_EVENTS_LOGFILE=/var/log/dokku/events.log
remote: + export DOKKU_CONTAINER_LABEL=dokku
remote: + DOKKU_CONTAINER_LABEL=dokku
remote: + export 'DOKKU_GLOBAL_BUILD_ARGS=--label=org.label-schema.schema-version=1.0 --label=org.label-schema.vendor=dokku --label=dokku'
remote: + DOKKU_GLOBAL_BUILD_ARGS='--label=org.label-schema.schema-version=1.0 --label=org.label-schema.vendor=dokku --label=dokku'
remote: + export 'DOKKU_GLOBAL_RUN_ARGS=--label=org.label-schema.schema-version=1.0 --label=org.label-schema.vendor=dokku --label=dokku'
remote: + DOKKU_GLOBAL_RUN_ARGS='--label=org.label-schema.schema-version=1.0 --label=org.label-schema.vendor=dokku --label=dokku'
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + parse_args git-hook app
remote: + declare 'desc=top-level cli arg parser'
remote: + local next_index=1
remote: + local skip=false
remote: + args=("$@")
remote: + local args
remote: + local flags
remote: + for arg in "$@"
remote: + [[ false == \t\r\u\e ]]
remote: + case "$arg" in
remote: + [[ false == \t\r\u\e ]]
remote: + [[ git-hook == \-\-\a\p\p ]]
remote: + [[ git-hook =~ ^--.* ]]
remote: + next_index=2
remote: + for arg in "$@"
remote: + [[ false == \t\r\u\e ]]
remote: + case "$arg" in
remote: + [[ false == \t\r\u\e ]]
remote: + [[ app == \-\-\a\p\p ]]
remote: + [[ app =~ ^--.* ]]
remote: + next_index=3
remote: + [[ -z '' ]]
remote: ++ sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//'
remote: ++ echo -e ''
remote: + export DOKKU_GLOBAL_FLAGS=
remote: + DOKKU_GLOBAL_FLAGS=
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: ++ LC_ALL=C
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: + [[ git-hook == \s\s\h\-\k\e\y\s\:\r\e\m\o\v\e ]]
remote: + [[ -n '' ]]
remote: + dokku_auth git-hook app
remote: + declare 'desc=calls user-auth plugin trigger'
remote: + export SSH_USER=dokku
remote: + SSH_USER=dokku
remote: + export SSH_NAME=GUSTAVO
remote: + SSH_NAME=GUSTAVO
remote: ++ wc -l
remote: ++ find /var/lib/dokku/plugins/enabled/20_events/user-auth
remote: + [[ 1 == 1 ]]
remote: + return 0
remote: + case "$1" in
remote: + execute_dokku_cmd git-hook app
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 app
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 app
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 app
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/builder/commands git-hook app
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 app
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 app
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 app
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 app
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/cron/commands git-hook app
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 app
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 app
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 app
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 app
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: ++ 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: ++ 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: + source /var/lib/dokku/plugins/available/git/help-functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + case "$1" in
remote: + cmd-git-hook git-hook app
remote: + declare 'desc=kick off receive-app trigger from git prereceive hook'
remote: + declare cmd=git-hook
remote: + [[ git-hook == \g\i\t\-\h\o\o\k ]]
remote: + shift 1
remote: + declare APP=app
remote: + local DOKKU_DEPLOY_BRANCH
remote: + plugn trigger app-exists app
remote: ++ fn-git-deploy-branch app
remote: ++ declare 'desc=retrieve the deploy branch for a given application'
remote: ++ local APP=app
remote: ++ local DEFAULT_BRANCH=master
remote: +++ fn-plugin-property-get git app deploy-branch ''
remote: +++ declare 'desc=returns the value for a given property'
remote: +++ declare PLUGIN=git APP=app KEY=deploy-branch DEFAULT=
remote: +++ fn-plugin-property-get-default git app deploy-branch ''
remote: +++ declare 'desc=returns the value for a given property with a specified default value'
remote: +++ declare PLUGIN=git APP=app KEY=deploy-branch DEFAULT=
remote: +++ /var/lib/dokku/core-plugins/available/common/prop get-with-default git app deploy-branch ''
remote: ++ local DOKKU_DEPLOY_BRANCH=
remote: +++ fn-plugin-property-get git --global deploy-branch ''
remote: +++ declare 'desc=returns the value for a given property'
remote: +++ declare PLUGIN=git APP=--global KEY=deploy-branch DEFAULT=
remote: +++ fn-plugin-property-get-default git --global deploy-branch ''
remote: +++ declare 'desc=returns the value for a given property with a specified default value'
remote: +++ declare PLUGIN=git APP=--global KEY=deploy-branch DEFAULT=
remote: +++ /var/lib/dokku/core-plugins/available/common/prop get-with-default git --global deploy-branch ''
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 app bec4a67cec19ac1fb57809bf98e26d4511d5de41
remote: + declare 'desc=git receive-app plugin trigger'
remote: + declare APP=app REV=bec4a67cec19ac1fb57809bf98e26d4511d5de41
remote: + [[ ! -d /home/dokku/app/refs ]]
remote: + acquire_app_deploy_lock app exclusive
remote: + declare 'desc=acquire advisory lock for use in git/tar deploys'
remote: + local APP=app
remote: + local LOCK_TYPE=exclusive
remote: + local APP_DEPLOY_LOCK_FILE=/home/dokku/app/.deploy.lock
remote: + local 'LOCK_WAITING_MSG=app currently has a deploy lock in place. Waiting...'
remote: + local 'LOCK_FAILED_MSG=app currently has a deploy lock in place. Exiting...'
remote: + acquire_advisory_lock /home/dokku/app/.deploy.lock exclusive 'app currently has a deploy lock in place. Waiting...' 'app currently has a deploy lock in place. Exiting...'
remote: + declare 'desc=acquire advisory lock'
remote: + local LOCK_FILE=/home/dokku/app/.deploy.lock LOCK_TYPE=exclusive 'LOCK_WAITING_MSG=app currently has a deploy lock in place. Waiting...' 'LOCK_FAILED_MSG=app currently has a deploy lock in place. Exiting...'
remote: + local LOCK_FD=200
remote: + local SHOW_MSG=true
remote: + eval 'exec 200>/home/dokku/app/.deploy.lock'
remote: ++ exec
remote: + [[ exclusive == \w\a\i\t\i\n\g ]]
remote: + flock -n 200
remote: + git_build app bec4a67cec19ac1fb57809bf98e26d4511d5de41
remote: + declare 'desc=setup and call git_build_app_repo'
remote: + local APP=app REV=bec4a67cec19ac1fb57809bf98e26d4511d5de41
remote: + local DOKKU_DEPLOY_BRANCH ENV_VAR_NAME REF
remote: + [[ 2 -ge 2 ]]
remote: ++ fn-plugin-property-get git app rev-env-var
remote: ++ declare 'desc=returns the value for a given property'
remote: ++ declare PLUGIN=git APP=app KEY=rev-env-var DEFAULT=
remote: ++ fn-plugin-property-get-default git app rev-env-var ''
remote: ++ declare 'desc=returns the value for a given property with a specified default value'
remote: ++ declare PLUGIN=git APP=app KEY=rev-env-var DEFAULT=
remote: ++ /var/lib/dokku/core-plugins/available/common/prop get-with-default git app rev-env-var ''
remote: + ENV_VAR_NAME=
remote: + [[ -z '' ]]
remote: + fn-plugin-property-exists git app rev-env-var
remote: + declare 'desc=returns whether the property store has a value for an app'
remote: + declare PLUGIN=git APP=app KEY=rev-env-var
remote: + /var/lib/dokku/core-plugins/available/common/prop exists git app rev-env-var
remote: + ENV_VAR_NAME=GIT_REV
remote: + [[ -n GIT_REV ]]
remote: + DOKKU_QUIET_OUTPUT=1
remote: + config_set --no-restart app GIT_REV=bec4a67cec19ac1fb57809bf98e26d4511d5de41
remote: + declare 'desc=set value of given config var'
remote: + config_sub set --no-restart app GIT_REV=bec4a67cec19ac1fb57809bf98e26d4511d5de41
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 app GIT_REV=bec4a67cec19ac1fb57809bf98e26d4511d5de41
remote: ? plugn trigger post-config-update [app set GIT_REV]
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=bec4a67cec19ac1fb57809bf98e26d4511d5de41
remote: + [[ -z bec4a67cec19ac1fb57809bf98e26d4511d5de41 ]]
remote: + git_build_app_repo app bec4a67cec19ac1fb57809bf98e26d4511d5de41
remote: + declare 'desc=builds local git app repo for app'
remote: + declare APP=app REV=bec4a67cec19ac1fb57809bf98e26d4511d5de41
remote: + local DOKKU_GLOBAL_DISABLE_AUTOCREATE
remote: + verify_app_name app
remote: + declare 'desc=verify app name format and app existence'
remote: + declare APP=app
remote: + local VALID_NEW=false
remote: + local VALID_OLD=false
remote: + fn-is-valid-app-name app
remote: + VALID_NEW=true
remote: + fn-is-valid-app-name-old app
remote: + VALID_OLD=true
remote: + [[ true == \f\a\l\s\e ]]
remote: + [[ ! -d /home/dokku/app ]]
remote: + return 0
remote: ++ mktemp -d /tmp/dokku-3278239-git_build_app_repo.XXXXXX
remote: + local GIT_BUILD_APP_REPO_TMP_WORK_DIR=/tmp/dokku-3278239-git_build_app_repo.Z0d5AS
remote: + trap 'rm -rf '\''/tmp/dokku-3278239-git_build_app_repo.Z0d5AS'\'' >/dev/null' RETURN INT TERM EXIT
remote: + chmod 755 /tmp/dokku-3278239-git_build_app_repo.Z0d5AS
remote: + unset GIT_DIR GIT_QUARANTINE_PATH GIT_WORK_TREE
remote: + plugn trigger app-exists app
remote: + fn-git-setup-build-dir app /tmp/dokku-3278239-git_build_app_repo.Z0d5AS bec4a67cec19ac1fb57809bf98e26d4511d5de41
remote: + declare APP=app GIT_WORKDIR=/tmp/dokku-3278239-git_build_app_repo.Z0d5AS REV=bec4a67cec19ac1fb57809bf98e26d4511d5de41
remote: ++ fn-plugin-property-get git app keep-git-dir ''
remote: ++ declare 'desc=returns the value for a given property'
remote: ++ declare PLUGIN=git APP=app KEY=keep-git-dir DEFAULT=
remote: ++ fn-plugin-property-get-default git app keep-git-dir ''
remote: ++ declare 'desc=returns the value for a given property with a specified default value'
remote: ++ declare PLUGIN=git APP=app KEY=keep-git-dir DEFAULT=
remote: ++ /var/lib/dokku/core-plugins/available/common/prop get-with-default git app keep-git-dir ''
remote: + local DOKKU_KEEP_GIT_DIR=
remote: + fn-git-use-worktree
remote: + declare 'desc=detects whether to use git worktree'
remote: + local GIT_VERSION MAJOR_VERSION MINOR_VERSION
remote: ++ awk '{split($0,a," "); print a[3]}'
remote: ++ git --version
remote: + GIT_VERSION=2.25.1
remote: ++ awk '{split($0,a,"."); print a[1]}'
remote: ++ echo 2.25.1
remote: + MAJOR_VERSION=2
remote: ++ awk '{split($0,a,"."); print a[2]}'
remote: ++ echo 2.25.1
remote: + MINOR_VERSION=25
remote: + [[ 2 -ge 3 ]]
remote: + [[ 2 -eq 2 ]]
remote: + [[ 25 -ge 11 ]]
remote: + return 0
remote: + [[ '' == \t\r\u\e ]]
remote: + fn-git-setup-build-dir-worktree app /tmp/dokku-3278239-git_build_app_repo.Z0d5AS bec4a67cec19ac1fb57809bf98e26d4511d5de41
remote: + declare APP=app GIT_WORKDIR=/tmp/dokku-3278239-git_build_app_repo.Z0d5AS REV=bec4a67cec19ac1fb57809bf98e26d4511d5de41
remote: + local APP_ROOT=/home/dokku/app
remote: + unset GIT_QUARANTINE_PATH
remote: + suppress_output fn-git-cmd /home/dokku/app worktree add /tmp/dokku-3278239-git_build_app_repo.Z0d5AS bec4a67cec19ac1fb57809bf98e26d4511d5de41
remote: + declare 'desc=suppress all output from a given command unless there is an error'
remote: + local TMP_COMMAND_OUTPUT
remote: ++ mktemp /tmp/dokku-3278239-suppress_output.XXXXXX
remote: + TMP_COMMAND_OUTPUT=/tmp/dokku-3278239-suppress_output.pOblMa
remote: + trap 'rm -rf '\''/tmp/dokku-3278239-suppress_output.pOblMa'\'' >/dev/null' RETURN
remote: + fn-git-cmd /home/dokku/app worktree add /tmp/dokku-3278239-git_build_app_repo.Z0d5AS bec4a67cec19ac1fb57809bf98e26d4511d5de41
remote: + return 0
remote: ++ rm -rf /tmp/dokku-3278239-suppress_output.pOblMa
remote: + fn-git-setup-build-dir-submodules app /tmp/dokku-3278239-git_build_app_repo.Z0d5AS
remote: + declare APP=app GIT_WORKDIR=/tmp/dokku-3278239-git_build_app_repo.Z0d5AS
remote: ++ fn-plugin-property-get git app keep-git-dir ''
remote: ++ declare 'desc=returns the value for a given property'
remote: ++ declare PLUGIN=git APP=app KEY=keep-git-dir DEFAULT=
remote: ++ fn-plugin-property-get-default git app keep-git-dir ''
remote: ++ declare 'desc=returns the value for a given property with a specified default value'
remote: ++ declare PLUGIN=git APP=app KEY=keep-git-dir DEFAULT=
remote: ++ /var/lib/dokku/core-plugins/available/common/prop get-with-default git app keep-git-dir ''
remote: + local DOKKU_KEEP_GIT_DIR=
remote: + unset GIT_QUARANTINE_PATH
remote: + suppress_output fn-git-cmd /tmp/dokku-3278239-git_build_app_repo.Z0d5AS submodule update --init --recursive
remote: + declare 'desc=suppress all output from a given command unless there is an error'
remote: + local TMP_COMMAND_OUTPUT
remote: ++ mktemp /tmp/dokku-3278239-suppress_output.XXXXXX
remote: + TMP_COMMAND_OUTPUT=/tmp/dokku-3278239-suppress_output.I6KCJF
remote: + trap 'rm -rf '\''/tmp/dokku-3278239-suppress_output.I6KCJF'\'' >/dev/null' RETURN
remote: + fn-git-cmd /tmp/dokku-3278239-git_build_app_repo.Z0d5AS submodule update --init --recursive
remote: + return 0
remote: ++ rm -rf /tmp/dokku-3278239-suppress_output.I6KCJF
remote: + [[ '' != \t\r\u\e ]]
remote: + pushd /tmp/dokku-3278239-git_build_app_repo.Z0d5AS
remote: + find /tmp/dokku-3278239-git_build_app_repo.Z0d5AS -name .git -prune -exec rm -rf '{}' ';'
remote: + popd
remote: ++ rm -rf /tmp/dokku-3278239-suppress_output.I6KCJF
remote: + suppress_output fn-git-cmd /home/dokku/app worktree prune
remote: + declare 'desc=suppress all output from a given command unless there is an error'
remote: + local TMP_COMMAND_OUTPUT
remote: ++ mktemp /tmp/dokku-3278239-suppress_output.XXXXXX
remote: + TMP_COMMAND_OUTPUT=/tmp/dokku-3278239-suppress_output.snoeSp
remote: + trap 'rm -rf '\''/tmp/dokku-3278239-suppress_output.snoeSp'\'' >/dev/null' RETURN
remote: + fn-git-cmd /home/dokku/app worktree prune
remote: + return 0
remote: ++ rm -rf /tmp/dokku-3278239-suppress_output.snoeSp
remote: ++ rm -rf /tmp/dokku-3278239-suppress_output.snoeSp
remote: ++ rm -rf /tmp/dokku-3278239-suppress_output.snoeSp
remote: + pushd /tmp/dokku-3278239-git_build_app_repo.Z0d5AS
remote: + local DOKKU_APP_DISABLE_ANSI_PREFIX_REMOVAL DOKKU_GLOBAL_DISABLE_ANSI_PREFIX_REMOVAL DOKKU_DISABLE_ANSI_PREFIX_REMOVAL
remote: ++ config_get app DOKKU_DISABLE_ANSI_PREFIX_REMOVAL
remote: ++ declare 'desc=get value of given config var'
remote: ++ config_sub get app 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 app DOKKU_DISABLE_ANSI_PREFIX_REMOVAL
remote: ++ true
remote: + DOKKU_APP_DISABLE_ANSI_PREFIX_REMOVAL=
remote: ++ config_get --global DOKKU_DISABLE_ANSI_PREFIX_REMOVAL
remote: ++ declare 'desc=get value of given config var'
remote: ++ config_sub get --global DOKKU_DISABLE_ANSI_PREFIX_REMOVAL
remote: ++ declare 'desc=executes a config subcommand'
remote: ++ local name=get
remote: ++ shift
remote: ++ /var/lib/dokku/plugins/available/config/subcommands/get config:get --global DOKKU_DISABLE_ANSI_PREFIX_REMOVAL
remote: ++ true
remote: + DOKKU_GLOBAL_DISABLE_ANSI_PREFIX_REMOVAL=
remote: + DOKKU_DISABLE_ANSI_PREFIX_REMOVAL=
remote: + [[ '' == \t\r\u\e ]]
remote: + sed -u 's/^//'
remote: + git_trigger_build app /tmp/dokku-3278239-git_build_app_repo.Z0d5AS bec4a67cec19ac1fb57809bf98e26d4511d5de41
remote: + declare 'desc=triggers the actual build process for a given app within a directory at a particular revision'
remote: + declare APP=app TMP_WORK_DIR=/tmp/dokku-3278239-git_build_app_repo.Z0d5AS REV=bec4a67cec19ac1fb57809bf98e26d4511d5de41
remote: + local BUILDER
remote: + plugn trigger post-extract app /tmp/dokku-3278239-git_build_app_repo.Z0d5AS bec4a67cec19ac1fb57809bf98e26d4511d5de41
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: + APP=app
remote: + TMP_WORK_DIR=/tmp/dokku-3278239-git_build_app_repo.Z0d5AS
remote: + REV=bec4a67cec19ac1fb57809bf98e26d4511d5de41
remote: + [[ ! -f /tmp/dokku-3278239-git_build_app_repo.Z0d5AS/.dokku-monorepo ]]
remote: + exit
remote: ++ head -n1
remote: ++ plugn trigger builder-detect app /tmp/dokku-3278239-git_build_app_repo.Z0d5AS
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: + set -eo pipefail
remote: + [[ -n 1 ]]
remote: + set -x
remote: + trigger-builder-dockerfile-builder-detect app /tmp/dokku-3278239-git_build_app_repo.Z0d5AS
remote: + declare 'desc=builder-dockerfile builder-detect plugin trigger'
remote: + declare trigger=builder-detect
remote: + declare APP=app SOURCECODE_WORK_DIR=/tmp/dokku-3278239-git_build_app_repo.Z0d5AS
remote: + [[ -f /var/lib/dokku/plugins/enabled/builder-herokuish/builder-detect ]]
remote: ++ /var/lib/dokku/plugins/enabled/builder-herokuish/builder-detect app /tmp/dokku-3278239-git_build_app_repo.Z0d5AS
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: + set -eo pipefail
remote: + [[ -n 1 ]]
remote: + set -x
remote: + trigger-builder-herokuish-builder-detect app /tmp/dokku-3278239-git_build_app_repo.Z0d5AS
remote: + declare 'desc=builder-herokuish builder-detect plugin trigger'
remote: + declare trigger=builder-detect
remote: + declare APP=app SOURCECODE_WORK_DIR=/tmp/dokku-3278239-git_build_app_repo.Z0d5AS
remote: + fn-has-buildpacks-file /tmp/dokku-3278239-git_build_app_repo.Z0d5AS
remote: + declare SOURCECODE_WORK_DIR=/tmp/dokku-3278239-git_build_app_repo.Z0d5AS
remote: + [[ -f /tmp/dokku-3278239-git_build_app_repo.Z0d5AS/.buildpacks ]]
remote: + return 1
remote: + fn-has-buildpack-dotenv /tmp/dokku-3278239-git_build_app_repo.Z0d5AS
remote: + declare SOURCECODE_WORK_DIR=/tmp/dokku-3278239-git_build_app_repo.Z0d5AS
remote: + [[ ! -f /tmp/dokku-3278239-git_build_app_repo.Z0d5AS/.env ]]
remote: + return 1
remote: + fn-has-buildpack-env app
remote: + declare APP=app
remote: ++ config_get app BUILDPACK_URL
remote: ++ declare 'desc=get value of given config var'
remote: ++ config_sub get app 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 app BUILDPACK_URL
remote: ++ true
remote: + [[ -n '' ]]
remote: + return 1
remote: + [[ -n '' ]]
remote: + [[ -f /var/lib/dokku/plugins/enabled/builder-pack/builder-detect ]]
remote: ++ /var/lib/dokku/plugins/enabled/builder-pack/builder-detect app /tmp/dokku-3278239-git_build_app_repo.Z0d5AS
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: + trigger-builder-pack-builder-detect app /tmp/dokku-3278239-git_build_app_repo.Z0d5AS
remote: + declare 'desc=builder-pack builder-detect plugin trigger'
remote: + declare trigger=builder-detect
remote: + declare APP=app SOURCECODE_WORK_DIR=/tmp/dokku-3278239-git_build_app_repo.Z0d5AS
remote: + [[ -f /tmp/dokku-3278239-git_build_app_repo.Z0d5AS/project.toml ]]
remote: ++ config_get app DOKKU_CNB_EXPERIMENTAL
remote: ++ declare 'desc=get value of given config var'
remote: ++ config_sub get app DOKKU_CNB_EXPERIMENTAL
remote: ++ declare 'desc=executes a config subcommand'
remote: ++ local name=get
remote: ++ shift
remote: ++ /var/lib/dokku/plugins/available/config/subcommands/get config:get app DOKKU_CNB_EXPERIMENTAL
remote: ++ true
remote: + [[ '' == \1 ]]
remote: + [[ -n '' ]]
remote: + [[ -f /tmp/dokku-3278239-git_build_app_repo.Z0d5AS/Dockerfile ]]
remote: + echo dockerfile
remote: + return
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: + set -eo pipefail
remote: + [[ -n 1 ]]
remote: + set -x
remote: + trigger-builder-herokuish-builder-detect app /tmp/dokku-3278239-git_build_app_repo.Z0d5AS
remote: + declare 'desc=builder-herokuish builder-detect plugin trigger'
remote: + declare trigger=builder-detect
remote: + declare APP=app SOURCECODE_WORK_DIR=/tmp/dokku-3278239-git_build_app_repo.Z0d5AS
remote: + fn-has-buildpacks-file /tmp/dokku-3278239-git_build_app_repo.Z0d5AS
remote: + declare SOURCECODE_WORK_DIR=/tmp/dokku-3278239-git_build_app_repo.Z0d5AS
remote: + [[ -f /tmp/dokku-3278239-git_build_app_repo.Z0d5AS/.buildpacks ]]
remote: + return 1
remote: + fn-has-buildpack-dotenv /tmp/dokku-3278239-git_build_app_repo.Z0d5AS
remote: + declare SOURCECODE_WORK_DIR=/tmp/dokku-3278239-git_build_app_repo.Z0d5AS
remote: + [[ ! -f /tmp/dokku-3278239-git_build_app_repo.Z0d5AS/.env ]]
remote: + return 1
remote: + fn-has-buildpack-env app
remote: + declare APP=app
remote: ++ config_get app BUILDPACK_URL
remote: ++ declare 'desc=get value of given config var'
remote: ++ config_sub get app 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 app BUILDPACK_URL
remote: ++ true
remote: + [[ -n '' ]]
remote: + return 1
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: + trigger-builder-pack-builder-detect app /tmp/dokku-3278239-git_build_app_repo.Z0d5AS
remote: + declare 'desc=builder-pack builder-detect plugin trigger'
remote: + declare trigger=builder-detect
remote: + declare APP=app SOURCECODE_WORK_DIR=/tmp/dokku-3278239-git_build_app_repo.Z0d5AS
remote: + [[ -f /tmp/dokku-3278239-git_build_app_repo.Z0d5AS/project.toml ]]
remote: ++ config_get app DOKKU_CNB_EXPERIMENTAL
remote: ++ declare 'desc=get value of given config var'
remote: ++ config_sub get app DOKKU_CNB_EXPERIMENTAL
remote: ++ declare 'desc=executes a config subcommand'
remote: ++ local name=get
remote: ++ shift
remote: ++ /var/lib/dokku/plugins/available/config/subcommands/get config:get app DOKKU_CNB_EXPERIMENTAL
remote: ++ true
remote: + [[ '' == \1 ]]
remote: + BUILDER=dockerfile
remote: + [[ -z dockerfile ]]
remote: + plugn trigger pre-receive-app app dockerfile /tmp/dokku-3278239-git_build_app_repo.Z0d5AS bec4a67cec19ac1fb57809bf98e26d4511d5de41
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 app dockerfile /tmp/dokku-3278239-git_build_app_repo.Z0d5AS
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=app
remote: ++ get_app_image_name app
remote: ++ declare 'desc=return image identifier for a given app, tag tuple. validate if tag is presented'
remote: ++ local APP=app
remote: ++ local IMAGE_TAG=
remote: ++ IMAGE_REPO=
remote: ++ [[ -z '' ]]
remote: +++ get_app_image_repo app
remote: +++ declare 'desc=central definition of image repo pattern'
remote: +++ local APP=app
remote: +++ local IMAGE_REPO=dokku/app
remote: +++ echo dokku/app
remote: ++ IMAGE_REPO=dokku/app
remote: ++ [[ -n '' ]]
remote: ++ local IMAGE=dokku/app:latest
remote: ++ echo dokku/app:latest
remote: + local IMAGE=dokku/app:latest
remote: + local IMAGE_SOURCE_TYPE=dockerfile
remote: + local TMP_WORK_DIR=/tmp/dokku-3278239-git_build_app_repo.Z0d5AS
remote: + docker_cleanup app
remote: + declare 'desc=cleans up all exited/dead containers and removes all dangling images'
remote: + declare APP=app 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 app ]]
remote: ++ config_get app DOKKU_SKIP_CLEANUP
remote: ++ declare 'desc=get value of given config var'
remote: ++ config_sub get app 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 app 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: -----> Cleaning up...
remote: ++ get_app_scheduler app
remote: ++ declare 'desc=fetch the scheduler for a given application'
remote: ++ declare APP=app
remote: ++ local DOKKU_APP_SCHEDULER DOKKU_GLOBAL_SCHEDULER DOKKU_SCHEDULER
remote: ++ [[ app == \-\-\g\l\o\b\a\l ]]
remote: ++ source /var/lib/dokku/plugins/available/config/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
remote: +++ source /var/lib/dokku/core-plugins/available/common/functions
remote: ++++ set -eo pipefail
remote: ++++ [[ -n 1 ]]
remote: ++++ set -x
remote: ++ [[ -n app ]]
remote: +++ config_get app DOKKU_SCHEDULER
remote: +++ declare 'desc=get value of given config var'
remote: +++ config_sub get app 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 app 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: + [[ app == \-\-\g\l\o\b\a\l ]]
remote: + plugn trigger scheduler-docker-cleanup docker-local app ''
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: + trigger-scheduler-docker-local-scheduler-docker-cleanup docker-local app ''
remote: + declare 'desc=scheduler-docker-local scheduler-docker-cleanup plugin trigger'
remote: + declare trigger=scheduler-docker-cleanup
remote: + declare DOKKU_SCHEDULER=docker-local APP=app FORCE_CLEANUP=
remote: + [[ docker-local != \d\o\c\k\e\r\-\l\o\c\a\l ]]
remote: + [[ -n app ]]
remote: ++ docker container list --all --filter status=exited --filter label=dokku --filter label=com.dokku.app-name=app --quiet
remote: + docker container rm
remote: + true
remote: ++ docker container list --all --filter status=dead --filter label=dokku --filter label=com.dokku.app-name=app --quiet
remote: + docker container rm
remote: + true
remote: ++ docker image list --filter dangling=true --filter label=com.dokku.app-name=app --quiet
remote: + docker image rm
remote: + true
remote: + docker image prune --all --filter label=com.dokku.app-name=app --force
remote: + [[ -n app ]]
remote: ++ docker container list --all --filter status=exited --filter label=dokku --filter label=com.dokku.app-name=app --quiet
remote: + docker container rm
remote: + true
remote: ++ docker container list --all --filter status=dead --filter label=dokku --filter label=com.dokku.app-name=app --quiet
remote: + docker container rm
remote: + true
remote: ++ docker image list --filter dangling=true --filter label=com.dokku.app-name=app --quiet
remote: + docker image rm
remote: + true
remote: + docker image prune --all --filter label=com.dokku.app-name=app --force
remote: ++ config_get app DOKKU_CNB_EXPERIMENTAL
remote: ++ declare 'desc=get value of given config var'
remote: ++ config_sub get app DOKKU_CNB_EXPERIMENTAL
remote: ++ declare 'desc=executes a config subcommand'
remote: ++ local name=get
remote: ++ shift
remote: ++ /var/lib/dokku/plugins/available/config/subcommands/get config:get app DOKKU_CNB_EXPERIMENTAL
remote: ++ true
remote: + local DOKKU_CNB_EXPERIMENTAL=
remote: + [[ '' == \1 ]]
remote: + DOKKU_QUIET_OUTPUT=1
remote: + config_set --no-restart app DOKKU_APP_TYPE=dockerfile
remote: + declare 'desc=set value of given config var'
remote: + config_sub set --no-restart app 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 app DOKKU_APP_TYPE=dockerfile
remote: ? plugn trigger post-config-update [app set DOKKU_APP_TYPE]
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 app dockerfile /tmp/dokku-3278239-git_build_app_repo.Z0d5AS
remote: + declare 'desc=build phase'
remote: + declare APP=app IMAGE_SOURCE_TYPE=dockerfile SOURCECODE_WORK_DIR=/tmp/dokku-3278239-git_build_app_repo.Z0d5AS
remote: + plugn trigger builder-build dockerfile app /tmp/dokku-3278239-git_build_app_repo.Z0d5AS
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + [[ ! -n '' ]]
remote: + source /var/lib/dokku/plugins/available/config/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: ++ source /var/lib/dokku/core-plugins/available/common/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
remote: + trigger-builder-dockerfile-builder-build dockerfile app /tmp/dokku-3278239-git_build_app_repo.Z0d5AS
remote: + declare 'desc=builder-dockerfile builder-build plugin trigger'
remote: + declare trigger=builder-build
remote: + declare BUILDER_TYPE=dockerfile APP=app SOURCECODE_WORK_DIR=/tmp/dokku-3278239-git_build_app_repo.Z0d5AS
remote: + [[ dockerfile != \d\o\c\k\e\r\f\i\l\e ]]
remote: + dokku_log_info1 'Building app from Dockerfile'
remote: + declare 'desc=log info1 formatter'
remote: + echo '-----> Building app from Dockerfile'
remote: -----> Building app from Dockerfile
remote: ++ get_app_image_name app
remote: ++ declare 'desc=return image identifier for a given app, tag tuple. validate if tag is presented'
remote: ++ local APP=app
remote: ++ local IMAGE_TAG=
remote: ++ IMAGE_REPO=
remote: ++ [[ -z '' ]]
remote: +++ get_app_image_repo app
remote: +++ declare 'desc=central definition of image repo pattern'
remote: +++ local APP=app
remote: +++ local IMAGE_REPO=dokku/app
remote: +++ echo dokku/app
remote: ++ IMAGE_REPO=dokku/app
remote: ++ [[ -n '' ]]
remote: ++ local IMAGE=dokku/app:latest
remote: ++ echo dokku/app:latest
remote: + local IMAGE=dokku/app:latest
remote: + local 'DOCKER_BUILD_LABEL_ARGS=--label=org.label-schema.schema-version=1.0 --label=org.label-schema.vendor=dokku --label=com.dokku.app-name=app'
remote: + pushd /tmp/dokku-3278239-git_build_app_repo.Z0d5AS
remote: ++ get_dockerfile_exposed_ports Dockerfile
remote: ++ declare 'desc=return all exposed ports from passed file path'
remote: +++ xargs
remote: +++ awk '{ print $2 }'
remote: +++ grep -E '^EXPOSE ' Dockerfile
remote: ++ local DOCKERFILE_PORTS=3000
remote: ++ echo 3000
remote: + local DOCKERFILE_PORTS=3000
remote: + [[ -n 3000 ]]
remote: + config_set --no-restart app DOKKU_DOCKERFILE_PORTS=3000
remote: + declare 'desc=set value of given config var'
remote: + config_sub set --no-restart app 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 app DOKKU_DOCKERFILE_PORTS=3000
remote: ? plugn trigger post-config-update [app set DOKKU_DOCKERFILE_PORTS]
remote: -----> Setting config vars
remote:  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: + plugn trigger pre-build-dockerfile app
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 app dockerfile
remote: ++ :
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + [[ ! -n '' ]]
remote: + source /var/lib/dokku/plugins/available/config/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: ++ source /var/lib/dokku/core-plugins/available/common/functions
remote: +++ set -eo pipefail
remote: +++ [[ -n 1 ]]
remote: +++ set -x
remote: + trigger-builder-herokuish-docker-args app dockerfile
remote: + declare 'desc=builder-herokuish docker-args plugin trigger'
remote: + declare trigger=docker-args
remote: + declare APP=app
remote: + local STDIN DOKKU_APP_TYPE DOKKU_APP_USER
remote: ++ cat
remote: + STDIN=
remote: ++ config_get app DOKKU_APP_TYPE
remote: ++ declare 'desc=get value of given config var'
remote: ++ config_sub get app 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 app DOKKU_APP_TYPE
remote: + DOKKU_APP_TYPE=dockerfile
remote: ++ config_get app DOKKU_APP_USER
remote: ++ declare 'desc=get value of given config var'
remote: ++ config_sub get app 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 app 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: + trigger-docker-options-docker-args app dockerfile
remote: + declare 'desc=docker args plugin trigger'
remote: + declare trigger=/var/lib/dokku/plugins/enabled/docker-options/docker-args-build
remote: + declare APP=app IMAGE_SOURCE_TYPE=dockerfile
remote: ++ cat
remote: + local STDIN=
remote: + case "$0" in
remote: + local PHASE=BUILD
remote: + local FILE_PREFIX=DOCKER_OPTIONS_
remote: + local PHASE_FILE_PATH=/home/dokku/app/DOCKER_OPTIONS_BUILD
remote: + local output=
remote: + [[ -f /home/dokku/app/DOCKER_OPTIONS_BUILD ]]
remote: + local DONE=false
remote: + false
remote: + local line
remote: + read -r line
remote: + [[ -z --build-arg AUTH_API_URL=htts://api-v2.gt.app.com ]]
remote: + case "$line" in
remote: + case "$IMAGE_SOURCE_TYPE" in
remote: + case "$line" in
remote: + local 'output= --build-arg AUTH_API_URL=htts://api-v2.gt.app.com'
remote: + false
remote: + local line
remote: + read -r line
remote: + [[ -z --build-arg RECORD_API_URL=https://api-v1.gt.app.com ]]
remote: + case "$line" in
remote: + case "$IMAGE_SOURCE_TYPE" in
remote: + case "$line" in
remote: + local 'output= --build-arg AUTH_API_URL=htts://api-v2.gt.app.com --build-arg RECORD_API_URL=https://api-v1.gt.app.com'
remote: + false
remote: + local line
remote: + read -r line
remote: + [[ -z --build-arg RECORD_API_V2_URL=htts://api-v2.gt.app.com ]]
remote: + case "$line" in
remote: + case "$IMAGE_SOURCE_TYPE" in
remote: + case "$line" in
remote: + local 'output= --build-arg AUTH_API_URL=htts://api-v2.gt.app.com --build-arg RECORD_API_URL=https://api-v1.gt.app.com --build-arg RECORD_API_V2_URL=htts://api-v2.gt.app.com'
remote: + false
remote: + local line
remote: + read -r line
remote: + local DONE=true
remote: + [[ -z '' ]]
remote: + continue
remote: + true
remote: + echo -n ' --build-arg AUTH_API_URL=htts://api-v2.gt.app.com --build-arg RECORD_API_URL=https://api-v1.gt.app.com --build-arg RECORD_API_V2_URL=htts://api-v2.gt.app.com'
remote: + local 'DOCKER_ARGS= --build-arg AUTH_API_URL=htts://api-v2.gt.app.com --build-arg RECORD_API_URL=https://api-v1.gt.app.com --build-arg RECORD_API_V2_URL=htts://api-v2.gt.app.com'
remote: ++ plugn trigger docker-args-process-build app dockerfile
remote: ++ :
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + [[ ! -n '' ]]
remote: + DOCKER_ARGS+=
remote: ++ sed -e 's/--volume=[[:graph:]]\+[[:blank:]]\?//g' -e 's/-v[[:blank:]]\?[[:graph:]]\+[[:blank:]]\?//g'
remote: + local 'DOCKER_ARGS= --build-arg AUTH_API_URL=htts://api--build-arg RECORD_API_URL=https://api--build-arg RECORD_API_V2_URL=htts://api'
remote: + declare -a ARG_ARRAY
remote: + eval 'ARG_ARRAY=( --build-arg AUTH_API_URL=htts://api--build-arg RECORD_API_URL=https://api--build-arg RECORD_API_V2_URL=htts://api)'
remote: ++ ARG_ARRAY=(--build-arg AUTH_API_URL=htts://api--build-arg RECORD_API_URL=https://api--build-arg RECORD_API_V2_URL=htts://api)
remote: + docker image build '--label=org.label-schema.schema-version=1.0 --label=org.label-schema.vendor=dokku --label=com.dokku.app-name=app' --label=org.label-schema.schema-version=1.0 --label=org.label-schema.vendor=dokku --label=dokku --build-arg AUTH_API_URL=htts://api--build-arg RECORD_API_URL=https://api--build-arg RECORD_API_V2_URL=htts://api -t dokku/app:latest .
remote: "docker image build" requires exactly 1 argument.
remote: See 'docker image build --help'.
remote:
remote: Usage: docker image build [OPTIONS] PATH | URL | -
remote:
remote: Build an image from a Dockerfile
remote: 2021/03/17 14:20:35 exit status 1
remote: + rm -rf /tmp/dokku-3278239-git_build_app_repo.Z0d5AS
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 ''\''app'\'''
+ 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 ''\''app'\'''
+ 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 ''\''app'\'''
+ 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 ''\''app'\'''
+ 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 ''\''app'\'''
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in $PLUGIN_ENABLED_PATH/*/commands
+ set +e
+ /var/lib/dokku/plugins/enabled/postgres/commands git-receive-pack ''\''app'\'''
+ 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 ''\''app'\'''
+ 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 ''\''app'\'''
+ 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 ''\''app'\'''
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in $PLUGIN_ENABLED_PATH/*/commands
+ set +e
+ /var/lib/dokku/plugins/enabled/resource/commands git-receive-pack ''\''app'\'''
+ 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 ''\''app'\'''
+ source /var/lib/dokku/plugins/available/scheduler-docker-local/help-functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ case "$1" in
+ exit 10
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in $PLUGIN_ENABLED_PATH/*/commands
+ set +e
+ /var/lib/dokku/plugins/enabled/shell/commands git-receive-pack ''\''app'\'''
+ 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 ''\''app'\'''
+ 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 ''\''app'\'''
+ 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 ''\''app'\'''
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in $PLUGIN_ENABLED_PATH/*/commands
+ set +e
+ /var/lib/dokku/plugins/enabled/tar/commands git-receive-pack ''\''app'\'''
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ for script in $PLUGIN_ENABLED_PATH/*/commands
+ set +e
+ /var/lib/dokku/plugins/enabled/trace/commands git-receive-pack ''\''app'\'''
+ exit_code=10
+ set -e
+ [[ 10 -eq 10 ]]
+ continue
+ [[ 1 -eq 0 ]]
+ set +f
+ exit 0
To gt.app.com:app
! [remote rejected] feature/space -> master (pre-receive hook declined)
error: failed to push some refs to 'dokku@gt.app.com:app'
[
{
"AppArmorProfile": "docker-default",
"Args": [
"run",
"start:prod"
],
"Config": {
"AttachStderr": true,
"AttachStdin": false,
"AttachStdout": true,
"Cmd": [
"run",
"start:prod"
],
"Domainname": "",
"Entrypoint": [
"npm"
],
"Env": [
"DOKKU_APP_RESTORE=1",
"DOKKU_DOCKERFILE_PORTS=3000",
"DOKKU_LETSENCRYPT_EMAIL=guilherme.moferraz@gmail.com",
"DOKKU_PROXY_PORT_MAP=http:80:3000 https:443:3000",
"DOKKU_PROXY_SSL_PORT=443",
"GIT_REV=XXXXXX",
"PORT=3000",
"CURL_CONNECT_TIMEOUT=XXXXXX",
"DOKKU_APP_TYPE=dockerfile",
"DYNO=web.1",
"CURL_TIMEOUT=XXXXXX",
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"NODE_VERSION=XXXXXX",
"YARN_VERSION=XXXXXX",
"RECORD_API_URL=XXXXXX",
"RECORD_API_V2_URL=XXXXXX",
"AUTH_API_URL=XXXXXX"
],
"ExposedPorts": {
"3000/tcp": {}
},
"Hostname": "94267ed1d865",
"Image": "dokku/app:latest",
"Labels": {
"com.dokku.app-name": "app",
"com.dokku.container-type": "deploy",
"com.dokku.docker-image-labeler/alternate-tags": "[\"dokku/app:latest\"]",
"com.dokku.dyno": "web.1",
"com.dokku.image-stage": "release",
"com.dokku.process-type": "web",
"dokku": "",
"org.label-schema.schema-version": "1.0",
"org.label-schema.vendor": "dokku"
},
"OnBuild": null,
"OpenStdin": false,
"StdinOnce": false,
"Tty": false,
"User": "",
"Volumes": null,
"WorkingDir": "/usr/src"
},
"Created": "2021-03-17T13:56:46.258921911Z",
"Driver": "overlay2",
"ExecIDs": null,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/792aa8cee9f36ce7a6faa5038f46fe666997bce768d3db04c92a73f0a3dc8db9-init/diff:/var/lib/docker/overlay2/f091266939cafdebd3f40a62fd1f15025d9bf994c0c55770d8364903c322fe3d/diff:/var/lib/docker/overlay2/ac342b810bf8ddf2bc9db14815d44d816feaa35073fe2a963c9a32dc0a9943e0/diff:/var/lib/docker/overlay2/e91708a967f7d7ea0c62e7b2ae85e8496d520883f76c6a2eb753fd6e3049fd80/diff:/var/lib/docker/overlay2/de820deafd537d007f7bb1ce2263060ce51bcc00f271c1331637b8cef510c4c1/diff:/var/lib/docker/overlay2/f5d2519a240d4ea0c25d79fc6924beb883fd4d6b7880c6d451ae162083c753ad/diff:/var/lib/docker/overlay2/94f497ff8ff7148c9f1a64b8577a7cc9f8e3c47465de266f3b1f399d974acc3a/diff:/var/lib/docker/overlay2/078074c3b4e55eb08a140be5a5101ddbc610275ebe278ff6e4415dbfc249e259/diff:/var/lib/docker/overlay2/0f35abd9bbdbfebd184c5a9e5c0349e6a3bee81a7fe245465e59e26f68683139/diff:/var/lib/docker/overlay2/d8814a47a08673fc741950c603c67298ba571da4b6e678f897846e4c8989928b/diff:/var/lib/docker/overlay2/241aeedccb7b7478a10202a1ca35ab1415a9c20a2796f52ea6575e7416305744/diff",
"MergedDir": "/var/lib/docker/overlay2/792aa8cee9f36ce7a6faa5038f46fe666997bce768d3db04c92a73f0a3dc8db9/merged",
"UpperDir": "/var/lib/docker/overlay2/792aa8cee9f36ce7a6faa5038f46fe666997bce768d3db04c92a73f0a3dc8db9/diff",
"WorkDir": "/var/lib/docker/overlay2/792aa8cee9f36ce7a6faa5038f46fe666997bce768d3db04c92a73f0a3dc8db9/work"
},
"Name": "overlay2"
},
"HostConfig": {
"AutoRemove": false,
"Binds": null,
"BlkioDeviceReadBps": null,
"BlkioDeviceReadIOps": null,
"BlkioDeviceWriteBps": null,
"BlkioDeviceWriteIOps": null,
"BlkioWeight": 0,
"BlkioWeightDevice": [],
"CapAdd": null,
"CapDrop": null,
"Cgroup": "",
"CgroupParent": "",
"CgroupnsMode": "host",
"ConsoleSize": [
0,
0
],
"ContainerIDFile": "",
"CpuCount": 0,
"CpuPercent": 0,
"CpuPeriod": 0,
"CpuQuota": 0,
"CpuRealtimePeriod": 0,
"CpuRealtimeRuntime": 0,
"CpuShares": 0,
"CpusetCpus": "",
"CpusetMems": "",
"DeviceCgroupRules": null,
"DeviceRequests": null,
"Devices": [],
"Dns": [],
"DnsOptions": [],
"DnsSearch": [],
"ExtraHosts": null,
"GroupAdd": null,
"IOMaximumBandwidth": 0,
"IOMaximumIOps": 0,
"Init": true,
"IpcMode": "private",
"Isolation": "",
"KernelMemory": 0,
"KernelMemoryTCP": 0,
"Links": null,
"LogConfig": {
"Config": {
"max-size": "10m"
},
"Type": "json-file"
},
"MaskedPaths": [
"/proc/asound",
"/proc/acpi",
"/proc/kcore",
"/proc/keys",
"/proc/latency_stats",
"/proc/timer_list",
"/proc/timer_stats",
"/proc/sched_debug",
"/proc/scsi",
"/sys/firmware"
],
"Memory": 0,
"MemoryReservation": 0,
"MemorySwap": 0,
"MemorySwappiness": null,
"NanoCpus": 0,
"NetworkMode": "default",
"OomKillDisable": false,
"OomScoreAdj": 0,
"PidMode": "",
"PidsLimit": null,
"PortBindings": {},
"Privileged": false,
"PublishAllPorts": false,
"ReadonlyPaths": [
"/proc/bus",
"/proc/fs",
"/proc/irq",
"/proc/sys",
"/proc/sysrq-trigger"
],
"ReadonlyRootfs": false,
"RestartPolicy": {
"MaximumRetryCount": 10,
"Name": "on-failure"
},
"Runtime": "runc",
"SecurityOpt": null,
"ShmSize": 67108864,
"UTSMode": "",
"Ulimits": null,
"UsernsMode": "",
"VolumeDriver": "",
"VolumesFrom": null
},
"HostnamePath": "/var/lib/docker/containers/94267ed1d8659ed40ece3a81ccb865bc8875928d95c4d564b0839fd84531bb7f/hostname",
"HostsPath": "/var/lib/docker/containers/94267ed1d8659ed40ece3a81ccb865bc8875928d95c4d564b0839fd84531bb7f/hosts",
"Id": "94267ed1d8659ed40ece3a81ccb865bc8875928d95c4d564b0839fd84531bb7f",
"Image": "sha256:f6ee5103bf8636fd8269715fab746379ebf1db7a70be38110dd8595150c3fbe3",
"LogPath": "/var/lib/docker/containers/94267ed1d8659ed40ece3a81ccb865bc8875928d95c4d564b0839fd84531bb7f/94267ed1d8659ed40ece3a81ccb865bc8875928d95c4d564b0839fd84531bb7f-json.log",
"MountLabel": "",
"Mounts": [],
"Name": "/app.web.1",
"NetworkSettings": {
"Bridge": "",
"EndpointID": "1facbdf03d6881dbe7635f85f34c29e4d4657e1a791bdaa3f35282591c65bb25",
"Gateway": "172.17.0.1",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"HairpinMode": false,
"IPAddress": "172.17.0.7",
"IPPrefixLen": 16,
"IPv6Gateway": "",
"LinkLocalIPv6Address": "",
"LinkLocalIPv6PrefixLen": 0,
"MacAddress": "02:42:ac:11:00:07",
"Networks": {
"bridge": {
"Aliases": null,
"DriverOpts": null,
"EndpointID": "1facbdf03d6881dbe7635f85f34c29e4d4657e1a791bdaa3f35282591c65bb25",
"Gateway": "172.17.0.1",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"IPAMConfig": null,
"IPAddress": "172.17.0.7",
"IPPrefixLen": 16,
"IPv6Gateway": "",
"Links": null,
"MacAddress": "02:42:ac:11:00:07",
"NetworkID": "794145c11ab614c37b7c54b25cde120d930c61a886444c4e5aaa7f455c580d02"
}
},
"Ports": {
"3000/tcp": null
},
"SandboxID": "0f4672ce0f674da24b9fb81b269a56c0dcceca399f2e56e214c76906feaac20e",
"SandboxKey": "/var/run/docker/netns/0f4672ce0f67",
"SecondaryIPAddresses": null,
"SecondaryIPv6Addresses": null
},
"Path": "npm",
"Platform": "linux",
"ProcessLabel": "",
"ResolvConfPath": "/var/lib/docker/containers/94267ed1d8659ed40ece3a81ccb865bc8875928d95c4d564b0839fd84531bb7f/resolv.conf",
"RestartCount": 0,
"State": {
"Dead": false,
"Error": "",
"ExitCode": 0,
"FinishedAt": "0001-01-01T00:00:00Z",
"OOMKilled": false,
"Paused": false,
"Pid": 3227287,
"Restarting": false,
"Running": true,
"StartedAt": "2021-03-17T13:56:46.996343644Z",
"Status": "running"
}
}
]
server {
listen [::]:80;
listen 80;
server_name app.gt.doisge.com;
access_log /var/log/nginx/app-access.log;
error_log /var/log/nginx/app-error.log;
return 301 https://$host:443$request_uri;
}
server {
listen [::]:443 ssl http2;
listen 443 ssl http2;
server_name app.gt.doisge.com;
access_log /var/log/nginx/app-access.log;
error_log /var/log/nginx/app-error.log;
ssl_certificate /home/dokku/app/tls/server.crt;
ssl_certificate_key /home/dokku/app/tls/server.key;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_prefer_server_ciphers off;
keepalive_timeout 70;
location / {
gzip on;
gzip_min_length 1100;
gzip_buffers 4 32k;
gzip_types text/css text/javascript text/xml text/plain text/x-component application/javascript application/x-javascript application/json application/xml application/rss+xml font/truetype application/x-font-ttf font/opentype application/vnd.ms-fontobject image/svg+xml;
gzip_vary on;
gzip_comp_level 6;
proxy_pass http://app-3000;
http2_push_preload on;
proxy_http_version 1.1;
proxy_read_timeout 60s;
proxy_buffer_size 4096;
proxy_buffering on;
proxy_buffers 8 4096;
proxy_busy_buffers_size 8192;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Port $server_port;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Request-Start $msec;
}
include /home/dokku/app/nginx.conf.d/*.conf;
error_page 400 401 402 403 405 406 407 408 409 410 411 412 413 414 415 416 417 418 420 422 423 424 426 428 429 431 444 449 450 451 /400-error.html;
location /400-error.html {
root /var/lib/dokku/data/nginx-vhosts/dokku-errors;
internal;
}
error_page 404 /404-error.html;
location /404-error.html {
root /var/lib/dokku/data/nginx-vhosts/dokku-errors;
internal;
}
error_page 500 501 503 504 505 506 507 508 509 510 511 /500-error.html;
location /500-error.html {
root /var/lib/dokku/data/nginx-vhosts/dokku-errors;
internal;
}
error_page 502 /502-error.html;
location /502-error.html {
root /var/lib/dokku/data/nginx-vhosts/dokku-errors;
internal;
}
}
upstream app-3000 {
server 172.17.0.7:3000;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment