Created
October 31, 2018 09:12
-
-
Save tansaku/9c45b410f8146f906f8ee901eb7229c6 to your computer and use it in GitHub Desktop.
output from ssh -t [email protected] run metplus-pets-staging VERBOSE=true bundle exec rake db:migrate --trace
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+ export DOKKU_DISTRO | |
++ . /etc/os-release | |
++ echo ubuntu | |
+ DOKKU_DISTRO=ubuntu | |
+ export DOKKU_IMAGE=gliderlabs/herokuish | |
+ DOKKU_IMAGE=gliderlabs/herokuish | |
+ export DOKKU_LIB_ROOT=/var/lib/dokku | |
+ DOKKU_LIB_ROOT=/var/lib/dokku | |
+ export PLUGIN_PATH=/var/lib/dokku/plugins | |
+ PLUGIN_PATH=/var/lib/dokku/plugins | |
+ export PLUGIN_AVAILABLE_PATH=/var/lib/dokku/plugins/available | |
+ PLUGIN_AVAILABLE_PATH=/var/lib/dokku/plugins/available | |
+ export PLUGIN_ENABLED_PATH=/var/lib/dokku/plugins/enabled | |
+ PLUGIN_ENABLED_PATH=/var/lib/dokku/plugins/enabled | |
+ export PLUGIN_CORE_PATH=/var/lib/dokku/core-plugins | |
+ PLUGIN_CORE_PATH=/var/lib/dokku/core-plugins | |
+ export PLUGIN_CORE_AVAILABLE_PATH=/var/lib/dokku/core-plugins/available | |
+ PLUGIN_CORE_AVAILABLE_PATH=/var/lib/dokku/core-plugins/available | |
+ export PLUGIN_CORE_ENABLED_PATH=/var/lib/dokku/core-plugins/enabled | |
+ PLUGIN_CORE_ENABLED_PATH=/var/lib/dokku/core-plugins/enabled | |
+ export DOKKU_API_VERSION=1 | |
+ DOKKU_API_VERSION=1 | |
+ export DOKKU_NOT_IMPLEMENTED_EXIT=10 | |
+ DOKKU_NOT_IMPLEMENTED_EXIT=10 | |
+ export DOKKU_VALID_EXIT=0 | |
+ DOKKU_VALID_EXIT=0 | |
+ export DOKKU_LOGS_DIR=/var/log/dokku | |
+ DOKKU_LOGS_DIR=/var/log/dokku | |
+ export DOKKU_EVENTS_LOGFILE=/var/log/dokku/events.log | |
+ DOKKU_EVENTS_LOGFILE=/var/log/dokku/events.log | |
+ export DOKKU_CONTAINER_LABEL=dokku | |
+ DOKKU_CONTAINER_LABEL=dokku | |
+ export DOKKU_GLOBAL_RUN_ARGS=--label=dokku | |
+ DOKKU_GLOBAL_RUN_ARGS=--label=dokku | |
+ source /var/lib/dokku/core-plugins/available/common/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ parse_args run metplus-pets-staging VERBOSE=true bundle exec rake db:migrate --trace | |
+ 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 | |
+ for arg in '"$@"' | |
+ [[ false == \t\r\u\e ]] | |
+ case "$arg" in | |
+ next_index=4 | |
+ for arg in '"$@"' | |
+ [[ false == \t\r\u\e ]] | |
+ case "$arg" in | |
+ next_index=5 | |
+ for arg in '"$@"' | |
+ [[ false == \t\r\u\e ]] | |
+ case "$arg" in | |
+ next_index=6 | |
+ for arg in '"$@"' | |
+ [[ false == \t\r\u\e ]] | |
+ case "$arg" in | |
+ next_index=7 | |
+ for arg in '"$@"' | |
+ [[ false == \t\r\u\e ]] | |
+ case "$arg" in | |
+ next_index=8 | |
+ for arg in '"$@"' | |
+ [[ false == \t\r\u\e ]] | |
+ case "$arg" in | |
+ export DOKKU_TRACE=1 | |
+ DOKKU_TRACE=1 | |
+ next_index=9 | |
+ return 0 | |
+ args=("$@") | |
+ skip_arg=false | |
+ [[ run =~ ^--.* ]] | |
+ has_tty | |
+ declare 'desc=return 0 if we have a tty' | |
++ /usr/bin/tty | |
+ [[ /dev/pts/0 == \n\o\t\ \a\ \t\t\y ]] | |
+ return 0 | |
++ id -un | |
+ [[ dokku != \d\o\k\k\u ]] | |
+ [[ run =~ ^plugin:.* ]] | |
+ [[ run == \s\s\h\-\k\e\y\s\:\a\d\d ]] | |
+ [[ -n '' ]] | |
+ dokku_auth run metplus-pets-staging VERBOSE=true bundle exec rake db:migrate --trace | |
+ declare 'desc=calls user-auth plugin trigger' | |
+ export SSH_USER=dokku | |
+ SSH_USER=dokku | |
+ export SSH_NAME=tansaku | |
+ SSH_NAME=tansaku | |
+ plugn trigger user-auth dokku tansaku run metplus-pets-staging VERBOSE=true bundle exec rake db:migrate --trace | |
+ 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 | |
+ [[ run =~ (ssh-keys:add|ssh-keys:remove) ]] | |
+ return 0 | |
+ case "$1" in | |
+ execute_dokku_cmd run metplus-pets-staging VERBOSE=true bundle exec rake db:migrate --trace | |
+ declare 'desc=executes dokku sub-commands' | |
+ local PLUGIN_NAME=run | |
+ local PLUGIN_CMD=run | |
+ local implemented=0 | |
+ local script | |
+ argv=("$@") | |
+ local argv | |
+ case "$PLUGIN_NAME" in | |
+ local PLUGIN_NAME=00_dokku-standard | |
++ readlink -f /var/lib/dokku/plugins/enabled/00_dokku-standard | |
+ [[ /var/lib/dokku/core-plugins/available/00_dokku-standard == *core-plugins* ]] | |
+ [[ run == \r\u\n ]] | |
+ shift 1 | |
+ [[ ! -z '' ]] | |
+ set -- run metplus-pets-staging VERBOSE=true bundle exec rake db:migrate --trace | |
+ [[ -x /var/lib/dokku/plugins/enabled/00_dokku-standard/subcommands/default ]] | |
+ [[ -x /var/lib/dokku/plugins/enabled/00_dokku-standard/subcommands/run ]] | |
+ /var/lib/dokku/plugins/enabled/00_dokku-standard/subcommands/run run metplus-pets-staging VERBOSE=true bundle exec rake db:migrate --trace | |
+ source /var/lib/dokku/core-plugins/available/common/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ source /var/lib/dokku/plugins/available/ps/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
++ source /var/lib/dokku/core-plugins/available/common/functions | |
+++ set -eo pipefail | |
+++ [[ -n 1 ]] | |
+++ set -x | |
++ source /var/lib/dokku/plugins/available/config/functions | |
+++ set -eo pipefail | |
+++ [[ -n 1 ]] | |
+++ set -x | |
+++ source /var/lib/dokku/core-plugins/available/common/functions | |
++++ set -eo pipefail | |
++++ [[ -n 1 ]] | |
++++ set -x | |
+ 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 | |
+ dokku_run_cmd run metplus-pets-staging VERBOSE=true bundle exec rake db:migrate --trace | |
+ declare 'desc=runs command in container based on app image' | |
+ local cmd=run | |
+ [[ -z metplus-pets-staging ]] | |
+ local APP=metplus-pets-staging | |
++ get_running_image_tag metplus-pets-staging | |
++ declare 'desc=retrieve current image tag for a given app. returns empty string if no deployed containers are found' | |
++ local APP=metplus-pets-staging | |
++ [[ ! -n metplus-pets-staging ]] | |
++ verify_app_name metplus-pets-staging | |
++ declare 'desc=verify app name format and app existence' | |
++ local APP=metplus-pets-staging | |
++ [[ ! -n metplus-pets-staging ]] | |
++ [[ ! metplus-pets-staging =~ ^[a-z].* ]] | |
++ [[ ! -d /home/dokku/metplus-pets-staging ]] | |
++ return 0 | |
++ CIDS=($(get_app_container_ids "$APP")) | |
+++ get_app_container_ids metplus-pets-staging | |
+++ declare 'desc=returns list of docker container ids for given app and optional container_type' | |
+++ local APP=metplus-pets-staging | |
+++ local CONTAINER_TYPE= | |
+++ verify_app_name metplus-pets-staging | |
+++ declare 'desc=verify app name format and app existence' | |
+++ local APP=metplus-pets-staging | |
+++ [[ ! -n metplus-pets-staging ]] | |
+++ [[ ! metplus-pets-staging =~ ^[a-z].* ]] | |
+++ [[ ! -d /home/dokku/metplus-pets-staging ]] | |
+++ return 0 | |
+++ [[ -f /home/dokku/metplus-pets-staging/CONTAINER ]] | |
+++ [[ -n '' ]] | |
+++ local 'CONTAINER_PATTERN=/home/dokku/metplus-pets-staging/CONTAINER.*' | |
+++ shopt -s nullglob | |
+++ local DOKKU_CID_FILE | |
+++ for DOKKU_CID_FILE in '$CONTAINER_PATTERN' | |
+++ local 'DOKKU_CIDS+= ' | |
+++ local DOKKU_CIDS+=88ed36d2e662c31d322f2997cb41465297d854c8d2823455904a6452f49e667c | |
+++ local 'DOKKU_CIDS+= ' | |
+++ shopt -u nullglob | |
+++ echo ' 88ed36d2e662c31d322f2997cb41465297d854c8d2823455904a6452f49e667c ' | |
++ local CIDS | |
+++ docker inspect -f '{{ .Config.Image }}' 88ed36d2e662c31d322f2997cb41465297d854c8d2823455904a6452f49e667c | |
+++ awk -F: '{ print $2 }' | |
++ local RUNNING_IMAGE_TAG=latest | |
++ echo latest | |
+ local IMAGE_TAG=latest | |
++ get_deploying_app_image_name metplus-pets-staging latest | |
++ declare 'desc=return deploying image identifier for a given app, tag tuple. validate if tag is presented' | |
++ local APP=metplus-pets-staging | |
++ local IMAGE_TAG=latest | |
++ IMAGE_REPO= | |
++ [[ -z metplus-pets-staging ]] | |
+++ plugn trigger deployed-app-repository metplus-pets-staging | |
+ source /var/lib/dokku/core-plugins/available/common/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ [[ ! -n '' ]] | |
++ local IMAGE_REMOTE_REPOSITORY= | |
+++ plugn trigger deployed-app-image-tag metplus-pets-staging | |
+ source /var/lib/dokku/core-plugins/available/common/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ [[ ! -n '' ]] | |
++ local NEW_IMAGE_TAG= | |
+++ plugn trigger deployed-app-image-repo metplus-pets-staging | |
+ source /var/lib/dokku/core-plugins/available/common/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ [[ ! -n '' ]] | |
++ local NEW_IMAGE_REPO= | |
++ [[ -n '' ]] | |
++ [[ -n '' ]] | |
++ [[ -z '' ]] | |
+++ get_app_image_repo metplus-pets-staging | |
+++ declare 'desc=central definition of image repo pattern' | |
+++ local APP=metplus-pets-staging | |
+++ local IMAGE_REPO=dokku/metplus-pets-staging | |
+++ [[ -z metplus-pets-staging ]] | |
+++ echo dokku/metplus-pets-staging | |
++ IMAGE_REPO=dokku/metplus-pets-staging | |
++ [[ -z latest ]] | |
++ local IMAGE=dokku/metplus-pets-staging:latest | |
++ verify_image dokku/metplus-pets-staging:latest | |
++ declare 'desc=verify image existence' | |
++ local IMAGE=dokku/metplus-pets-staging:latest | |
++ docker inspect dokku/metplus-pets-staging:latest | |
++ return 0 | |
++ echo dokku/metplus-pets-staging:latest | |
+ local IMAGE=dokku/metplus-pets-staging:latest | |
+ verify_app_name metplus-pets-staging | |
+ declare 'desc=verify app name format and app existence' | |
+ local APP=metplus-pets-staging | |
+ [[ ! -n metplus-pets-staging ]] | |
+ [[ ! metplus-pets-staging =~ ^[a-z].* ]] | |
+ [[ ! -d /home/dokku/metplus-pets-staging ]] | |
+ return 0 | |
+ shift 2 | |
+ [[ -z '' ]] | |
++ config_get metplus-pets-staging DOKKU_RM_CONTAINER | |
++ declare 'desc=get value of given config var' | |
++ [[ metplus-pets-staging == \c\o\n\f\i\g\:\g\e\t ]] | |
++ set -- config:get metplus-pets-staging DOKKU_RM_CONTAINER | |
++ config_parse_args config:get metplus-pets-staging DOKKU_RM_CONTAINER | |
++ declare 'desc=parse config plugin args' | |
++ unset APP ENV_FILE DOKKU_CONFIG_TYPE DOKKU_CONFIG_RESTART DOKKU_CONFIG_EXPORT | |
++ for var in '"$@"' | |
++ [[ config:get == \-\-\g\l\o\b\a\l ]] | |
++ [[ config:get == \-\-\n\o\-\r\e\s\t\a\r\t ]] | |
++ [[ config:get == \-\-\e\x\p\o\r\t ]] | |
++ [[ config:get == \-\-\s\h\e\l\l ]] | |
++ for var in '"$@"' | |
++ [[ metplus-pets-staging == \-\-\g\l\o\b\a\l ]] | |
++ [[ metplus-pets-staging == \-\-\n\o\-\r\e\s\t\a\r\t ]] | |
++ [[ metplus-pets-staging == \-\-\e\x\p\o\r\t ]] | |
++ [[ metplus-pets-staging == \-\-\s\h\e\l\l ]] | |
++ for var in '"$@"' | |
++ [[ DOKKU_RM_CONTAINER == \-\-\g\l\o\b\a\l ]] | |
++ [[ DOKKU_RM_CONTAINER == \-\-\n\o\-\r\e\s\t\a\r\t ]] | |
++ [[ DOKKU_RM_CONTAINER == \-\-\e\x\p\o\r\t ]] | |
++ [[ DOKKU_RM_CONTAINER == \-\-\s\h\e\l\l ]] | |
++ SANITIZED_ARGS=($(get_sanitized_config_args "$@")) | |
+++ get_sanitized_config_args config:get metplus-pets-staging DOKKU_RM_CONTAINER | |
+++ local 'desc=return sanitized arguments for config plugin' | |
+++ SANITIZED_ARGS=("$@") | |
+++ local SANITIZED_ARGS | |
+++ SANITIZED_ARGS=("${SANITIZED_ARGS[@]//--global/}") | |
+++ SANITIZED_ARGS=("${SANITIZED_ARGS[@]//--no-restart/}") | |
+++ SANITIZED_ARGS=("${SANITIZED_ARGS[@]//--export/}") | |
+++ SANITIZED_ARGS=("${SANITIZED_ARGS[@]//--shell/}") | |
+++ echo config:get metplus-pets-staging DOKKU_RM_CONTAINER | |
++ local SANITIZED_ARGS | |
++ set -- config:get metplus-pets-staging DOKKU_RM_CONTAINER | |
++ DOKKU_CONFIG_TYPE=app | |
++ DOKKU_CONFIG_RESTART=true | |
++ [[ app == \a\p\p ]] | |
++ [[ -z metplus-pets-staging ]] | |
++ verify_app_name metplus-pets-staging | |
++ declare 'desc=verify app name format and app existence' | |
++ local APP=metplus-pets-staging | |
++ [[ ! -n metplus-pets-staging ]] | |
++ [[ ! metplus-pets-staging =~ ^[a-z].* ]] | |
++ [[ ! -d /home/dokku/metplus-pets-staging ]] | |
++ return 0 | |
++ APP=metplus-pets-staging | |
++ ENV_FILE=/home/dokku/metplus-pets-staging/ENV | |
++ export APP ENV_FILE DOKKU_CONFIG_TYPE DOKKU_CONFIG_RESTART DOKKU_CONFIG_EXPORT | |
++ SANITIZED_ARGS=($(get_sanitized_config_args "$@")) | |
+++ get_sanitized_config_args config:get metplus-pets-staging DOKKU_RM_CONTAINER | |
+++ local 'desc=return sanitized arguments for config plugin' | |
+++ SANITIZED_ARGS=("$@") | |
+++ local SANITIZED_ARGS | |
+++ SANITIZED_ARGS=("${SANITIZED_ARGS[@]//--global/}") | |
+++ SANITIZED_ARGS=("${SANITIZED_ARGS[@]//--no-restart/}") | |
+++ SANITIZED_ARGS=("${SANITIZED_ARGS[@]//--export/}") | |
+++ SANITIZED_ARGS=("${SANITIZED_ARGS[@]//--shell/}") | |
+++ echo config:get metplus-pets-staging DOKKU_RM_CONTAINER | |
++ local SANITIZED_ARGS | |
++ set -- config:get metplus-pets-staging DOKKU_RM_CONTAINER | |
++ [[ -z metplus-pets-staging ]] | |
++ config_create /home/dokku/metplus-pets-staging/ENV | |
++ declare 'desc=create config env file' | |
++ local ENV_FILE=/home/dokku/metplus-pets-staging/ENV | |
++ [[ -f /home/dokku/metplus-pets-staging/ENV ]] | |
++ [[ ! -s /home/dokku/metplus-pets-staging/ENV ]] | |
++ local KEY=DOKKU_RM_CONTAINER | |
++ grep -Eo 'export ([a-zA-Z_][a-zA-Z0-9_]*=.*)' /home/dokku/metplus-pets-staging/ENV | |
++ sed -e 's/^'\''//' -e 's/'\''$//' | |
++ cut -d= -f2- | |
++ grep '^export DOKKU_RM_CONTAINER=' | |
++ true | |
+ local DOKKU_APP_RM_CONTAINER= | |
++ config_get --global DOKKU_RM_CONTAINER | |
++ declare 'desc=get value of given config var' | |
++ [[ --global == \c\o\n\f\i\g\:\g\e\t ]] | |
++ set -- config:get --global DOKKU_RM_CONTAINER | |
++ config_parse_args config:get --global DOKKU_RM_CONTAINER | |
++ declare 'desc=parse config plugin args' | |
++ unset APP ENV_FILE DOKKU_CONFIG_TYPE DOKKU_CONFIG_RESTART DOKKU_CONFIG_EXPORT | |
++ for var in '"$@"' | |
++ [[ config:get == \-\-\g\l\o\b\a\l ]] | |
++ [[ config:get == \-\-\n\o\-\r\e\s\t\a\r\t ]] | |
++ [[ config:get == \-\-\e\x\p\o\r\t ]] | |
++ [[ config:get == \-\-\s\h\e\l\l ]] | |
++ for var in '"$@"' | |
++ [[ --global == \-\-\g\l\o\b\a\l ]] | |
++ ENV_FILE=/home/dokku/ENV | |
++ DOKKU_CONFIG_TYPE=global | |
++ DOKKU_CONFIG_RESTART=false | |
++ [[ --global == \-\-\n\o\-\r\e\s\t\a\r\t ]] | |
++ [[ --global == \-\-\e\x\p\o\r\t ]] | |
++ [[ --global == \-\-\s\h\e\l\l ]] | |
++ for var in '"$@"' | |
++ [[ DOKKU_RM_CONTAINER == \-\-\g\l\o\b\a\l ]] | |
++ [[ DOKKU_RM_CONTAINER == \-\-\n\o\-\r\e\s\t\a\r\t ]] | |
++ [[ DOKKU_RM_CONTAINER == \-\-\e\x\p\o\r\t ]] | |
++ [[ DOKKU_RM_CONTAINER == \-\-\s\h\e\l\l ]] | |
++ SANITIZED_ARGS=($(get_sanitized_config_args "$@")) | |
+++ get_sanitized_config_args config:get --global DOKKU_RM_CONTAINER | |
+++ local 'desc=return sanitized arguments for config plugin' | |
+++ SANITIZED_ARGS=("$@") | |
+++ local SANITIZED_ARGS | |
+++ SANITIZED_ARGS=("${SANITIZED_ARGS[@]//--global/}") | |
+++ SANITIZED_ARGS=("${SANITIZED_ARGS[@]//--no-restart/}") | |
+++ SANITIZED_ARGS=("${SANITIZED_ARGS[@]//--export/}") | |
+++ SANITIZED_ARGS=("${SANITIZED_ARGS[@]//--shell/}") | |
+++ echo config:get '' DOKKU_RM_CONTAINER | |
++ local SANITIZED_ARGS | |
++ set -- config:get DOKKU_RM_CONTAINER | |
++ DOKKU_CONFIG_TYPE=global | |
++ DOKKU_CONFIG_RESTART=false | |
++ [[ global == \a\p\p ]] | |
++ export APP ENV_FILE DOKKU_CONFIG_TYPE DOKKU_CONFIG_RESTART DOKKU_CONFIG_EXPORT | |
++ SANITIZED_ARGS=($(get_sanitized_config_args "$@")) | |
+++ get_sanitized_config_args config:get --global DOKKU_RM_CONTAINER | |
+++ local 'desc=return sanitized arguments for config plugin' | |
+++ SANITIZED_ARGS=("$@") | |
+++ local SANITIZED_ARGS | |
+++ SANITIZED_ARGS=("${SANITIZED_ARGS[@]//--global/}") | |
+++ SANITIZED_ARGS=("${SANITIZED_ARGS[@]//--no-restart/}") | |
+++ SANITIZED_ARGS=("${SANITIZED_ARGS[@]//--export/}") | |
+++ SANITIZED_ARGS=("${SANITIZED_ARGS[@]//--shell/}") | |
+++ echo config:get '' DOKKU_RM_CONTAINER | |
++ local SANITIZED_ARGS | |
++ set -- config:get DOKKU_RM_CONTAINER | |
++ [[ -z DOKKU_RM_CONTAINER ]] | |
++ config_create /home/dokku/ENV | |
++ declare 'desc=create config env file' | |
++ local ENV_FILE=/home/dokku/ENV | |
++ [[ -f /home/dokku/ENV ]] | |
++ [[ ! -s /home/dokku/ENV ]] | |
++ local KEY=DOKKU_RM_CONTAINER | |
++ grep -Eo 'export ([a-zA-Z_][a-zA-Z0-9_]*=.*)' /home/dokku/ENV | |
++ sed -e 's/^'\''//' -e 's/'\''$//' | |
++ cut -d= -f2- | |
++ grep '^export DOKKU_RM_CONTAINER=' | |
++ true | |
+ local DOKKU_GLOBAL_RM_CONTAINER= | |
+ local DOKKU_RM_CONTAINER= | |
++ : | |
++ plugn trigger docker-args-run metplus-pets-staging latest | |
+ 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 | |
+ app_user_docker_args metplus-pets-staging latest | |
+ local APP=metplus-pets-staging | |
+ local STDIN | |
+ local DOKKU_APP_TYPE | |
+ local DOKKU_APP_USER | |
++ cat | |
+ STDIN= | |
++ config_get metplus-pets-staging DOKKU_APP_TYPE | |
++ declare 'desc=get value of given config var' | |
++ [[ metplus-pets-staging == \c\o\n\f\i\g\:\g\e\t ]] | |
++ set -- config:get metplus-pets-staging DOKKU_APP_TYPE | |
++ config_parse_args config:get metplus-pets-staging DOKKU_APP_TYPE | |
++ declare 'desc=parse config plugin args' | |
++ unset APP ENV_FILE DOKKU_CONFIG_TYPE DOKKU_CONFIG_RESTART DOKKU_CONFIG_EXPORT | |
++ for var in '"$@"' | |
++ [[ config:get == \-\-\g\l\o\b\a\l ]] | |
++ [[ config:get == \-\-\n\o\-\r\e\s\t\a\r\t ]] | |
++ [[ config:get == \-\-\e\x\p\o\r\t ]] | |
++ [[ config:get == \-\-\s\h\e\l\l ]] | |
++ for var in '"$@"' | |
++ [[ metplus-pets-staging == \-\-\g\l\o\b\a\l ]] | |
++ [[ metplus-pets-staging == \-\-\n\o\-\r\e\s\t\a\r\t ]] | |
++ [[ metplus-pets-staging == \-\-\e\x\p\o\r\t ]] | |
++ [[ metplus-pets-staging == \-\-\s\h\e\l\l ]] | |
++ for var in '"$@"' | |
++ [[ DOKKU_APP_TYPE == \-\-\g\l\o\b\a\l ]] | |
++ [[ DOKKU_APP_TYPE == \-\-\n\o\-\r\e\s\t\a\r\t ]] | |
++ [[ DOKKU_APP_TYPE == \-\-\e\x\p\o\r\t ]] | |
++ [[ DOKKU_APP_TYPE == \-\-\s\h\e\l\l ]] | |
++ SANITIZED_ARGS=($(get_sanitized_config_args "$@")) | |
+++ get_sanitized_config_args config:get metplus-pets-staging DOKKU_APP_TYPE | |
+++ local 'desc=return sanitized arguments for config plugin' | |
+++ SANITIZED_ARGS=("$@") | |
+++ local SANITIZED_ARGS | |
+++ SANITIZED_ARGS=("${SANITIZED_ARGS[@]//--global/}") | |
+++ SANITIZED_ARGS=("${SANITIZED_ARGS[@]//--no-restart/}") | |
+++ SANITIZED_ARGS=("${SANITIZED_ARGS[@]//--export/}") | |
+++ SANITIZED_ARGS=("${SANITIZED_ARGS[@]//--shell/}") | |
+++ echo config:get metplus-pets-staging DOKKU_APP_TYPE | |
++ local SANITIZED_ARGS | |
++ set -- config:get metplus-pets-staging DOKKU_APP_TYPE | |
++ DOKKU_CONFIG_TYPE=app | |
++ DOKKU_CONFIG_RESTART=true | |
++ [[ app == \a\p\p ]] | |
++ [[ -z metplus-pets-staging ]] | |
++ verify_app_name metplus-pets-staging | |
++ declare 'desc=verify app name format and app existence' | |
++ local APP=metplus-pets-staging | |
++ [[ ! -n metplus-pets-staging ]] | |
++ [[ ! metplus-pets-staging =~ ^[a-z].* ]] | |
++ [[ ! -d /home/dokku/metplus-pets-staging ]] | |
++ return 0 | |
++ APP=metplus-pets-staging | |
++ ENV_FILE=/home/dokku/metplus-pets-staging/ENV | |
++ export APP ENV_FILE DOKKU_CONFIG_TYPE DOKKU_CONFIG_RESTART DOKKU_CONFIG_EXPORT | |
++ SANITIZED_ARGS=($(get_sanitized_config_args "$@")) | |
+++ get_sanitized_config_args config:get metplus-pets-staging DOKKU_APP_TYPE | |
+++ local 'desc=return sanitized arguments for config plugin' | |
+++ SANITIZED_ARGS=("$@") | |
+++ local SANITIZED_ARGS | |
+++ SANITIZED_ARGS=("${SANITIZED_ARGS[@]//--global/}") | |
+++ SANITIZED_ARGS=("${SANITIZED_ARGS[@]//--no-restart/}") | |
+++ SANITIZED_ARGS=("${SANITIZED_ARGS[@]//--export/}") | |
+++ SANITIZED_ARGS=("${SANITIZED_ARGS[@]//--shell/}") | |
+++ echo config:get metplus-pets-staging DOKKU_APP_TYPE | |
++ local SANITIZED_ARGS | |
++ set -- config:get metplus-pets-staging DOKKU_APP_TYPE | |
++ [[ -z metplus-pets-staging ]] | |
++ config_create /home/dokku/metplus-pets-staging/ENV | |
++ declare 'desc=create config env file' | |
++ local ENV_FILE=/home/dokku/metplus-pets-staging/ENV | |
++ [[ -f /home/dokku/metplus-pets-staging/ENV ]] | |
++ [[ ! -s /home/dokku/metplus-pets-staging/ENV ]] | |
++ local KEY=DOKKU_APP_TYPE | |
++ grep -Eo 'export ([a-zA-Z_][a-zA-Z0-9_]*=.*)' /home/dokku/metplus-pets-staging/ENV | |
++ sed -e 's/^'\''//' -e 's/'\''$//' | |
++ cut -d= -f2- | |
++ grep '^export DOKKU_APP_TYPE=' | |
+ DOKKU_APP_TYPE=herokuish | |
++ config_get metplus-pets-staging DOKKU_APP_USER | |
++ declare 'desc=get value of given config var' | |
++ [[ metplus-pets-staging == \c\o\n\f\i\g\:\g\e\t ]] | |
++ set -- config:get metplus-pets-staging DOKKU_APP_USER | |
++ config_parse_args config:get metplus-pets-staging DOKKU_APP_USER | |
++ declare 'desc=parse config plugin args' | |
++ unset APP ENV_FILE DOKKU_CONFIG_TYPE DOKKU_CONFIG_RESTART DOKKU_CONFIG_EXPORT | |
++ for var in '"$@"' | |
++ [[ config:get == \-\-\g\l\o\b\a\l ]] | |
++ [[ config:get == \-\-\n\o\-\r\e\s\t\a\r\t ]] | |
++ [[ config:get == \-\-\e\x\p\o\r\t ]] | |
++ [[ config:get == \-\-\s\h\e\l\l ]] | |
++ for var in '"$@"' | |
++ [[ metplus-pets-staging == \-\-\g\l\o\b\a\l ]] | |
++ [[ metplus-pets-staging == \-\-\n\o\-\r\e\s\t\a\r\t ]] | |
++ [[ metplus-pets-staging == \-\-\e\x\p\o\r\t ]] | |
++ [[ metplus-pets-staging == \-\-\s\h\e\l\l ]] | |
++ for var in '"$@"' | |
++ [[ DOKKU_APP_USER == \-\-\g\l\o\b\a\l ]] | |
++ [[ DOKKU_APP_USER == \-\-\n\o\-\r\e\s\t\a\r\t ]] | |
++ [[ DOKKU_APP_USER == \-\-\e\x\p\o\r\t ]] | |
++ [[ DOKKU_APP_USER == \-\-\s\h\e\l\l ]] | |
++ SANITIZED_ARGS=($(get_sanitized_config_args "$@")) | |
+++ get_sanitized_config_args config:get metplus-pets-staging DOKKU_APP_USER | |
+++ local 'desc=return sanitized arguments for config plugin' | |
+++ SANITIZED_ARGS=("$@") | |
+++ local SANITIZED_ARGS | |
+++ SANITIZED_ARGS=("${SANITIZED_ARGS[@]//--global/}") | |
+++ SANITIZED_ARGS=("${SANITIZED_ARGS[@]//--no-restart/}") | |
+++ SANITIZED_ARGS=("${SANITIZED_ARGS[@]//--export/}") | |
+++ SANITIZED_ARGS=("${SANITIZED_ARGS[@]//--shell/}") | |
+++ echo config:get metplus-pets-staging DOKKU_APP_USER | |
++ local SANITIZED_ARGS | |
++ set -- config:get metplus-pets-staging DOKKU_APP_USER | |
++ DOKKU_CONFIG_TYPE=app | |
++ DOKKU_CONFIG_RESTART=true | |
++ [[ app == \a\p\p ]] | |
++ [[ -z metplus-pets-staging ]] | |
++ verify_app_name metplus-pets-staging | |
++ declare 'desc=verify app name format and app existence' | |
++ local APP=metplus-pets-staging | |
++ [[ ! -n metplus-pets-staging ]] | |
++ [[ ! metplus-pets-staging =~ ^[a-z].* ]] | |
++ [[ ! -d /home/dokku/metplus-pets-staging ]] | |
++ return 0 | |
++ APP=metplus-pets-staging | |
++ ENV_FILE=/home/dokku/metplus-pets-staging/ENV | |
++ export APP ENV_FILE DOKKU_CONFIG_TYPE DOKKU_CONFIG_RESTART DOKKU_CONFIG_EXPORT | |
++ SANITIZED_ARGS=($(get_sanitized_config_args "$@")) | |
+++ get_sanitized_config_args config:get metplus-pets-staging DOKKU_APP_USER | |
+++ local 'desc=return sanitized arguments for config plugin' | |
+++ SANITIZED_ARGS=("$@") | |
+++ local SANITIZED_ARGS | |
+++ SANITIZED_ARGS=("${SANITIZED_ARGS[@]//--global/}") | |
+++ SANITIZED_ARGS=("${SANITIZED_ARGS[@]//--no-restart/}") | |
+++ SANITIZED_ARGS=("${SANITIZED_ARGS[@]//--export/}") | |
+++ SANITIZED_ARGS=("${SANITIZED_ARGS[@]//--shell/}") | |
+++ echo config:get metplus-pets-staging DOKKU_APP_USER | |
++ local SANITIZED_ARGS | |
++ set -- config:get metplus-pets-staging DOKKU_APP_USER | |
++ [[ -z metplus-pets-staging ]] | |
++ config_create /home/dokku/metplus-pets-staging/ENV | |
++ declare 'desc=create config env file' | |
++ local ENV_FILE=/home/dokku/metplus-pets-staging/ENV | |
++ [[ -f /home/dokku/metplus-pets-staging/ENV ]] | |
++ [[ ! -s /home/dokku/metplus-pets-staging/ENV ]] | |
++ local KEY=DOKKU_APP_USER | |
++ grep -Eo 'export ([a-zA-Z_][a-zA-Z0-9_]*=.*)' /home/dokku/metplus-pets-staging/ENV | |
++ grep '^export DOKKU_APP_USER=' | |
++ cut -d= -f2- | |
++ sed -e 's/^'\''//' -e 's/'\''$//' | |
++ true | |
+ DOKKU_APP_USER= | |
+ DOKKU_APP_USER=herokuishuser | |
+ [[ herokuish == \h\e\r\o\k\u\i\s\h ]] | |
+ local 'docker_args= --env=USER=herokuishuser' | |
+ echo -n ' --env=USER=herokuishuser' | |
+ 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 | |
+ 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 | |
+ config_docker_args metplus-pets-staging latest | |
+ declare 'desc=config docker-args plugin trigger' | |
+ local 'trigger=/var/lib/dokku/plugins/enabled/config/docker-args-run config_docker_args' | |
++ cat | |
+ local STDIN= | |
+ local APP=metplus-pets-staging | |
+ local IMAGE_TAG=latest | |
++ get_deploying_app_image_name metplus-pets-staging latest | |
++ declare 'desc=return deploying image identifier for a given app, tag tuple. validate if tag is presented' | |
++ local APP=metplus-pets-staging | |
++ local IMAGE_TAG=latest | |
++ IMAGE_REPO= | |
++ [[ -z metplus-pets-staging ]] | |
+++ plugn trigger deployed-app-repository metplus-pets-staging | |
+ source /var/lib/dokku/core-plugins/available/common/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ [[ ! -n '' ]] | |
++ local IMAGE_REMOTE_REPOSITORY= | |
+++ plugn trigger deployed-app-image-tag metplus-pets-staging | |
+ source /var/lib/dokku/core-plugins/available/common/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ [[ ! -n '' ]] | |
++ local NEW_IMAGE_TAG= | |
+++ plugn trigger deployed-app-image-repo metplus-pets-staging | |
+ source /var/lib/dokku/core-plugins/available/common/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ [[ ! -n '' ]] | |
++ local NEW_IMAGE_REPO= | |
++ [[ -n '' ]] | |
++ [[ -n '' ]] | |
++ [[ -z '' ]] | |
+++ get_app_image_repo metplus-pets-staging | |
+++ declare 'desc=central definition of image repo pattern' | |
+++ local APP=metplus-pets-staging | |
+++ local IMAGE_REPO=dokku/metplus-pets-staging | |
+++ [[ -z metplus-pets-staging ]] | |
+++ echo dokku/metplus-pets-staging | |
++ IMAGE_REPO=dokku/metplus-pets-staging | |
++ [[ -z latest ]] | |
++ local IMAGE=dokku/metplus-pets-staging:latest | |
++ verify_image dokku/metplus-pets-staging:latest | |
++ declare 'desc=verify image existence' | |
++ local IMAGE=dokku/metplus-pets-staging:latest | |
++ docker inspect dokku/metplus-pets-staging:latest | |
++ return 0 | |
++ echo dokku/metplus-pets-staging:latest | |
+ local IMAGE=dokku/metplus-pets-staging:latest | |
+ local DOCKERFILE_ENV_FILE=/home/dokku/metplus-pets-staging/DOCKERFILE_ENV_FILE | |
+ verify_app_name metplus-pets-staging | |
+ declare 'desc=verify app name format and app existence' | |
+ local APP=metplus-pets-staging | |
+ [[ ! -n metplus-pets-staging ]] | |
+ [[ ! metplus-pets-staging =~ ^[a-z].* ]] | |
+ [[ ! -d /home/dokku/metplus-pets-staging ]] | |
+ return 0 | |
+ is_image_herokuish_based dokku/metplus-pets-staging:latest | |
+ declare 'desc=returns true if app image is based on herokuish' | |
+ [[ ! -f /home/ubuntu/.circlerc ]] | |
+ local DOCKER_ARGS=--rm | |
+ docker run --label=dokku --entrypoint=/bin/sh --rm dokku/metplus-pets-staging:latest -c 'test -f /exec' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment