Created
October 26, 2015 18:18
-
-
Save michaelshobbs/d5339b8d20451161bff0 to your computer and use it in GitHub Desktop.
original dokku trace from https://github.com/progrium/dokku/issues/1611
This file contains 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
levy@projects:~$ dokku ps:rebuild earthquakes | |
+ parse_args ps:rebuild earthquakes | |
+ for arg in '"$@"' | |
+ case "$arg" in | |
+ for arg in '"$@"' | |
+ case "$arg" in | |
+ return 0 | |
+ args=("$@") | |
+ [[ ps:rebuild =~ ^--.* ]] | |
+ has_tty | |
++ /usr/bin/tty | |
+ [[ /dev/pts/0 == \n\o\t\ \a\ \t\t\y ]] | |
+ return 0 | |
++ id -un | |
+ [[ levy != \d\o\k\k\u ]] | |
+ [[ ps:rebuild != plugin:*install* ]] | |
+ [[ ps:rebuild != \p\l\u\g\i\n\:\u\p\d\a\t\e ]] | |
+ [[ ps:rebuild != nginx:*-logs ]] | |
+ sudo -u dokku -E -H /usr/local/bin/dokku ps:rebuild earthquakes | |
+ [[ -f /home/dokku/dokkurc ]] | |
+ [[ -d /home/dokku/.dokkurc ]] | |
+ for f in '$DOKKU_ROOT/.dokkurc/*' | |
+ source /home/dokku/.dokkurc/DOKKU_TRACE | |
++ export DOKKU_TRACE=1 | |
++ DOKKU_TRACE=1 | |
+ [[ -n 1 ]] | |
+ set -x | |
+ parse_args ps:rebuild earthquakes | |
+ for arg in '"$@"' | |
+ case "$arg" in | |
+ for arg in '"$@"' | |
+ case "$arg" in | |
+ return 0 | |
+ args=("$@") | |
+ [[ ps:rebuild =~ ^--.* ]] | |
+ has_tty | |
++ /usr/bin/tty | |
+ [[ /dev/pts/0 == \n\o\t\ \a\ \t\t\y ]] | |
+ return 0 | |
++ id -un | |
+ [[ dokku != \d\o\k\k\u ]] | |
+ [[ -n '' ]] | |
+ case "$1" in | |
+ implemented=0 | |
+ for script in '$PLUGIN_ENABLED_PATH/*/commands' | |
+ set +e | |
+ /var/lib/dokku/plugins/enabled/00_dokku-standard/commands ps:rebuild earthquakes | |
+ 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 ps:rebuild earthquakes | |
+ 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 ps:rebuild earthquakes | |
+ exit_code=10 | |
+ set -e | |
+ [[ 10 -eq 10 ]] | |
+ continue | |
+ for script in '$PLUGIN_ENABLED_PATH/*/commands' | |
+ set +e | |
+ /var/lib/dokku/plugins/enabled/backup/commands ps:rebuild earthquakes | |
+ 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 ps:rebuild earthquakes | |
+ 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 ps:rebuild earthquakes | |
+ 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 ps:rebuild earthquakes | |
+ exit_code=10 | |
+ set -e | |
+ [[ 10 -eq 10 ]] | |
+ continue | |
+ for script in '$PLUGIN_ENABLED_PATH/*/commands' | |
+ set +e | |
+ /var/lib/dokku/plugins/enabled/dokku-mongo/commands ps:rebuild earthquakes | |
+ PLUGIN_BASE_PATH=/var/lib/dokku/plugins | |
+ [[ -n 1 ]] | |
+ PLUGIN_BASE_PATH=/var/lib/dokku/plugins/enabled | |
+ source /var/lib/dokku/plugins/enabled/common/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
++ dirname /var/lib/dokku/plugins/enabled/dokku-mongo/commands | |
+ source /var/lib/dokku/plugins/enabled/dokku-mongo/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+++ dirname /var/lib/dokku/plugins/enabled/dokku-mongo/commands | |
++ source /var/lib/dokku/plugins/enabled/dokku-mongo/config | |
+++ export MONGO_IMAGE=mongo | |
+++ MONGO_IMAGE=mongo | |
+++ export MONGO_IMAGE_VERSION=3.0.6 | |
+++ MONGO_IMAGE_VERSION=3.0.6 | |
+++ export MONGO_ROOT=/var/lib/dokku/services/mongo | |
+++ MONGO_ROOT=/var/lib/dokku/services/mongo | |
+++ export PLUGIN_COMMAND_PREFIX=mongo | |
+++ PLUGIN_COMMAND_PREFIX=mongo | |
+++ export PLUGIN_DATA_ROOT=/var/lib/dokku/services/mongo | |
+++ PLUGIN_DATA_ROOT=/var/lib/dokku/services/mongo | |
+++ PLUGIN_DATASTORE_PORTS=(27017 27018 27019 28017) | |
+++ export PLUGIN_DATASTORE_PORTS | |
+++ export PLUGIN_DEFAULT_ALIAS=MONGO | |
+++ PLUGIN_DEFAULT_ALIAS=MONGO | |
+++ export PLUGIN_IMAGE=mongo | |
+++ PLUGIN_IMAGE=mongo | |
+++ export PLUGIN_IMAGE_VERSION=3.0.6 | |
+++ PLUGIN_IMAGE_VERSION=3.0.6 | |
+++ export PLUGIN_SCHEME=mongodb | |
+++ PLUGIN_SCHEME=mongodb | |
+++ export PLUGIN_SERVICE=MongoDB | |
+++ PLUGIN_SERVICE=MongoDB | |
++ dirname /var/lib/dokku/plugins/enabled/dokku-mongo/commands | |
+ source /var/lib/dokku/plugins/enabled/dokku-mongo/config | |
++ export MONGO_IMAGE=mongo | |
++ MONGO_IMAGE=mongo | |
++ export MONGO_IMAGE_VERSION=3.0.6 | |
++ MONGO_IMAGE_VERSION=3.0.6 | |
++ export MONGO_ROOT=/var/lib/dokku/services/mongo | |
++ MONGO_ROOT=/var/lib/dokku/services/mongo | |
++ export PLUGIN_COMMAND_PREFIX=mongo | |
++ PLUGIN_COMMAND_PREFIX=mongo | |
++ export PLUGIN_DATA_ROOT=/var/lib/dokku/services/mongo | |
++ PLUGIN_DATA_ROOT=/var/lib/dokku/services/mongo | |
++ PLUGIN_DATASTORE_PORTS=(27017 27018 27019 28017) | |
++ export PLUGIN_DATASTORE_PORTS | |
++ export PLUGIN_DEFAULT_ALIAS=MONGO | |
++ PLUGIN_DEFAULT_ALIAS=MONGO | |
++ export PLUGIN_IMAGE=mongo | |
++ PLUGIN_IMAGE=mongo | |
++ export PLUGIN_IMAGE_VERSION=3.0.6 | |
++ PLUGIN_IMAGE_VERSION=3.0.6 | |
++ export PLUGIN_SCHEME=mongodb | |
++ PLUGIN_SCHEME=mongodb | |
++ export PLUGIN_SERVICE=MongoDB | |
++ PLUGIN_SERVICE=MongoDB | |
+ [[ ps:rebuild == mongo:* ]] | |
+ 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/domains/commands ps:rebuild earthquakes | |
+ 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 ps:rebuild earthquakes | |
+ 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 ps:rebuild earthquakes | |
+ source /var/lib/dokku/core-plugins/available/common/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/nginx-vhosts/commands ps:rebuild earthquakes | |
+ 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 ps:rebuild earthquakes | |
+ 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 ps:rebuild earthquakes | |
+ 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 | |
+ case "$1" in | |
+ [[ -z earthquakes ]] | |
+ APP=earthquakes | |
+ verify_app_name earthquakes | |
+ local APP=earthquakes | |
+ [[ ! -n earthquakes ]] | |
+ [[ ! -d /home/dokku/earthquakes ]] | |
+ return 0 | |
+ plugn trigger receive-app earthquakes | |
+ 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 | |
+ APP=earthquakes | |
+ REV= | |
+ [[ ! -d /home/dokku/earthquakes/refs ]] | |
+ dokku git-build earthquakes | |
+ [[ -f /home/dokku/dokkurc ]] | |
+ [[ -d /home/dokku/.dokkurc ]] | |
+ for f in '$DOKKU_ROOT/.dokkurc/*' | |
+ source /home/dokku/.dokkurc/DOKKU_TRACE | |
++ export DOKKU_TRACE=1 | |
++ DOKKU_TRACE=1 | |
+ [[ -n 1 ]] | |
+ set -x | |
+ parse_args git-build earthquakes | |
+ for arg in '"$@"' | |
+ case "$arg" in | |
+ for arg in '"$@"' | |
+ case "$arg" in | |
+ return 0 | |
+ args=("$@") | |
+ [[ git-build =~ ^--.* ]] | |
+ has_tty | |
++ /usr/bin/tty | |
+ [[ /dev/pts/0 == \n\o\t\ \a\ \t\t\y ]] | |
+ return 0 | |
++ id -un | |
+ [[ dokku != \d\o\k\k\u ]] | |
+ [[ -n '' ]] | |
+ case "$1" in | |
+ implemented=0 | |
+ for script in '$PLUGIN_ENABLED_PATH/*/commands' | |
+ set +e | |
+ /var/lib/dokku/plugins/enabled/00_dokku-standard/commands git-build earthquakes | |
+ 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-build earthquakes | |
+ 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-build earthquakes | |
+ exit_code=10 | |
+ set -e | |
+ [[ 10 -eq 10 ]] | |
+ continue | |
+ for script in '$PLUGIN_ENABLED_PATH/*/commands' | |
+ set +e | |
+ /var/lib/dokku/plugins/enabled/backup/commands git-build earthquakes | |
+ 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-build earthquakes | |
+ 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-build earthquakes | |
+ 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-build earthquakes | |
+ exit_code=10 | |
+ set -e | |
+ [[ 10 -eq 10 ]] | |
+ continue | |
+ for script in '$PLUGIN_ENABLED_PATH/*/commands' | |
+ set +e | |
+ /var/lib/dokku/plugins/enabled/dokku-mongo/commands git-build earthquakes | |
+ PLUGIN_BASE_PATH=/var/lib/dokku/plugins | |
+ [[ -n 1 ]] | |
+ PLUGIN_BASE_PATH=/var/lib/dokku/plugins/enabled | |
+ source /var/lib/dokku/plugins/enabled/common/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
++ dirname /var/lib/dokku/plugins/enabled/dokku-mongo/commands | |
+ source /var/lib/dokku/plugins/enabled/dokku-mongo/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+++ dirname /var/lib/dokku/plugins/enabled/dokku-mongo/commands | |
++ source /var/lib/dokku/plugins/enabled/dokku-mongo/config | |
+++ export MONGO_IMAGE=mongo | |
+++ MONGO_IMAGE=mongo | |
+++ export MONGO_IMAGE_VERSION=3.0.6 | |
+++ MONGO_IMAGE_VERSION=3.0.6 | |
+++ export MONGO_ROOT=/var/lib/dokku/services/mongo | |
+++ MONGO_ROOT=/var/lib/dokku/services/mongo | |
+++ export PLUGIN_COMMAND_PREFIX=mongo | |
+++ PLUGIN_COMMAND_PREFIX=mongo | |
+++ export PLUGIN_DATA_ROOT=/var/lib/dokku/services/mongo | |
+++ PLUGIN_DATA_ROOT=/var/lib/dokku/services/mongo | |
+++ PLUGIN_DATASTORE_PORTS=(27017 27018 27019 28017) | |
+++ export PLUGIN_DATASTORE_PORTS | |
+++ export PLUGIN_DEFAULT_ALIAS=MONGO | |
+++ PLUGIN_DEFAULT_ALIAS=MONGO | |
+++ export PLUGIN_IMAGE=mongo | |
+++ PLUGIN_IMAGE=mongo | |
+++ export PLUGIN_IMAGE_VERSION=3.0.6 | |
+++ PLUGIN_IMAGE_VERSION=3.0.6 | |
+++ export PLUGIN_SCHEME=mongodb | |
+++ PLUGIN_SCHEME=mongodb | |
+++ export PLUGIN_SERVICE=MongoDB | |
+++ PLUGIN_SERVICE=MongoDB | |
++ dirname /var/lib/dokku/plugins/enabled/dokku-mongo/commands | |
+ source /var/lib/dokku/plugins/enabled/dokku-mongo/config | |
++ export MONGO_IMAGE=mongo | |
++ MONGO_IMAGE=mongo | |
++ export MONGO_IMAGE_VERSION=3.0.6 | |
++ MONGO_IMAGE_VERSION=3.0.6 | |
++ export MONGO_ROOT=/var/lib/dokku/services/mongo | |
++ MONGO_ROOT=/var/lib/dokku/services/mongo | |
++ export PLUGIN_COMMAND_PREFIX=mongo | |
++ PLUGIN_COMMAND_PREFIX=mongo | |
++ export PLUGIN_DATA_ROOT=/var/lib/dokku/services/mongo | |
++ PLUGIN_DATA_ROOT=/var/lib/dokku/services/mongo | |
++ PLUGIN_DATASTORE_PORTS=(27017 27018 27019 28017) | |
++ export PLUGIN_DATASTORE_PORTS | |
++ export PLUGIN_DEFAULT_ALIAS=MONGO | |
++ PLUGIN_DEFAULT_ALIAS=MONGO | |
++ export PLUGIN_IMAGE=mongo | |
++ PLUGIN_IMAGE=mongo | |
++ export PLUGIN_IMAGE_VERSION=3.0.6 | |
++ PLUGIN_IMAGE_VERSION=3.0.6 | |
++ export PLUGIN_SCHEME=mongodb | |
++ PLUGIN_SCHEME=mongodb | |
++ export PLUGIN_SERVICE=MongoDB | |
++ PLUGIN_SERVICE=MongoDB | |
+ [[ git-build == mongo:* ]] | |
+ 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/domains/commands git-build earthquakes | |
+ 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-build earthquakes | |
+ 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-build earthquakes | |
+ source /var/lib/dokku/core-plugins/available/common/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ case "$1" in | |
+ APP=earthquakes | |
+ APP_BUILD_LOCK=/home/dokku/earthquakes/.build.lock | |
+ APP_BUILD_LOCK_MSG='earthquakes is currently being deployed or locked. Waiting...' | |
++ flock -n /home/dokku/earthquakes/.build.lock true | |
++ echo 0 | |
+ [[ 0 -ne 0 ]] | |
+ shift 1 | |
+ flock -o /home/dokku/earthquakes/.build.lock dokku git-build-locked earthquakes | |
+ [[ -f /home/dokku/dokkurc ]] | |
+ [[ -d /home/dokku/.dokkurc ]] | |
+ for f in '$DOKKU_ROOT/.dokkurc/*' | |
+ source /home/dokku/.dokkurc/DOKKU_TRACE | |
++ export DOKKU_TRACE=1 | |
++ DOKKU_TRACE=1 | |
+ [[ -n 1 ]] | |
+ set -x | |
+ parse_args git-build-locked earthquakes | |
+ for arg in '"$@"' | |
+ case "$arg" in | |
+ for arg in '"$@"' | |
+ case "$arg" in | |
+ return 0 | |
+ args=("$@") | |
+ [[ git-build-locked =~ ^--.* ]] | |
+ has_tty | |
++ /usr/bin/tty | |
+ [[ /dev/pts/0 == \n\o\t\ \a\ \t\t\y ]] | |
+ return 0 | |
++ id -un | |
+ [[ dokku != \d\o\k\k\u ]] | |
+ [[ -n '' ]] | |
+ case "$1" in | |
+ implemented=0 | |
+ for script in '$PLUGIN_ENABLED_PATH/*/commands' | |
+ set +e | |
+ /var/lib/dokku/plugins/enabled/00_dokku-standard/commands git-build-locked earthquakes | |
+ 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-build-locked earthquakes | |
+ 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-build-locked earthquakes | |
+ exit_code=10 | |
+ set -e | |
+ [[ 10 -eq 10 ]] | |
+ continue | |
+ for script in '$PLUGIN_ENABLED_PATH/*/commands' | |
+ set +e | |
+ /var/lib/dokku/plugins/enabled/backup/commands git-build-locked earthquakes | |
+ 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-build-locked earthquakes | |
+ 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-build-locked earthquakes | |
+ 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-build-locked earthquakes | |
+ exit_code=10 | |
+ set -e | |
+ [[ 10 -eq 10 ]] | |
+ continue | |
+ for script in '$PLUGIN_ENABLED_PATH/*/commands' | |
+ set +e | |
+ /var/lib/dokku/plugins/enabled/dokku-mongo/commands git-build-locked earthquakes | |
+ PLUGIN_BASE_PATH=/var/lib/dokku/plugins | |
+ [[ -n 1 ]] | |
+ PLUGIN_BASE_PATH=/var/lib/dokku/plugins/enabled | |
+ source /var/lib/dokku/plugins/enabled/common/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
++ dirname /var/lib/dokku/plugins/enabled/dokku-mongo/commands | |
+ source /var/lib/dokku/plugins/enabled/dokku-mongo/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+++ dirname /var/lib/dokku/plugins/enabled/dokku-mongo/commands | |
++ source /var/lib/dokku/plugins/enabled/dokku-mongo/config | |
+++ export MONGO_IMAGE=mongo | |
+++ MONGO_IMAGE=mongo | |
+++ export MONGO_IMAGE_VERSION=3.0.6 | |
+++ MONGO_IMAGE_VERSION=3.0.6 | |
+++ export MONGO_ROOT=/var/lib/dokku/services/mongo | |
+++ MONGO_ROOT=/var/lib/dokku/services/mongo | |
+++ export PLUGIN_COMMAND_PREFIX=mongo | |
+++ PLUGIN_COMMAND_PREFIX=mongo | |
+++ export PLUGIN_DATA_ROOT=/var/lib/dokku/services/mongo | |
+++ PLUGIN_DATA_ROOT=/var/lib/dokku/services/mongo | |
+++ PLUGIN_DATASTORE_PORTS=(27017 27018 27019 28017) | |
+++ export PLUGIN_DATASTORE_PORTS | |
+++ export PLUGIN_DEFAULT_ALIAS=MONGO | |
+++ PLUGIN_DEFAULT_ALIAS=MONGO | |
+++ export PLUGIN_IMAGE=mongo | |
+++ PLUGIN_IMAGE=mongo | |
+++ export PLUGIN_IMAGE_VERSION=3.0.6 | |
+++ PLUGIN_IMAGE_VERSION=3.0.6 | |
+++ export PLUGIN_SCHEME=mongodb | |
+++ PLUGIN_SCHEME=mongodb | |
+++ export PLUGIN_SERVICE=MongoDB | |
+++ PLUGIN_SERVICE=MongoDB | |
++ dirname /var/lib/dokku/plugins/enabled/dokku-mongo/commands | |
+ source /var/lib/dokku/plugins/enabled/dokku-mongo/config | |
++ export MONGO_IMAGE=mongo | |
++ MONGO_IMAGE=mongo | |
++ export MONGO_IMAGE_VERSION=3.0.6 | |
++ MONGO_IMAGE_VERSION=3.0.6 | |
++ export MONGO_ROOT=/var/lib/dokku/services/mongo | |
++ MONGO_ROOT=/var/lib/dokku/services/mongo | |
++ export PLUGIN_COMMAND_PREFIX=mongo | |
++ PLUGIN_COMMAND_PREFIX=mongo | |
++ export PLUGIN_DATA_ROOT=/var/lib/dokku/services/mongo | |
++ PLUGIN_DATA_ROOT=/var/lib/dokku/services/mongo | |
++ PLUGIN_DATASTORE_PORTS=(27017 27018 27019 28017) | |
++ export PLUGIN_DATASTORE_PORTS | |
++ export PLUGIN_DEFAULT_ALIAS=MONGO | |
++ PLUGIN_DEFAULT_ALIAS=MONGO | |
++ export PLUGIN_IMAGE=mongo | |
++ PLUGIN_IMAGE=mongo | |
++ export PLUGIN_IMAGE_VERSION=3.0.6 | |
++ PLUGIN_IMAGE_VERSION=3.0.6 | |
++ export PLUGIN_SCHEME=mongodb | |
++ PLUGIN_SCHEME=mongodb | |
++ export PLUGIN_SERVICE=MongoDB | |
++ PLUGIN_SERVICE=MongoDB | |
+ [[ git-build-locked == mongo:* ]] | |
+ 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/domains/commands git-build-locked earthquakes | |
+ 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-build-locked earthquakes | |
+ 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-build-locked earthquakes | |
+ source /var/lib/dokku/core-plugins/available/common/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ case "$1" in | |
+ APP=earthquakes | |
+ [[ 2 -ge 3 ]] | |
+ REF=13d18aa768cce411c2b2b1d489516c631b5837af | |
+ git_build_app_repo earthquakes 13d18aa768cce411c2b2b1d489516c631b5837af | |
+ verify_app_name earthquakes | |
+ local APP=earthquakes | |
+ [[ ! -n earthquakes ]] | |
+ [[ ! -d /home/dokku/earthquakes ]] | |
+ return 0 | |
+ APP=earthquakes | |
+ REV=13d18aa768cce411c2b2b1d489516c631b5837af | |
++ mktemp -d | |
+ TMP_WORK_DIR=/tmp/tmp.xFoYmPYmLa | |
+ trap 'rm -rf "$TMP_WORK_DIR" > /dev/null' RETURN | |
+ chmod 755 /tmp/tmp.xFoYmPYmLa | |
+ unset GIT_DIR GIT_WORK_TREE | |
+ pushd /tmp/tmp.xFoYmPYmLa | |
+ git clone -q /home/dokku/earthquakes /tmp/tmp.xFoYmPYmLa | |
+ git config advice.detachedHead false | |
+ git checkout 13d18aa768cce411c2b2b1d489516c631b5837af | |
+ git submodule update --init --recursive | |
+ find -name .git -prune -exec rm -rf '{}' ';' | |
+ [[ -f Dockerfile ]] | |
+ dokku receive earthquakes herokuish /tmp/tmp.xFoYmPYmLa | |
/'sed -u 's/^/ | |
+ [[ -f /home/dokku/dokkurc ]] | |
+ [[ -d /home/dokku/.dokkurc ]] | |
+ for f in '$DOKKU_ROOT/.dokkurc/*' | |
+ source /home/dokku/.dokkurc/DOKKU_TRACE | |
++ export DOKKU_TRACE=1 | |
++ DOKKU_TRACE=1 | |
+ [[ -n 1 ]] | |
+ set -x | |
+ parse_args receive earthquakes herokuish /tmp/tmp.xFoYmPYmLa | |
+ for arg in '"$@"' | |
+ case "$arg" in | |
+ for arg in '"$@"' | |
+ case "$arg" in | |
+ for arg in '"$@"' | |
+ case "$arg" in | |
+ for arg in '"$@"' | |
+ case "$arg" in | |
+ return 0 | |
+ args=("$@") | |
+ [[ receive =~ ^--.* ]] | |
+ has_tty | |
++ /usr/bin/tty | |
+ [[ /dev/pts/0 == \n\o\t\ \a\ \t\t\y ]] | |
+ return 0 | |
++ id -un | |
+ [[ dokku != \d\o\k\k\u ]] | |
+ [[ -n '' ]] | |
+ case "$1" in | |
+ APP=earthquakes | |
++ get_app_image_name earthquakes | |
++ local APP=earthquakes | |
++ local IMAGE_TAG= | |
+++ get_app_image_repo earthquakes | |
+++ local APP=earthquakes | |
+++ local IMAGE_REPO=dokku/earthquakes | |
+++ [[ -z earthquakes ]] | |
+++ echo dokku/earthquakes | |
++ local IMAGE_REPO=dokku/earthquakes | |
++ [[ -z earthquakes ]] | |
++ [[ -n '' ]] | |
++ IMAGE=dokku/earthquakes:latest | |
++ echo dokku/earthquakes:latest | |
+ IMAGE=dokku/earthquakes:latest | |
+ IMAGE_SOURCE_TYPE=herokuish | |
+ TMP_WORK_DIR=/tmp/tmp.xFoYmPYmLa | |
+ dokku_log_info1 'Cleaning up...' | |
+ echo '-----> Cleaning up...' | |
+ docker_cleanup | |
-----> Cleaning up... | |
++ docker ps -a -f status=exited -q | |
+ docker rm 3f3073b9127d d39a0a0c02a7 67cb7241d744 84e60b8c9092 729321e47e64 ed7f6b12338b c00841747475 | |
+ dokku_log_info1 'Building earthquakes from herokuish...' | |
+ echo '-----> Building earthquakes from herokuish...' | |
+ dokku build earthquakes herokuish /tmp/tmp.xFoYmPYmLa | |
-----> Building earthquakes from herokuish... | |
++ docker images -f dangling=true -q | |
+ [[ -f /home/dokku/dokkurc ]] | |
+ [[ -d /home/dokku/.dokkurc ]] | |
+ for f in '$DOKKU_ROOT/.dokkurc/*' | |
+ source /home/dokku/.dokkurc/DOKKU_TRACE | |
++ export DOKKU_TRACE=1 | |
++ DOKKU_TRACE=1 | |
+ [[ -n 1 ]] | |
+ set -x | |
+ parse_args build earthquakes herokuish /tmp/tmp.xFoYmPYmLa | |
+ for arg in '"$@"' | |
+ case "$arg" in | |
+ for arg in '"$@"' | |
+ case "$arg" in | |
+ for arg in '"$@"' | |
+ case "$arg" in | |
+ for arg in '"$@"' | |
+ case "$arg" in | |
+ return 0 | |
+ args=("$@") | |
+ [[ build =~ ^--.* ]] | |
+ has_tty | |
++ /usr/bin/tty | |
+ [[ /dev/pts/0 == \n\o\t\ \a\ \t\t\y ]] | |
+ return 0 | |
++ id -un | |
+ [[ dokku != \d\o\k\k\u ]] | |
+ [[ -n '' ]] | |
+ case "$1" in | |
+ implemented=0 | |
+ for script in '$PLUGIN_ENABLED_PATH/*/commands' | |
+ set +e | |
+ /var/lib/dokku/plugins/enabled/00_dokku-standard/commands build earthquakes herokuish /tmp/tmp.xFoYmPYmLa | |
+ 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/nginx-vhosts/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/certs/functions | |
+++ set -eo pipefail | |
+++ [[ -n 1 ]] | |
+++ set -x | |
+++ source /var/lib/dokku/core-plugins/available/common/functions | |
++++ set -eo pipefail | |
++++ [[ -n 1 ]] | |
++++ set -x | |
++ 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/domains/functions | |
+++ set -eo pipefail | |
+++ [[ -n 1 ]] | |
+++ set -x | |
+++ source /var/lib/dokku/core-plugins/available/common/functions | |
++++ set -eo pipefail | |
++++ [[ -n 1 ]] | |
++++ set -x | |
+ case "$1" in | |
+ APP=earthquakes | |
+ IMAGE_SOURCE_TYPE=herokuish | |
+ TMP_WORK_DIR=/tmp/tmp.xFoYmPYmLa | |
++ get_app_image_name earthquakes | |
++ local APP=earthquakes | |
++ local IMAGE_TAG= | |
+++ get_app_image_repo earthquakes | |
+++ local APP=earthquakes | |
+++ local IMAGE_REPO=dokku/earthquakes | |
+++ [[ -z earthquakes ]] | |
+++ echo dokku/earthquakes | |
++ local IMAGE_REPO=dokku/earthquakes | |
++ [[ -z earthquakes ]] | |
++ [[ -n '' ]] | |
++ IMAGE=dokku/earthquakes:latest | |
++ echo dokku/earthquakes:latest | |
+ IMAGE=dokku/earthquakes:latest | |
+ verify_app_name earthquakes | |
+ local APP=earthquakes | |
+ [[ ! -n earthquakes ]] | |
+ [[ ! -d /home/dokku/earthquakes ]] | |
+ return 0 | |
+ CACHE_DIR=/home/dokku/earthquakes/cache | |
++ config_export app earthquakes | |
++ local CONFIG_TYPE=app | |
++ local APP=earthquakes | |
++ local ENV_FILE=/home/dokku/earthquakes/ENV | |
++ [[ app == \g\l\o\b\a\l ]] | |
++ [[ ! -f /home/dokku/earthquakes/ENV ]] | |
++ [[ ! -s /home/dokku/earthquakes/ENV ]] | |
+++ cut '-d ' -f2- | |
+++ grep -Eo 'export ([a-zA-Z_][a-zA-Z0-9_]*=.*)' /home/dokku/earthquakes/ENV | |
++ VARS='CARTODB_API_KEY='\''[removed]'\'' | |
CARTODB_CONSUMER_KEY='\''[removed]'\'' | |
CARTODB_CONSUMER_SECRET='\''[removed]'\'' | |
CARTODB_PASSWORD='\''[removed]'\'' | |
CARTODB_URL='\''earthquakes_cartodb:8080'\'' | |
CARTODB_USER='\''nonni'\'' | |
DOKKU_NGINX_PORT='\''80'\''' | |
++ awk '{print "export " $0}' | |
++ echo 'CARTODB_API_KEY='\''[removed]'\'' | |
CARTODB_CONSUMER_KEY='\''[removed]'\'' | |
CARTODB_CONSUMER_SECRET='\''[removed]'\'' | |
CARTODB_PASSWORD='\''[removed]'\'' | |
CARTODB_URL='\''earthquakes_cartodb:8080'\'' | |
CARTODB_USER='\''nonni'\'' | |
DOKKU_NGINX_PORT='\''80'\''' | |
++ return 0 | |
+ eval 'export CARTODB_API_KEY='\''[removed]'\'' | |
export CARTODB_CONSUMER_KEY='\''[removed]'\'' | |
export CARTODB_CONSUMER_SECRET='\''[removed]'\'' | |
export CARTODB_PASSWORD='\''[removed]'\'' | |
export CARTODB_URL='\''earthquakes_cartodb:8080'\'' | |
export CARTODB_USER='\''nonni'\'' | |
export DOKKU_NGINX_PORT='\''80'\''' | |
++ export CARTODB_API_KEY=[removed] | |
++ CARTODB_API_KEY=[removed] | |
++ export CARTODB_CONSUMER_KEY=[removed] | |
++ CARTODB_CONSUMER_KEY=[removed] | |
++ export CARTODB_CONSUMER_SECRET=[removed] | |
++ CARTODB_CONSUMER_SECRET=[removed] | |
++ export CARTODB_PASSWORD=[removed] | |
++ CARTODB_PASSWORD=[removed] | |
++ export CARTODB_URL=earthquakes_cartodb:8080 | |
++ CARTODB_URL=earthquakes_cartodb:8080 | |
++ export CARTODB_USER=nonni | |
++ CARTODB_USER=nonni | |
++ export DOKKU_NGINX_PORT=80 | |
++ DOKKU_NGINX_PORT=80 | |
+ pushd /tmp/tmp.xFoYmPYmLa | |
+ case "$IMAGE_SOURCE_TYPE" in | |
++ docker run -i -a stdin gliderlabs/herokuish /bin/bash -c 'mkdir -p /app && tar -xC /app' | |
++ tar -c . | |
+ docker rmi f708772b7bd8 51fe82c14448 2c2e77a5d4d0 201a685b53da 4926361657fd c667b0de701d | |
+ id=fc0163ee88c7a3ebc8adce4bc6859f7123b4f4badb937125b648f65a292ee46b | |
++ docker wait fc0163ee88c7a3ebc8adce4bc6859f7123b4f4badb937125b648f65a292ee46b | |
+ test 0 -eq 0 | |
+ docker commit fc0163ee88c7a3ebc8adce4bc6859f7123b4f4badb937125b648f65a292ee46b dokku/earthquakes:latest | |
+ [[ -d /home/dokku/earthquakes/cache ]] | |
+ plugn trigger pre-build-buildpack earthquakes | |
+ 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 | |
+ APP=earthquakes | |
++ get_app_image_name earthquakes | |
++ local APP=earthquakes | |
++ local IMAGE_TAG= | |
+++ get_app_image_repo earthquakes | |
+++ local APP=earthquakes | |
+++ local IMAGE_REPO=dokku/earthquakes | |
+++ [[ -z earthquakes ]] | |
+++ echo dokku/earthquakes | |
++ local IMAGE_REPO=dokku/earthquakes | |
++ [[ -z earthquakes ]] | |
++ [[ -n '' ]] | |
++ IMAGE=dokku/earthquakes:latest | |
++ echo dokku/earthquakes:latest | |
+ IMAGE=dokku/earthquakes:latest | |
+ BUILD_ENV= | |
+ verify_app_name earthquakes | |
+ local APP=earthquakes | |
+ [[ ! -n earthquakes ]] | |
+ [[ ! -d /home/dokku/earthquakes ]] | |
+ return 0 | |
+ config_get --global CURL_CONNECT_TIMEOUT | |
+ config_get --global CURL_TIMEOUT | |
++ config_export global | |
++ local CONFIG_TYPE=global | |
++ local APP= | |
++ local ENV_FILE=/home/dokku//ENV | |
++ [[ global == \g\l\o\b\a\l ]] | |
++ ENV_FILE=/home/dokku/ENV | |
++ [[ ! -f /home/dokku/ENV ]] | |
++ [[ ! -s /home/dokku/ENV ]] | |
+++ grep -Eo 'export ([a-zA-Z_][a-zA-Z0-9_]*=.*)' /home/dokku/ENV | |
+++ cut '-d ' -f2- | |
++ VARS='CURL_TIMEOUT=600 | |
CURL_CONNECT_TIMEOUT=240' | |
++ awk '{print "export " $0}' | |
++ echo 'CURL_TIMEOUT=600 | |
CURL_CONNECT_TIMEOUT=240' | |
++ return 0 | |
+ [[ -n export CURL_TIMEOUT=600 | |
export CURL_CONNECT_TIMEOUT=240 ]] | |
+ BUILD_ENV+=' | |
' | |
++ config_export global | |
++ local CONFIG_TYPE=global | |
++ local APP= | |
++ local ENV_FILE=/home/dokku//ENV | |
++ [[ global == \g\l\o\b\a\l ]] | |
++ ENV_FILE=/home/dokku/ENV | |
++ [[ ! -f /home/dokku/ENV ]] | |
++ [[ ! -s /home/dokku/ENV ]] | |
+++ cut '-d ' -f2- | |
+++ grep -Eo 'export ([a-zA-Z_][a-zA-Z0-9_]*=.*)' /home/dokku/ENV | |
++ VARS='CURL_TIMEOUT=600 | |
CURL_CONNECT_TIMEOUT=240' | |
++ echo 'CURL_TIMEOUT=600 | |
CURL_CONNECT_TIMEOUT=240' | |
++ awk '{print "export " $0}' | |
++ return 0 | |
+ BUILD_ENV+='export CURL_TIMEOUT=600 | |
export CURL_CONNECT_TIMEOUT=240' | |
+ BUILD_ENV+=' | |
' | |
++ config_export app earthquakes | |
++ local CONFIG_TYPE=app | |
++ local APP=earthquakes | |
++ local ENV_FILE=/home/dokku/earthquakes/ENV | |
++ [[ app == \g\l\o\b\a\l ]] | |
++ [[ ! -f /home/dokku/earthquakes/ENV ]] | |
++ [[ ! -s /home/dokku/earthquakes/ENV ]] | |
+++ cut '-d ' -f2- | |
+++ grep -Eo 'export ([a-zA-Z_][a-zA-Z0-9_]*=.*)' /home/dokku/earthquakes/ENV | |
++ VARS='CARTODB_API_KEY='\''[removed]'\'' | |
CARTODB_CONSUMER_KEY='\''[removed]'\'' | |
CARTODB_CONSUMER_SECRET='\''[removed]'\'' | |
CARTODB_PASSWORD='\''[removed]'\'' | |
CARTODB_URL='\''earthquakes_cartodb:8080'\'' | |
CARTODB_USER='\''nonni'\'' | |
DOKKU_NGINX_PORT='\''80'\''' | |
++ awk '{print "export " $0}' | |
++ echo 'CARTODB_API_KEY='\''[removed]'\'' | |
CARTODB_CONSUMER_KEY='\''[removed]'\'' | |
CARTODB_CONSUMER_SECRET='\''[removed]'\'' | |
CARTODB_PASSWORD='\''[removed]'\'' | |
CARTODB_URL='\''earthquakes_cartodb:8080'\'' | |
CARTODB_USER='\''nonni'\'' | |
DOKKU_NGINX_PORT='\''80'\''' | |
++ return 0 | |
+ [[ -n export CARTODB_API_KEY='[removed]' | |
export CARTODB_CONSUMER_KEY='[removed]' | |
export CARTODB_CONSUMER_SECRET='[removed]' | |
export CARTODB_PASSWORD='[removed]' | |
export CARTODB_URL='earthquakes_cartodb:8080' | |
export CARTODB_USER='nonni' | |
export DOKKU_NGINX_PORT='80' ]] | |
+ BUILD_ENV+=' | |
' | |
++ config_export app earthquakes | |
++ local CONFIG_TYPE=app | |
++ local APP=earthquakes | |
++ local ENV_FILE=/home/dokku/earthquakes/ENV | |
++ [[ app == \g\l\o\b\a\l ]] | |
++ [[ ! -f /home/dokku/earthquakes/ENV ]] | |
++ [[ ! -s /home/dokku/earthquakes/ENV ]] | |
+++ cut '-d ' -f2- | |
+++ grep -Eo 'export ([a-zA-Z_][a-zA-Z0-9_]*=.*)' /home/dokku/earthquakes/ENV | |
++ VARS='CARTODB_API_KEY='\''[removed]'\'' | |
CARTODB_CONSUMER_KEY='\''[removed]'\'' | |
CARTODB_CONSUMER_SECRET='\''[removed]'\'' | |
CARTODB_PASSWORD='\''[removed]'\'' | |
CARTODB_URL='\''earthquakes_cartodb:8080'\'' | |
CARTODB_USER='\''nonni'\'' | |
DOKKU_NGINX_PORT='\''80'\''' | |
++ awk '{print "export " $0}' | |
++ echo 'CARTODB_API_KEY='\''[removed]'\'' | |
CARTODB_CONSUMER_KEY='\''[removed]'\'' | |
CARTODB_CONSUMER_SECRET='\''[removed]'\'' | |
CARTODB_PASSWORD='\''[removed]'\'' | |
CARTODB_URL='\''earthquakes_cartodb:8080'\'' | |
CARTODB_USER='\''nonni'\'' | |
DOKKU_NGINX_PORT='\''80'\''' | |
++ return 0 | |
+ BUILD_ENV+='export CARTODB_API_KEY='\''[removed]'\'' | |
export CARTODB_CONSUMER_KEY='\''[removed]'\'' | |
export CARTODB_CONSUMER_SECRET='\''[removed]'\'' | |
export CARTODB_PASSWORD='\''[removed]'\'' | |
export CARTODB_URL='\''earthquakes_cartodb:8080'\'' | |
export CARTODB_USER='\''nonni'\'' | |
export DOKKU_NGINX_PORT='\''80'\''' | |
+ BUILD_ENV+=' | |
' | |
+ [[ ! -z | |
export CURL_TIMEOUT=600 | |
export CURL_CONNECT_TIMEOUT=240 | |
export CARTODB_API_KEY='[removed]' | |
export CARTODB_CONSUMER_KEY='[removed]' | |
export CARTODB_CONSUMER_SECRET='[removed]' | |
export CARTODB_PASSWORD='[removed]' | |
export CARTODB_URL='earthquakes_cartodb:8080' | |
export CARTODB_USER='nonni' | |
export DOKKU_NGINX_PORT='80' | |
]] | |
+ dokku_log_info1 'Adding BUILD_ENV to build environment...' | |
+ echo '-----> Adding BUILD_ENV to build environment...' | |
-----> Adding BUILD_ENV to build environment... | |
++ sed -e 's@export @@g' -e 's@\\n@ @g' | |
++ echo export CURL_TIMEOUT=600 export CURL_CONNECT_TIMEOUT=240 export 'CARTODB_API_KEY='\''[removed]'\''' export 'CARTODB_CONSUMER_KEY='\''[removed]'\''' export 'CARTODB_CONSUMER_SECRET='\''[removed]'\''' export 'CARTODB_PASSWORD='\''[removed]'\''' export 'CARTODB_URL='\''earthquakes_cartodb:8080'\''' export 'CARTODB_USER='\''nonni'\''' export 'DOKKU_NGINX_PORT='\''80'\''' | |
+++ cat | |
++ docker run -i -a stdin dokku/earthquakes:latest /bin/bash -c 'for ENV_VAR in CURL_TIMEOUT=600 CURL_CONNECT_TIMEOUT=240 CARTODB_API_KEY='\''[removed]'\'' CARTODB_CONSUMER_KEY='\''[removed]'\'' CARTODB_CONSUMER_SECRET='\''[removed]'\'' CARTODB_PASSWORD='\''[removed]'\'' CARTODB_URL='\''earthquakes_cartodb:8080'\'' CARTODB_USER='\''nonni'\'' DOKKU_NGINX_PORT='\''80'\''; do echo $ENV_VAR |sed '\''s@^\([^=]*\)=\(.*\)$@echo \"\2\" >/tmp/env/\1@g'\'' >>/tmp/set_env.sh; done && mkdir -p /tmp/env && /bin/bash /tmp/set_env.sh' | |
+ id=42a4bcf6db2c59acd8610c245d0500a10cad55d222481bf3dda5e90d21bbb777 | |
++ docker wait 42a4bcf6db2c59acd8610c245d0500a10cad55d222481bf3dda5e90d21bbb777 | |
+ test 0 -eq 0 | |
+ docker commit 42a4bcf6db2c59acd8610c245d0500a10cad55d222481bf3dda5e90d21bbb777 dokku/earthquakes:latest | |
++ docker run -i -a stdin dokku/earthquakes:latest /bin/bash -c 'cat >> /app/.env' | |
++ echo -e ' | |
export CURL_TIMEOUT=600 | |
export CURL_CONNECT_TIMEOUT=240 | |
export CARTODB_API_KEY='\''[removed]'\'' | |
export CARTODB_CONSUMER_KEY='\''[removed]'\'' | |
export CARTODB_CONSUMER_SECRET='\''[removed]'\'' | |
export CARTODB_PASSWORD='\''[removed]'\'' | |
export CARTODB_URL='\''earthquakes_cartodb:8080'\'' | |
export CARTODB_USER='\''nonni'\'' | |
export DOKKU_NGINX_PORT='\''80'\'' | |
' | |
+ id=ac587b4d75ed90ffd00e2cba17bf6bf63dedff10306a17c85ed0d0357cecd46f | |
++ docker wait ac587b4d75ed90ffd00e2cba17bf6bf63dedff10306a17c85ed0d0357cecd46f | |
+ test 0 -eq 0 | |
+ docker commit ac587b4d75ed90ffd00e2cba17bf6bf63dedff10306a17c85ed0d0357cecd46f dokku/earthquakes:latest | |
++ : | |
++ plugn trigger docker-args-build earthquakes | |
+ source /var/lib/dokku/core-plugins/available/common/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ [[ ! -n '' ]] | |
++ cat | |
+ STDIN= | |
+ APP=earthquakes | |
+ case "$0" in | |
+ PHASE=BUILD | |
+ FILE_PREFIX=DOCKER_OPTIONS_ | |
+ PHASE_FILE_PATH=/home/dokku/earthquakes/DOCKER_OPTIONS_BUILD | |
+ output= | |
+ [[ -f /home/dokku/earthquakes/DOCKER_OPTIONS_BUILD ]] | |
+ DONE=false | |
+ false | |
+ read line | |
+ DONE=true | |
+ [[ ! -n '' ]] | |
+ continue | |
+ true | |
+ echo '' | |
+ PLUGIN_BASE_PATH=/var/lib/dokku/plugins | |
+ [[ -n 1 ]] | |
+ PLUGIN_BASE_PATH=/var/lib/dokku/plugins/enabled | |
+ source /var/lib/dokku/plugins/enabled/common/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
++ dirname /var/lib/dokku/plugins/enabled/dokku-mongo/docker-args-build | |
+ source /var/lib/dokku/plugins/enabled/dokku-mongo/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+++ dirname /var/lib/dokku/plugins/enabled/dokku-mongo/docker-args-build | |
++ source /var/lib/dokku/plugins/enabled/dokku-mongo/config | |
+++ export MONGO_IMAGE=mongo | |
+++ MONGO_IMAGE=mongo | |
+++ export MONGO_IMAGE_VERSION=3.0.6 | |
+++ MONGO_IMAGE_VERSION=3.0.6 | |
+++ export MONGO_ROOT=/var/lib/dokku/services/mongo | |
+++ MONGO_ROOT=/var/lib/dokku/services/mongo | |
+++ export PLUGIN_COMMAND_PREFIX=mongo | |
+++ PLUGIN_COMMAND_PREFIX=mongo | |
+++ export PLUGIN_DATA_ROOT=/var/lib/dokku/services/mongo | |
+++ PLUGIN_DATA_ROOT=/var/lib/dokku/services/mongo | |
+++ PLUGIN_DATASTORE_PORTS=(27017 27018 27019 28017) | |
+++ export PLUGIN_DATASTORE_PORTS | |
+++ export PLUGIN_DEFAULT_ALIAS=MONGO | |
+++ PLUGIN_DEFAULT_ALIAS=MONGO | |
+++ export PLUGIN_IMAGE=mongo | |
+++ PLUGIN_IMAGE=mongo | |
+++ export PLUGIN_IMAGE_VERSION=3.0.6 | |
+++ PLUGIN_IMAGE_VERSION=3.0.6 | |
+++ export PLUGIN_SCHEME=mongodb | |
+++ PLUGIN_SCHEME=mongodb | |
+++ export PLUGIN_SERVICE=MongoDB | |
+++ PLUGIN_SERVICE=MongoDB | |
++ dirname /var/lib/dokku/plugins/enabled/dokku-mongo/docker-args-build | |
+ source /var/lib/dokku/plugins/enabled/dokku-mongo/config | |
++ export MONGO_IMAGE=mongo | |
++ MONGO_IMAGE=mongo | |
++ export MONGO_IMAGE_VERSION=3.0.6 | |
++ MONGO_IMAGE_VERSION=3.0.6 | |
++ export MONGO_ROOT=/var/lib/dokku/services/mongo | |
++ MONGO_ROOT=/var/lib/dokku/services/mongo | |
++ export PLUGIN_COMMAND_PREFIX=mongo | |
++ PLUGIN_COMMAND_PREFIX=mongo | |
++ export PLUGIN_DATA_ROOT=/var/lib/dokku/services/mongo | |
++ PLUGIN_DATA_ROOT=/var/lib/dokku/services/mongo | |
++ PLUGIN_DATASTORE_PORTS=(27017 27018 27019 28017) | |
++ export PLUGIN_DATASTORE_PORTS | |
++ export PLUGIN_DEFAULT_ALIAS=MONGO | |
++ PLUGIN_DEFAULT_ALIAS=MONGO | |
++ export PLUGIN_IMAGE=mongo | |
++ PLUGIN_IMAGE=mongo | |
++ export PLUGIN_IMAGE_VERSION=3.0.6 | |
++ PLUGIN_IMAGE_VERSION=3.0.6 | |
++ export PLUGIN_SCHEME=mongodb | |
++ PLUGIN_SCHEME=mongodb | |
++ export PLUGIN_SERVICE=MongoDB | |
++ PLUGIN_SERVICE=MongoDB | |
++ cat | |
+ STDIN= | |
+ APP=earthquakes | |
+ output= | |
+ for i in '$PLUGIN_DATA_ROOT/*' | |
+ [[ -d /var/lib/dokku/services/mongo/flottafolktilislands-api ]] | |
++ echo /var/lib/dokku/services/mongo/flottafolktilislands-api | |
++ cut -d/ -f 7 | |
+ SERVICE=flottafolktilislands-api | |
+ LINKS_FILE=/var/lib/dokku/services/mongo/flottafolktilislands-api/LINKS | |
++ service_alias flottafolktilislands-api | |
++ local SERVICE=flottafolktilislands-api | |
++ local ALIAS_FILE=/var/lib/dokku/services/mongo/flottafolktilislands-api/ALIAS | |
++ verify_service_name flottafolktilislands-api | |
++ local SERVICE=flottafolktilislands-api | |
++ [[ ! -n flottafolktilislands-api ]] | |
++ [[ ! -d /var/lib/dokku/services/mongo/flottafolktilislands-api ]] | |
++ return 0 | |
++ [[ -f /var/lib/dokku/services/mongo/flottafolktilislands-api/ALIAS ]] | |
++ echo MONGO | |
+ ALIAS=MONGO | |
++ service_url flottafolktilislands-api | |
++ local SERVICE=flottafolktilislands-api | |
++ local SERVICE_ROOT=/var/lib/dokku/services/mongo/flottafolktilislands-api | |
+++ cat /var/lib/dokku/services/mongo/flottafolktilislands-api/ID | |
++ local ID=5a3e74fe32ab5e7e41710c8184aac8990c4f1361743a569bbfacc6c7cd44bc5a | |
+++ get_container_ip 5a3e74fe32ab5e7e41710c8184aac8990c4f1361743a569bbfacc6c7cd44bc5a | |
+++ docker inspect --format '{{ .NetworkSettings.IPAddress }}' 5a3e74fe32ab5e7e41710c8184aac8990c4f1361743a569bbfacc6c7cd44bc5a | |
++ local IP=172.17.0.3 | |
+++ cat /var/lib/dokku/services/mongo/flottafolktilislands-api/PASSWORD | |
++ local PASSWORD=638eefddeaeac9bdd24614908509578e | |
++ echo mongodb://flottafolktilislands-api:638eefddeaeac9bdd24614908509578e@172.17.0.3:27017/flottafolktilislands-api | |
+ SERVICE_URL=mongodb://flottafolktilislands-api:638eefddeaeac9bdd24614908509578e@172.17.0.3:27017/flottafolktilislands-api | |
+ [[ -f /var/lib/dokku/services/mongo/flottafolktilislands-api/LINKS ]] | |
+ read line | |
+ [[ flottafolktilislands-api == \e\a\r\t\h\q\u\a\k\e\s ]] | |
+ read line | |
+ for i in '$PLUGIN_DATA_ROOT/*' | |
+ [[ -d /var/lib/dokku/services/mongo/norix-api ]] | |
++ echo /var/lib/dokku/services/mongo/norix-api | |
++ cut -d/ -f 7 | |
+ SERVICE=norix-api | |
+ LINKS_FILE=/var/lib/dokku/services/mongo/norix-api/LINKS | |
++ service_alias norix-api | |
++ local SERVICE=norix-api | |
++ local ALIAS_FILE=/var/lib/dokku/services/mongo/norix-api/ALIAS | |
++ verify_service_name norix-api | |
++ local SERVICE=norix-api | |
++ [[ ! -n norix-api ]] | |
++ [[ ! -d /var/lib/dokku/services/mongo/norix-api ]] | |
++ return 0 | |
++ [[ -f /var/lib/dokku/services/mongo/norix-api/ALIAS ]] | |
++ echo MONGO | |
+ ALIAS=MONGO | |
++ service_url norix-api | |
++ local SERVICE=norix-api | |
++ local SERVICE_ROOT=/var/lib/dokku/services/mongo/norix-api | |
+++ cat /var/lib/dokku/services/mongo/norix-api/ID | |
++ local ID=b7162f0262741133f139e1823becb74c4f95670a63a35a48072ec37283e61ce1 | |
+++ get_container_ip b7162f0262741133f139e1823becb74c4f95670a63a35a48072ec37283e61ce1 | |
+++ docker inspect --format '{{ .NetworkSettings.IPAddress }}' b7162f0262741133f139e1823becb74c4f95670a63a35a48072ec37283e61ce1 | |
++ local IP=172.17.0.6 | |
+++ cat /var/lib/dokku/services/mongo/norix-api/PASSWORD | |
++ local PASSWORD=e520a9c7d56cd076fd9b8ed9338f5c01 | |
++ echo mongodb://norix-api:e520a9c7d56cd076fd9b8ed9338f5c01@172.17.0.6:27017/norix-api | |
+ SERVICE_URL=mongodb://norix-api:e520a9c7d56cd076fd9b8ed9338f5c01@172.17.0.6:27017/norix-api | |
+ [[ -f /var/lib/dokku/services/mongo/norix-api/LINKS ]] | |
+ read line | |
+ [[ norix-api == \e\a\r\t\h\q\u\a\k\e\s ]] | |
+ read line | |
+ [[ norix-scraper == \e\a\r\t\h\q\u\a\k\e\s ]] | |
+ read line | |
+ echo '' | |
+ DOCKER_ARGS= | |
+ [[ -n 1 ]] | |
+ DOCKER_ARGS+=' -e TRACE=true ' | |
++ docker run -d -v /home/dokku/earthquakes/cache:/cache -e CACHE_PATH=/cache -e TRACE=true dokku/earthquakes:latest /build | |
+ id=15cc897fc0c62633ad8a83b6752ea0fd51b76193b7ce98822b0320fea9174d0c | |
+ docker attach 15cc897fc0c62633ad8a83b6752ea0fd51b76193b7ce98822b0320fea9174d0c | |
++ cmd-list-ns | |
++ for k in '"${!CMDS[@]}"' | |
++ echo :help | |
++ grep -v : | |
++ sort | |
+ CMDS["$ns:${as/#$ns-/}"]=paths | |
+ cmd-export version | |
+ declare 'desc=Exports a function as a command' | |
+ declare fn=version as=version | |
+ local ns= | |
++ cmd-list-ns | |
++ for k in '"${!CMDS[@]}"' | |
++ echo :help | |
++ sort | |
++ for k in '"${!CMDS[@]}"' | |
++ echo :paths | |
++ grep -v : | |
+ CMDS["$ns:${as/#$ns-/}"]=version | |
+ cmd-export herokuish-test test | |
+ declare 'desc=Exports a function as a command' | |
+ declare fn=herokuish-test as=test | |
+ local ns= | |
++ cmd-list-ns | |
++ grep ++ sort | |
-v : | |
++ for k in '"${!CMDS[@]}"' | |
++ echo :version | |
++ for k in '"${!CMDS[@]}"' | |
++ echo :help | |
++ for k in '"${!CMDS[@]}"' | |
++ echo :paths | |
+ CMDS["$ns:${as/#$ns-/}"]=herokuish-test | |
+ cmd-export-ns buildpack 'Use and install buildpacks' | |
+ declare ns=buildpack 'desc=Use and install buildpacks' | |
+ eval 'buildpack() { | |
declare desc="Use and install buildpacks" | |
cmd-ns buildpack "$@"; | |
}' | |
+ cmd-export buildpack | |
+ declare 'desc=Exports a function as a command' | |
+ declare fn=buildpack as=buildpack | |
+ local ns= | |
++ cmd-list-ns | |
++ ++ grep -v : | |
for k in '"${!CMDS[@]}"' | |
++ echo :version | |
++ for k in '"${!CMDS[@]}"' | |
++ echo :help | |
++ for k in '"${!CMDS[@]}"' | |
++ echo :test | |
++ for k in '"${!CMDS[@]}"' | |
++ echo :paths | |
++ sort | |
+ CMDS["$ns:${as/#$ns-/}"]=buildpack | |
+ CMDS["$1"]=buildpack | |
+ cmd-export buildpack-build | |
+ declare 'desc=Exports a function as a command' | |
+ declare fn=buildpack-build as=buildpack-build | |
+ local ns= | |
++ cmd-list-ns | |
++ grep -v ++ sort | |
: | |
++ for k in '"${!CMDS[@]}"' | |
++ echo :version | |
++ for k in '"${!CMDS[@]}"' | |
++ echo :help | |
++ for k in '"${!CMDS[@]}"' | |
++ echo :test | |
++ for k in '"${!CMDS[@]}"' | |
++ echo :buildpack | |
++ for k in '"${!CMDS[@]}"' | |
++ echo :paths | |
++ for k in '"${!CMDS[@]}"' | |
++ echo buildpack | |
+ for n in '$(cmd-list-ns)' | |
+ echo buildpack-build | |
+ grep '^buildpack-' | |
+ ns=buildpack | |
+ CMDS["$ns:${as/#$ns-/}"]=buildpack-build | |
+ cmd-export buildpack-install | |
+ declare 'desc=Exports a function as a command' | |
+ declare fn=buildpack-install as=buildpack-install | |
+ local ns= | |
++ cmd-list-ns | |
++ ++ grep -v : | |
for k in '"${!CMDS[@]}"' | |
++ echo :version | |
++ for k in '"${!CMDS[@]}"' | |
++ echo :help | |
++ for k in '"${!CMDS[@]}"' | |
++ echo :test | |
++ for k in '"${!CMDS[@]}"' | |
++ echo :buildpack | |
++ for k in '"${!CMDS[@]}"' | |
++ echo :paths | |
++ for k in '"${!CMDS[@]}"' | |
++ echo buildpack | |
++ for k in '"${!CMDS[@]}"' | |
++ echo buildpack:build | |
++ sort | |
+ for n in '$(cmd-list-ns)' | |
+ echo buildpack-install | |
+ grep '^buildpack-' | |
+ ns=buildpack | |
+ CMDS["$ns:${as/#$ns-/}"]=buildpack-install | |
+ cmd-export buildpack-list | |
+ declare 'desc=Exports a function as a command' | |
+ declare fn=buildpack-list as=buildpack-list | |
+ local ns= | |
++ cmd-list-ns | |
++ ++ grep -v : | |
for k in '"${!CMDS[@]}"' | |
++ sort | |
++ echo :version | |
++ for k in '"${!CMDS[@]}"' | |
++ echo :help | |
++ for k in '"${!CMDS[@]}"' | |
++ echo buildpack:install | |
++ for k in '"${!CMDS[@]}"' | |
++ echo :test | |
++ for k in '"${!CMDS[@]}"' | |
++ echo :buildpack | |
++ for k in '"${!CMDS[@]}"' | |
++ echo :paths | |
++ for k in '"${!CMDS[@]}"' | |
++ echo buildpack | |
++ for k in '"${!CMDS[@]}"' | |
++ echo buildpack:build | |
+ for n in '$(cmd-list-ns)' | |
+ echo buildpack-list | |
+ grep '^buildpack-' | |
+ ns=buildpack | |
+ CMDS["$ns:${as/#$ns-/}"]=buildpack-list | |
+ cmd-export-ns slug 'Manage application slugs' | |
+ declare ns=slug 'desc=Manage application slugs' | |
+ eval 'slug() { | |
declare desc="Manage application slugs" | |
cmd-ns slug "$@"; | |
}' | |
+ cmd-export slug | |
+ declare 'desc=Exports a function as a command' | |
+ declare fn=slug as=slug | |
+ local ns= | |
++ cmd-list-ns | |
++ for k in '"${!CMDS[@]}"' | |
++ sort | |
++ echo :version | |
++ grep -v : | |
++ for k in '"${!CMDS[@]}"' | |
++ echo :help | |
++ for k in '"${!CMDS[@]}"' | |
++ echo buildpack:install | |
++ for k in '"${!CMDS[@]}"' | |
++ echo :test | |
++ for k in '"${!CMDS[@]}"' | |
++ echo :buildpack | |
++ for k in '"${!CMDS[@]}"' | |
++ echo :paths | |
++ for k in '"${!CMDS[@]}"' | |
++ echo buildpack | |
++ for k in '"${!CMDS[@]}"' | |
++ echo buildpack:list | |
++ for k in '"${!CMDS[@]}"' | |
++ echo buildpack:build | |
+ for n in '$(cmd-list-ns)' | |
+ echo slug | |
+ grep '^buildpack-' | |
+ CMDS["$ns:${as/#$ns-/}"]=slug | |
+ CMDS["$1"]=slug | |
+ cmd-export slug-import | |
+ declare 'desc=Exports a function as a command' | |
+ declare fn=slug-import as=slug-import | |
+ local ns= | |
++ cmd-list-ns | |
++ for k in '"${!CMDS[@]}"' | |
++ echo :version | |
++ for k in '"${!CMDS[@]}"' | |
++ echo ++ :help | |
++ for k in '"${!CMDS[@]}"' | |
++ echo buildpack:install | |
++ for k in '"${!CMDS[@]}"' | |
++ echo :test | |
++ for k in '"${!CMDS[@]}"' | |
++ echo :buildpack | |
++ for k in '"${!CMDS[@]}"' | |
++ echo :paths | |
++ for k in '"${!CMDS[@]}"' | |
++ echo slug | |
++ for k in '"${!CMDS[@]}"' | |
++ echo :slug | |
++ for k in '"${!CMDS[@]}"' | |
++ echo buildpack | |
++ for k in '"${!CMDS[@]}"' | |
++ echo buildpack:list | |
++ for k in '"${!CMDS[@]}"' | |
++ echo buildpack:build | |
sort | |
++ grep -v : | |
+ for n in '$(cmd-list-ns)' | |
+ echo slug-import+ grep | |
'^buildpack-' | |
+ for n in '$(cmd-list-ns)' | |
+ grep '^slug-' | |
+ echo slug-import | |
+ ns=slug | |
+ CMDS["$ns:${as/#$ns-/}"]=slug-import | |
+ cmd-export slug-generate | |
+ declare 'desc=Exports a function as a command' | |
+ declare fn=slug-generate as=slug-generate | |
+ local ns= | |
++ cmd-list-ns | |
++ grep -v : | |
++ for k in '"${!CMDS[@]}"' | |
++ echo :version | |
++ for k in '"${!CMDS[@]}"' | |
++ echo :help | |
++ for k in '"${!CMDS[@]}"' | |
++ echo buildpack:install | |
++ for k in '"${!CMDS[@]}"' | |
++ echo :test | |
++ for k in '"${!CMDS[@]}"' | |
++ echo :buildpack | |
++ for k in '"${!CMDS[@]}"' | |
++ echo :paths | |
++ for k in '"${!CMDS[@]}"' | |
++ echo slug | |
++ for k in '"${!CMDS[@]}"' | |
++ echo :slug | |
++ for k in '"${!CMDS[@]}"' | |
++ echo buildpack | |
++ for k in '"${!CMDS[@]}"' | |
++ echo slug:import | |
++ for k in '"${!CMDS[@]}"' | |
++ echo buildpack:list | |
++ for k in '"${!CMDS[@]}"' | |
++ echo buildpack:build | |
++ sort | |
+ for n in '$(cmd-list-ns)' | |
+ + grep '^buildpack-' | |
echo slug-generate | |
+ for n in '$(cmd-list-ns)' | |
+ echo + slug-generate | |
grep '^slug-' | |
+ ns=slug | |
+ CMDS["$ns:${as/#$ns-/}"]=slug-generate | |
+ cmd-export slug-export | |
+ declare 'desc=Exports a function as a command' | |
+ declare fn=slug-export as=slug-export | |
+ local ns= | |
++ cmd-list-ns | |
++ for k in '"${!CMDS[@]}"' | |
++ echo :version++ sort | |
++ for k in '"${!CMDS[@]}"' | |
++ echo :help | |
++ for k in '"${!CMDS[@]}"' | |
++ echo buildpack:install | |
++ for k in '"${!CMDS[@]}"' | |
++ echo :test | |
++ for k in '"${!CMDS[@]}"' | |
++ echo slug:generate | |
++ for k in '"${!CMDS[@]}"' | |
++ echo :buildpack | |
++ for k in '"${!CMDS[@]}"' | |
++ echo :paths | |
++ for k in '"${!CMDS[@]}"' | |
++ echo slug | |
++ for k in '"${!CMDS[@]}"' | |
++ echo :slug | |
++ for k in '"${!CMDS[@]}"' | |
++ echo buildpack | |
++ for k in '"${!CMDS[@]}"' | |
++ echo slug:import | |
++ for k in '"${!CMDS[@]}"' | |
++ echo buildpack:list | |
++ for k in '"${!CMDS[@]}"' | |
++ echo buildpack:build | |
++ grep -v : | |
+ for n in '$(cmd-list-ns)' | |
+ echo slug-export | |
+ grep '^buildpack-' | |
+ for n in '$(cmd-list-ns)' | |
+ echo slug-export | |
+ grep '^slug-' | |
+ ns=slug | |
+ CMDS["$ns:${as/#$ns-/}"]=slug-export | |
+ cmd-export-ns procfile 'Use Procfiles and run app commands' | |
+ declare ns=procfile 'desc=Use Procfiles and run app commands' | |
+ eval 'procfile() { | |
declare desc="Use Procfiles and run app commands" | |
cmd-ns procfile "$@"; | |
}' | |
+ cmd-export procfile | |
+ declare 'desc=Exports a function as a command' | |
+ declare fn=procfile as=procfile | |
+ local ns= | |
++ cmd-list-ns | |
++ ++ grep -v : | |
for k in '"${!CMDS[@]}"' | |
++ echo :version | |
++ for k in '"${!CMDS[@]}"' | |
++ echo :help | |
++ for k in '"${!CMDS[@]}"' | |
++ echo buildpack:install | |
++ for k in '"${!CMDS[@]}"' | |
++ echo :test | |
++ for k in '"${!CMDS[@]}"' | |
++ echo slug:generate | |
++ for k in '"${!CMDS[@]}"' | |
++ echo :buildpack | |
++ for k in '"${!CMDS[@]}"' | |
++ echo :paths | |
++ for k in '"${!CMDS[@]}"' | |
++ echo slug | |
++ for k in '"${!CMDS[@]}"' | |
++ echo :slug | |
++ for k in '"${!CMDS[@]}"' | |
++ echo buildpack | |
++ for k in '"${!CMDS[@]}"' | |
++ echo slug:import | |
++ for k in '"${!CMDS[@]}"' | |
++ echo buildpack:list | |
++ for k in '"${!CMDS[@]}"' | |
++ echo slug:export | |
++ for k in '"${!CMDS[@]}"' | |
++ echo buildpack:build | |
++ sort | |
+ for n in '$(cmd-list-ns)' | |
+ + grep '^buildpack-' | |
echo procfile | |
+ for n in '$(cmd-list-ns)' | |
+ grep + echo procfile | |
'^slug-' | |
+ CMDS["$ns:${as/#$ns-/}"]=procfile | |
+ CMDS["$1"]=procfile | |
+ cmd-export procfile-start | |
+ declare 'desc=Exports a function as a command' | |
+ declare fn=procfile-start as=procfile-start | |
+ local ns= | |
++ cmd-list-ns | |
++ ++ grep -v : | |
for k in '"${!CMDS[@]}"' | |
++ echo :version | |
++ sort | |
++ for k in '"${!CMDS[@]}"' | |
++ echo :help | |
++ for k in '"${!CMDS[@]}"' | |
++ echo :procfile | |
++ for k in '"${!CMDS[@]}"' | |
++ echo buildpack:install | |
++ for k in '"${!CMDS[@]}"' | |
++ echo :test | |
++ for k in '"${!CMDS[@]}"' | |
++ echo slug:generate | |
++ for k in '"${!CMDS[@]}"' | |
++ echo :buildpack | |
++ for k in '"${!CMDS[@]}"' | |
++ echo :paths | |
++ for k in '"${!CMDS[@]}"' | |
++ echo slug | |
++ for k in '"${!CMDS[@]}"' | |
++ echo :slug | |
++ for k in '"${!CMDS[@]}"' | |
++ echo buildpack | |
++ for k in '"${!CMDS[@]}"' | |
++ echo slug:import | |
++ for k in '"${!CMDS[@]}"' | |
++ echo buildpack:list | |
++ for k in '"${!CMDS[@]}"' | |
++ echo slug:export | |
++ for k in '"${!CMDS[@]}"' | |
++ echo buildpack:build | |
++ for k in '"${!CMDS[@]}"' | |
++ echo procfile | |
+ for n in '$(cmd-list-ns)' | |
+ echo procfile-start | |
+ grep '^buildpack-' | |
+ for n in '$(cmd-list-ns)' | |
+ + echo procfile-startgrep | |
'^procfile-' | |
+ ns=procfile | |
+ for n in '$(cmd-list-ns)' | |
+ echo + grep '^slug-' | |
procfile-start | |
+ CMDS["$ns:${as/#$ns-/}"]=procfile-start | |
+ cmd-export procfile-exec | |
+ declare 'desc=Exports a function as a command' | |
+ declare fn=procfile-exec as=procfile-exec | |
+ local ns= | |
++ cmd-list-ns | |
++ grep -v : | |
++ sort | |
++ for k in '"${!CMDS[@]}"' | |
++ echo :version | |
++ for k in '"${!CMDS[@]}"' | |
++ echo :help | |
++ for k in '"${!CMDS[@]}"' | |
++ echo :procfile | |
++ for k in '"${!CMDS[@]}"' | |
++ echo buildpack:install | |
++ for k in '"${!CMDS[@]}"' | |
++ echo procfile:start | |
++ for k in '"${!CMDS[@]}"' | |
++ echo :test | |
++ for k in '"${!CMDS[@]}"' | |
++ echo slug:generate | |
++ for k in '"${!CMDS[@]}"' | |
++ echo :buildpack | |
++ for k in '"${!CMDS[@]}"' | |
++ echo :paths | |
++ for k in '"${!CMDS[@]}"' | |
++ echo slug | |
++ for k in '"${!CMDS[@]}"' | |
++ echo :slug | |
++ for k in '"${!CMDS[@]}"' | |
++ echo buildpack | |
++ for k in '"${!CMDS[@]}"' | |
++ echo slug:import | |
++ for k in '"${!CMDS[@]}"' | |
++ echo buildpack:list | |
++ for k in '"${!CMDS[@]}"' | |
++ echo slug:export | |
++ for k in '"${!CMDS[@]}"' | |
++ echo buildpack:build | |
++ for k in '"${!CMDS[@]}"' | |
++ echo procfile | |
+ for n in '$(cmd-list-ns)' | |
+ echo procfile-exec | |
+ grep '^buildpack-' | |
+ for n in '$(cmd-list-ns)' | |
+ grep '^procfile-'+ | |
echo procfile-exec | |
+ ns=procfile | |
+ for n in '$(cmd-list-ns)' | |
+ echo procfile-exec | |
+ grep '^slug-' | |
+ CMDS["$ns:${as/#$ns-/}"]=procfile-exec | |
+ cmd-export procfile-parse | |
+ declare 'desc=Exports a function as a command' | |
+ declare fn=procfile-parse as=procfile-parse | |
+ local ns= | |
++ cmd-list-ns | |
++ for k in '"${!CMDS[@]}"' | |
++ ++ sortecho :version | |
++ for k in '"${!CMDS[@]}"' | |
++ echo :help | |
++ for k in '"${!CMDS[@]}"' | |
++ echo :procfile | |
++ for k in '"${!CMDS[@]}"' | |
++ echo buildpack:install | |
++ for k in '"${!CMDS[@]}"' | |
++ echo procfile:start | |
++ for k in '"${!CMDS[@]}"' | |
++ echo :test | |
++ for k in '"${!CMDS[@]}"' | |
++ echo slug:generate | |
++ for k in '"${!CMDS[@]}"' | |
++ echo :buildpack | |
++ for k in '"${!CMDS[@]}"' | |
++ echo :paths | |
++ for k in '"${!CMDS[@]}"' | |
++ echo slug | |
++ for k in '"${!CMDS[@]}"' | |
++ echo :slug | |
++ for k in '"${!CMDS[@]}"' | |
++ echo buildpack | |
++ for k in '"${!CMDS[@]}"' | |
++ echo slug:import | |
++ for k in '"${!CMDS[@]}"' | |
++ echo buildpack:list | |
++ for k in '"${!CMDS[@]}"' | |
++ echo slug:export | |
++ for k in '"${!CMDS[@]}"' | |
++ echo buildpack:build | |
++ for k in '"${!CMDS[@]}"' | |
++ echo procfile:exec | |
++ for k in '"${!CMDS[@]}"' | |
++ echo procfile | |
++ grep -v : | |
+ for n in '$(cmd-list-ns)' | |
+ echo procfile-parse | |
+ grep '^buildpack-' | |
+ for n in '$(cmd-list-ns)' | |
+ echo procfile-parse+ | |
grep '^procfile-' | |
+ ns=procfile | |
+ for n in '$(cmd-list-ns)' | |
+ echo procfile-parse | |
+ grep '^slug-' | |
+ CMDS["$ns:${as/#$ns-/}"]=procfile-parse | |
+ case "$SELF" in | |
+ buildpack-build | |
+ declare 'desc=Build an application using installed buildpacks' | |
+ ensure-paths | |
+ mkdir -p /app /tmp/env /tmp/build /cache /tmp/buildpacks | |
+ [[ -n '' ]] | |
+ randomize-unprivileged | |
+ local userid=13443 | |
+ local username=u13443 | |
+ addgroup --quiet --gid 13443 u13443 | |
+ adduser --shell /bin/bash --disabled-password --force-badname --no-create-home --uid 13443 --gid 13443 --gecos '' --quiet --home /app u13443 | |
+ unprivileged_user=u13443 | |
+ unprivileged_group=u13443 | |
+ buildpack-setup | |
+ export APP_DIR=/app | |
+ APP_DIR=/app | |
+ export HOME=/app | |
+ HOME=/app | |
+ export REQUEST_ID=build-17928 | |
+ REQUEST_ID=build-17928 | |
+ export STACK=cedar-14 | |
+ STACK=cedar-14 | |
+ cp -r /app/. /tmp/build | |
+ usermod --home /app u13443 | |
+ chown -R u13443:u13443 /app /tmp/build /cache /tmp/buildpacks | |
+ export CURL_CONNECT_TIMEOUT=30 | |
+ CURL_CONNECT_TIMEOUT=30 | |
+ [[ -f /app/.env ]] | |
+ source /app/.env | |
++ export CURL_TIMEOUT=600 | |
++ CURL_TIMEOUT=600 | |
++ export CURL_CONNECT_TIMEOUT=240 | |
++ CURL_CONNECT_TIMEOUT=240 | |
++ export CARTODB_API_KEY=[removed] | |
++ CARTODB_API_KEY=[removed] | |
++ export CARTODB_CONSUMER_KEY=[removed] | |
++ CARTODB_CONSUMER_KEY=[removed] | |
++ export CARTODB_CONSUMER_SECRET=[removed] | |
++ CARTODB_CONSUMER_SECRET=[removed] | |
++ export CARTODB_PASSWORD=[removed] | |
++ CARTODB_PASSWORD=[removed] | |
++ export CARTODB_URL=earthquakes_cartodb:8080 | |
++ CARTODB_URL=earthquakes_cartodb:8080 | |
++ export CARTODB_USER=nonni | |
++ CARTODB_USER=nonni | |
++ export DOKKU_NGINX_PORT=80 | |
++ DOKKU_NGINX_PORT=80 | |
+ buildpack-execute | |
+ + indent | |
[[ -n ''+ ]] | |
read line | |
+ ls /tmp/buildpacks/heroku-buildpack-multi | |
++ unprivileged /tmp/buildpacks/heroku-buildpack-multi/bin/detect /tmp/build | |
++ setuidgid u13443 /tmp/buildpacks/heroku-buildpack-multi/bin/detect /tmp/build | |
+ selected_name='no .buildpacks file' | |
+ [[ ! -n '' ]] | |
+ buildpacks=($buildpack_path/*) | |
+ local buildpacks | |
+ for buildpack in '"${buildpacks[@]}"' | |
++ unprivileged /tmp/buildpacks/heroku-buildpack-clojure/bin/detect /tmp/build | |
++ setuidgid u13443 /tmp/buildpacks/heroku-buildpack-clojure/bin/detect /tmp/build | |
+ selected_name=no | |
+ for buildpack in '"${buildpacks[@]}"' | |
++ unprivileged /tmp/buildpacks/heroku-buildpack-go/bin/detect /tmp/build | |
++ setuidgid u13443 /tmp/buildpacks/heroku-buildpack-go/bin/detect /tmp/build | |
+ selected_name=no | |
+ for buildpack in '"${buildpacks[@]}"' | |
++ unprivileged /tmp/buildpacks/heroku-buildpack-gradle/bin/detect /tmp/build | |
++ setuidgid u13443 /tmp/buildpacks/heroku-buildpack-gradle/bin/detect /tmp/build | |
+ selected_name=no | |
+ for buildpack in '"${buildpacks[@]}"' | |
++ unprivileged /tmp/buildpacks/heroku-buildpack-grails/bin/detect /tmp/build | |
++ setuidgid u13443 /tmp/buildpacks/heroku-buildpack-grails/bin/detect /tmp/build | |
+ selected_name=no | |
+ for buildpack in '"${buildpacks[@]}"' | |
++ unprivileged /tmp/buildpacks/heroku-buildpack-java/bin/detect /tmp/build | |
++ setuidgid u13443 /tmp/buildpacks/heroku-buildpack-java/bin/detect /tmp/build | |
+ selected_name=no | |
+ for buildpack in '"${buildpacks[@]}"' | |
++ unprivileged /tmp/buildpacks/heroku-buildpack-multi/bin/detect /tmp/build | |
++ setuidgid u13443 /tmp/buildpacks/heroku-buildpack-multi/bin/detect /tmp/build | |
+ selected_name='no .buildpacks file' | |
+ for buildpack in '"${buildpacks[@]}"' | |
++ unprivileged /tmp/buildpacks/heroku-buildpack-nodejs/bin/detect /tmp/build | |
++ setuidgid u13443 /tmp/buildpacks/heroku-buildpack-nodejs/bin/detect /tmp/build | |
+ selected_name=Node.js | |
+ selected_path=/tmp/buildpacks/heroku-buildpack-nodejs | |
+ break | |
+ [[ -n /tmp/buildpacks/heroku-buildpack-nodejs ]] | |
+ [[ -n Node.js ]] | |
+ title 'Node.js app detected' | |
----->' Node.js app detected | |
+ cd /tmp/build | |
+ unprivileged /tmp/buildpacks/heroku-buildpack-nodejs/bin/compile /tmp/build /cache /tmp/env | |
+ setuidgid u13443 /tmp/buildpacks/heroku-buildpack-nodejs/bin/compile /tmp/build /cache /tmp/env | |
-----> Node.js app detected == --* ]] | |
-----> Node.js app detected == ==* ]] | |
-----> Node.js app detected' | |
-----> Node.js app detected | |
+ read line | |
+ [[ '' == --* ]] | |
+ [[ '' == ==* ]] | |
' '' | |
+ read line | |
+ [[ -----> Creating runtime environment == --* ]] | |
----->' Creating runtime environment | |
-----> Creating runtime environment | |
+ read line | |
+ [[ '' == --* ]] | |
+ [[ '' == ==* ]] | |
' '' | |
+ read line | |
+ [[ NPM_CONFIG_LOGLEVEL=error == --* ]] | |
+ [[ NPM_CONFIG_LOGLEVEL=error == ==* ]] | |
' NPM_CONFIG_LOGLEVEL=error | |
+ read line | |
+ [[ NPM_CONFIG_PRODUCTION=true == --* ]] | |
+ [[ NPM_CONFIG_PRODUCTION=true == ==* ]] | |
' NPM_CONFIG_PRODUCTION=true | |
+ read line | |
NPM_CONFIG_LOGLEVEL=error | |
NPM_CONFIG_PRODUCTION=true | |
+ [[ NODE_MODULES_CACHE=true == --* ]] | |
+ [[ NODE_MODULES_CACHE=true == ==* ]] | |
' NODE_MODULES_CACHE=true | |
+ read line | |
NODE_MODULES_CACHE=true | |
-----> Installing binaries | |
+ [[ '' == --* ]] | |
+ [[ '' == ==* ]] | |
' '' | |
+ read line | |
+ [[ -----> Installing binaries == --* ]] | |
----->' Installing binaries | |
+ read line | |
+ [[ engines.node (package.json): unspecified == --* ]] | |
+ [[ engines.node (package.json): unspecified == ==* ]] | |
' 'engines.node (package.json): unspecified' | |
+ read line | |
engines.node (package.json): unspecified | |
engines.npm (package.json): unspecified (use default) | |
+ [[ engines.npm (package.json): unspecified (use default) == --* ]] | |
+ [[ engines.npm (package.json): unspecified (use default) == ==* ]] | |
' 'engines.npm (package.json): unspecified (use default)' | |
+ read line | |
+ [[ '' == --* ]] | |
+ [[ '' == ==* ]] | |
' '' | |
+ read line | |
+ [[ Resolving node version (latest stable) via semver.io... == --* ]] | |
+ [[ Resolving node version (latest stable) via semver.io... == ==* ]] | |
' 'Resolving node version (latest stable) via semver.io...' | |
Resolving node version (latest stable) via semver.io... | |
+ [[ Downloading and installing node 4.2.1... == --* ]] | |
+ [[ Downloading and installing node 4.2.1... == ==* ]] | |
' 'Downloading and installing node 4.2.1...' | |
Downloading and installing node 4.2.1... | |
read line | |
+ [[ Using default npm version: 2.14.7 == --* ]] | |
+ [[ Using default npm version: 2.14.7 == ==* ]] | |
' 'Using default npm version: 2.14.7' | |
Using default npm version: 2.14.7 | |
+ read line | |
+ [[ '' == --* ]] | |
+ [[ '' == ==* ]] | |
' '' | |
+ read line | |
+ [[ -----> Restoring cache == --* ]] | |
----->' Restoring cache | |
-----> Restoring cache | |
+ read line | |
+ [[ Loading 1 from cacheDirectories (default): == --* ]] | |
+ [[ Loading 1 from cacheDirectories (default): == ==* ]] | |
' 'Loading 1 from cacheDirectories (default):' | |
+ read line | |
+ [[ - node_modules == --* ]] | |
+ [[ - node_modules == ==* ]] | |
' '- node_modules' | |
Loading 1 from cacheDirectories (default): | |
+ read line | |
- node_modules | |
+ [[ '' == --* ]] | |
+ [[ '' == ==* ]] | |
' '' | |
+ read line | |
+ [[ -----> Building dependencies == --* ]] | |
----->' Building dependencies | |
-----> Building dependencies | |
+ read line | |
+ [[ Pruning any extraneous modules == --* ]] | |
+ [[ Pruning any extraneous modules == ==* ]] | |
' 'Pruning any extraneous modules' | |
Pruning any extraneous modules | |
+ read line | |
+ [[ Installing node modules (package.json) == --* ]] | |
+ [[ Installing node modules (package.json) == ==* ]] | |
' 'Installing node modules (package.json)' | |
Installing node modules (package.json) | |
+ read line | |
+ [[ cartodb@0.2.1 node_modules/cartodb == --* ]] | |
+ [[ cartodb@0.2.1 node_modules/cartodb == ==* ]] | |
' 'cartodb@0.2.1 node_modules/cartodb' | |
cartodb@0.2.1 node_modules/cartodb | |
+ read line | |
+ [[ ├── superagent-oauth@0.2.3 == --* ]] | |
+ [[ ├── superagent-oauth@0.2.3 == ==* ]] | |
' '├── superagent-oauth@0.2.3' | |
├── superagent-oauth@0.2.3 | |
+ read line | |
+ [[ ├── debug@0.7.4 == --* ]] | |
+ [[ ├── debug@0.7.4 == ==* ]] | |
' '├── debug@0.7.4' | |
├── debug@0.7.4 | |
+ read line | |
+ [[ ├── oauth@0.9.14 == --* ]] | |
+ [[ ├── oauth@0.9.14 == ==* ]] | |
' '├── oauth@0.9.14' | |
├── oauth@0.9.14 | |
+ read line | |
+ [[ └── superagent@0.12.4 (methods@0.0.1, cookiejar@1.3.0, emitter-component@0.0.6, mime@1.2.5, qs@0.5.2, formidable@1.0.9) == --* ]] | |
+ [[ └── superagent@0.12.4 (methods@0.0.1, cookiejar@1.3.0, emitter-component@0.0.6, mime@1.2.5, qs@0.5.2, formidable@1.0.9) == ==* ]] | |
' '└── superagent@0.12.4 (methods@0.0.1, cookiejar@1.3.0, emitter-component@0.0.6, mime@1.2.5, qs@0.5.2, formidable@1.0.9)' | |
└── superagent@0.12.4 (methods@0.0.1, cookiejar@1.3.0, emitter-component@0.0.6, mime@1.2.5, qs@0.5.2, formidable@1.0.9) | |
+ read line | |
+ [[ '' == --* ]] | |
+ [[ '' == ==* ]] | |
' '' | |
+ read line | |
+ [[ -----> Caching build == --* ]] | |
----->' Caching build | |
-----> Caching build | |
+ read line | |
+ [[ Clearing previous node cache == --* ]] | |
+ [[ Clearing previous node cache == ==* ]] | |
' 'Clearing previous node cache' | |
+ read line | |
Clearing previous node cache | |
+ [[ Saving 1 cacheDirectories (default): == --* ]] | |
+ [[ Saving 1 cacheDirectories (default): == ==* ]] | |
' 'Saving 1 cacheDirectories (default):' | |
Saving 1 cacheDirectories (default): | |
+ read line | |
+ [[ - node_modules == --* ]] | |
+ [[ - node_modules == ==* ]] | |
' '- node_modules' | |
- node_modules | |
line | |
+ [[ '' == --* ]] | |
+ [[ '' == ==* ]] | |
' '' | |
+ read line | |
+ [[ -----> Build succeeded! == --* ]] | |
----->' Build 'succeeded!' | |
+ read line | |
-----> Build succeeded! | |
+ [[ ├── cartodb@0.2.1 (git://github.com/busla/cartodb-nodejs.git#5bc1bf0523ba29d5dd331bfe0f6831a75a4cc563) == --* ]] | |
+ [[ ├── cartodb@0.2.1 (git://github.com/busla/cartodb-nodejs.git#5bc1bf0523ba29d5dd331bfe0f6831a75a4cc563) == ==* ]] | |
' '├── cartodb@0.2.1 (git://github.com/busla/cartodb-nodejs.git#5bc1bf0523ba29d5dd331bfe0f6831a75a4cc563)' | |
+ read line | |
+ [[ ├── cheerio@0.19.0 == --* ]] | |
├── cartodb@0.2.1 (git://github.com/busla/cartodb-nodejs.git#5bc1bf0523ba29d5dd331bfe0f6831a75a4cc563) | |
├── cheerio@0.19.0 | |
+ [[ ├── cheerio@0.19.0 == ==* ]] | |
' '├── cheerio@0.19.0' | |
+ read line | |
+ [[ ├── http-server@0.8.5 == --* ]] | |
+ [[ ├── http-server@0.8.5 == ==* ]] | |
' '├── http-server@0.8.5' | |
+ read line | |
+ [[ ├── moment@2.10.6 == --* ]] | |
+ [[ ├── moment@2.10.6 == ==* ]] | |
' '├── moment@2.10.6' | |
+ read line | |
+ [[ ├── node-schedule@0.2.9 == --* ]] | |
+ [[ ├── node-schedule@0.2.9 == ==* ]] | |
' '├── node-schedule@0.2.9' | |
+ read line | |
├── http-server@0.8.5 | |
├── moment@2.10.6 | |
├── node-schedule@0.2.9 | |
[[ ├── request@2.65.0 == --* ]] | |
+ [[ ├── request@2.65.0 == ==* ]] | |
' '├── request@2.65.0' | |
+ read line | |
├── request@2.65.0 | |
+ [[ └── underscore@1.8.3 == --* ]] | |
+ [[ └── underscore@1.8.3 == ==* ]] | |
' '└── underscore@1.8.3' | |
└── underscore@1.8.3 | |
+ read line | |
+ [[ '' == --* ]] | |
+ [[ '' == ==* ]] | |
' '' | |
+ read line | |
+ [[ -f /tmp/buildpacks/heroku-buildpack-nodejs/bin/release ]] | |
+ unprivileged /tmp/buildpacks/heroku-buildpack-nodejs/bin/release /tmp/build /cache | |
+ setuidgid u13443 /tmp/buildpacks/heroku-buildpack-nodejs/bin/release /tmp/build /cache | |
+ cd - | |
+ shopt -s dotglob nullglob | |
+ rm -rf /app/.env /app/.gitignore /app/.npm /app/Procfile /app/README.md /app/freelancer /app/package.json /app/secret.js /app/server.js | |
+ mv /tmp/build/.env /tmp/build/.gitignore /tmp/build/.heroku /tmp/build/.profile.d /tmp/build/.release /tmp/build/Procfile /tmp/build/README.md /tmp/build/freelancer /tmp/build/node_modules /tmp/build/package.json /tmp/build/secret.js /tmp/build/server.js /app | |
+ shopt -u dotglob nullglob | |
+ procfile-types | |
+ title 'Discovering process types' | |
----->' Discovering process types | |
+ [[ -f /app/Procfile ]] | |
+ local types | |
+ indent | |
+ read line | |
-----> Discovering process types == --* ]] | |
-----> Discovering process types == ==* ]] | |
-----> Discovering process types' | |
+ read line | |
++ cat /app/Procfile | |
++ yaml-keys | |
++ /bin/herokuish ::: yaml-keys | |
-----> Discovering process types | |
++ xargs echo | |
+ types=web | |
+ echo 'Procfile declares types -> web' | |
+ + [[ Procfile declares types -> web == --* ]] | |
+ [[ Procfile declares types -> web == ==* ]] | |
' 'Procfile declares types -> web' | |
Procfile declares types -> web | |
+ read line | |
return | |
++ docker wait 15cc897fc0c62633ad8a83b6752ea0fd51b76193b7ce98822b0320fea9174d0c | |
+ test 0 -eq 0 | |
+ docker commit 15cc897fc0c62633ad8a83b6752ea0fd51b76193b7ce98822b0320fea9174d0c dokku/earthquakes:latest | |
+ plugn trigger post-build-buildpack earthquakes | |
+ source /var/lib/dokku/core-plugins/available/common/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ [[ ! -n '' ]] | |
+ 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/20_events/commands build earthquakes herokuish /tmp/tmp.xFoYmPYmLa | |
+ 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 build earthquakes herokuish /tmp/tmp.xFoYmPYmLa | |
+ exit_code=10 | |
+ set -e | |
+ [[ 10 -eq 10 ]] | |
+ continue | |
+ for script in '$PLUGIN_ENABLED_PATH/*/commands' | |
+ set +e | |
+ /var/lib/dokku/plugins/enabled/backup/commands build earthquakes herokuish /tmp/tmp.xFoYmPYmLa | |
+ 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 build earthquakes herokuish /tmp/tmp.xFoYmPYmLa | |
+ 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 build earthquakes herokuish /tmp/tmp.xFoYmPYmLa | |
+ 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 build earthquakes herokuish /tmp/tmp.xFoYmPYmLa | |
+ exit_code=10 | |
+ set -e | |
+ [[ 10 -eq 10 ]] | |
+ continue | |
+ for script in '$PLUGIN_ENABLED_PATH/*/commands' | |
+ set +e | |
+ /var/lib/dokku/plugins/enabled/dokku-mongo/commands build earthquakes herokuish /tmp/tmp.xFoYmPYmLa | |
+ PLUGIN_BASE_PATH=/var/lib/dokku/plugins | |
+ [[ -n 1 ]] | |
+ PLUGIN_BASE_PATH=/var/lib/dokku/plugins/enabled | |
+ source /var/lib/dokku/plugins/enabled/common/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
++ dirname /var/lib/dokku/plugins/enabled/dokku-mongo/commands | |
+ source /var/lib/dokku/plugins/enabled/dokku-mongo/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+++ dirname /var/lib/dokku/plugins/enabled/dokku-mongo/commands | |
++ source /var/lib/dokku/plugins/enabled/dokku-mongo/config | |
+++ export MONGO_IMAGE=mongo | |
+++ MONGO_IMAGE=mongo | |
+++ export MONGO_IMAGE_VERSION=3.0.6 | |
+++ MONGO_IMAGE_VERSION=3.0.6 | |
+++ export MONGO_ROOT=/var/lib/dokku/services/mongo | |
+++ MONGO_ROOT=/var/lib/dokku/services/mongo | |
+++ export PLUGIN_COMMAND_PREFIX=mongo | |
+++ PLUGIN_COMMAND_PREFIX=mongo | |
+++ export PLUGIN_DATA_ROOT=/var/lib/dokku/services/mongo | |
+++ PLUGIN_DATA_ROOT=/var/lib/dokku/services/mongo | |
+++ PLUGIN_DATASTORE_PORTS=(27017 27018 27019 28017) | |
+++ export PLUGIN_DATASTORE_PORTS | |
+++ export PLUGIN_DEFAULT_ALIAS=MONGO | |
+++ PLUGIN_DEFAULT_ALIAS=MONGO | |
+++ export PLUGIN_IMAGE=mongo | |
+++ PLUGIN_IMAGE=mongo | |
+++ export PLUGIN_IMAGE_VERSION=3.0.6 | |
+++ PLUGIN_IMAGE_VERSION=3.0.6 | |
+++ export PLUGIN_SCHEME=mongodb | |
+++ PLUGIN_SCHEME=mongodb | |
+++ export PLUGIN_SERVICE=MongoDB | |
+++ PLUGIN_SERVICE=MongoDB | |
++ dirname /var/lib/dokku/plugins/enabled/dokku-mongo/commands | |
+ source /var/lib/dokku/plugins/enabled/dokku-mongo/config | |
++ export MONGO_IMAGE=mongo | |
++ MONGO_IMAGE=mongo | |
++ export MONGO_IMAGE_VERSION=3.0.6 | |
++ MONGO_IMAGE_VERSION=3.0.6 | |
++ export MONGO_ROOT=/var/lib/dokku/services/mongo | |
++ MONGO_ROOT=/var/lib/dokku/services/mongo | |
++ export PLUGIN_COMMAND_PREFIX=mongo | |
++ PLUGIN_COMMAND_PREFIX=mongo | |
++ export PLUGIN_DATA_ROOT=/var/lib/dokku/services/mongo | |
++ PLUGIN_DATA_ROOT=/var/lib/dokku/services/mongo | |
++ PLUGIN_DATASTORE_PORTS=(27017 27018 27019 28017) | |
++ export PLUGIN_DATASTORE_PORTS | |
++ export PLUGIN_DEFAULT_ALIAS=MONGO | |
++ PLUGIN_DEFAULT_ALIAS=MONGO | |
++ export PLUGIN_IMAGE=mongo | |
++ PLUGIN_IMAGE=mongo | |
++ export PLUGIN_IMAGE_VERSION=3.0.6 | |
++ PLUGIN_IMAGE_VERSION=3.0.6 | |
++ export PLUGIN_SCHEME=mongodb | |
++ PLUGIN_SCHEME=mongodb | |
++ export PLUGIN_SERVICE=MongoDB | |
++ PLUGIN_SERVICE=MongoDB | |
+ [[ build == mongo:* ]] | |
+ 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/domains/commands build earthquakes herokuish /tmp/tmp.xFoYmPYmLa | |
+ 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 build earthquakes herokuish /tmp/tmp.xFoYmPYmLa | |
+ 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 build earthquakes herokuish /tmp/tmp.xFoYmPYmLa | |
+ source /var/lib/dokku/core-plugins/available/common/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/nginx-vhosts/commands build earthquakes herokuish /tmp/tmp.xFoYmPYmLa | |
+ 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 build earthquakes herokuish /tmp/tmp.xFoYmPYmLa | |
+ 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 build earthquakes herokuish /tmp/tmp.xFoYmPYmLa | |
+ 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 build earthquakes herokuish /tmp/tmp.xFoYmPYmLa | |
+ 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 build earthquakes herokuish /tmp/tmp.xFoYmPYmLa | |
+ 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 build earthquakes herokuish /tmp/tmp.xFoYmPYmLa | |
+ exit_code=10 | |
+ set -e | |
+ [[ 10 -eq 10 ]] | |
+ continue | |
+ [[ 1 -eq 0 ]] | |
+ release_and_deploy earthquakes | |
+ local APP=earthquakes | |
+ local IMAGE_TAG= | |
++ get_app_image_name earthquakes | |
++ local APP=earthquakes | |
++ local IMAGE_TAG= | |
+++ get_app_image_repo earthquakes | |
+++ local APP=earthquakes | |
+++ local IMAGE_REPO=dokku/earthquakes | |
+++ [[ -z earthquakes ]] | |
+++ echo dokku/earthquakes | |
++ local IMAGE_REPO=dokku/earthquakes | |
++ [[ -z earthquakes ]] | |
++ [[ -n '' ]] | |
++ IMAGE=dokku/earthquakes:latest | |
++ echo dokku/earthquakes:latest | |
+ local IMAGE=dokku/earthquakes:latest | |
+ verify_app_name earthquakes | |
+ local APP=earthquakes | |
+ [[ ! -n earthquakes ]] | |
+ [[ ! -d /home/dokku/earthquakes ]] | |
+ return 0 | |
+ verify_image dokku/earthquakes:latest | |
+ local IMAGE=dokku/earthquakes:latest | |
+ docker inspect dokku/earthquakes:latest | |
+ return 0 | |
+ is_image_herokuish_based dokku/earthquakes:latest | |
+ [[ ! -f /home/ubuntu/.circlerc ]] | |
+ local DOCKER_ARGS=--rm | |
+ docker run --entrypoint=/bin/sh --rm dokku/earthquakes:latest -c 'test -f /exec' | |
+ IMAGE_SOURCE_TYPE=herokuish | |
+ dokku_log_info1 'Releasing earthquakes (dokku/earthquakes:latest)...' | |
+ echo '-----> Releasing earthquakes (dokku/earthquakes:latest)...' | |
+ dokku release earthquakes herokuish '' | |
-----> Releasing earthquakes (dokku/earthquakes:latest)... | |
+ [[ -f /home/dokku/dokkurc ]] | |
+ [[ -d /home/dokku/.dokkurc ]] | |
+ for f in '$DOKKU_ROOT/.dokkurc/*' | |
+ source /home/dokku/.dokkurc/DOKKU_TRACE | |
++ export DOKKU_TRACE=1 | |
++ DOKKU_TRACE=1 | |
+ [[ -n 1 ]] | |
+ set -x | |
+ parse_args release earthquakes herokuish '' | |
+ for arg in '"$@"' | |
+ case "$arg" in | |
+ for arg in '"$@"' | |
+ case "$arg" in | |
+ for arg in '"$@"' | |
+ case "$arg" in | |
+ for arg in '"$@"' | |
+ case "$arg" in | |
+ return 0 | |
+ args=("$@") | |
+ [[ release =~ ^--.* ]] | |
+ has_tty | |
++ /usr/bin/tty | |
+ [[ /dev/pts/0 == \n\o\t\ \a\ \t\t\y ]] | |
+ return 0 | |
++ id -un | |
+ [[ dokku != \d\o\k\k\u ]] | |
+ [[ -n '' ]] | |
+ case "$1" in | |
+ implemented=0 | |
+ for script in '$PLUGIN_ENABLED_PATH/*/commands' | |
+ set +e | |
+ /var/lib/dokku/plugins/enabled/00_dokku-standard/commands release earthquakes herokuish '' | |
+ 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/nginx-vhosts/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/certs/functions | |
+++ set -eo pipefail | |
+++ [[ -n 1 ]] | |
+++ set -x | |
+++ source /var/lib/dokku/core-plugins/available/common/functions | |
++++ set -eo pipefail | |
++++ [[ -n 1 ]] | |
++++ set -x | |
++ 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/domains/functions | |
+++ set -eo pipefail | |
+++ [[ -n 1 ]] | |
+++ set -x | |
+++ source /var/lib/dokku/core-plugins/available/common/functions | |
++++ set -eo pipefail | |
++++ [[ -n 1 ]] | |
++++ set -x | |
+ case "$1" in | |
+ APP=earthquakes | |
+ IMAGE_SOURCE_TYPE=herokuish | |
+ IMAGE_TAG= | |
++ get_app_image_name earthquakes | |
++ local APP=earthquakes | |
++ local IMAGE_TAG= | |
+++ get_app_image_repo earthquakes | |
+++ local APP=earthquakes | |
+++ local IMAGE_REPO=dokku/earthquakes | |
+++ [[ -z earthquakes ]] | |
+++ echo dokku/earthquakes | |
++ local IMAGE_REPO=dokku/earthquakes | |
++ [[ -z earthquakes ]] | |
++ [[ -n '' ]] | |
++ IMAGE=dokku/earthquakes:latest | |
++ echo dokku/earthquakes:latest | |
+ IMAGE=dokku/earthquakes:latest | |
+ verify_app_name earthquakes | |
+ local APP=earthquakes | |
+ [[ ! -n earthquakes ]] | |
+ [[ ! -d /home/dokku/earthquakes ]] | |
+ return 0 | |
+ case "$IMAGE_SOURCE_TYPE" in | |
+ plugn trigger pre-release-buildpack earthquakes '' | |
+ source /var/lib/dokku/core-plugins/available/common/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ [[ ! -n '' ]] | |
++ config_export global | |
++ local CONFIG_TYPE=global | |
++ local APP= | |
++ local ENV_FILE=/home/dokku//ENV | |
++ [[ global == \g\l\o\b\a\l ]] | |
++ ENV_FILE=/home/dokku/ENV | |
++ [[ ! -f /home/dokku/ENV ]] | |
++ [[ ! -s /home/dokku/ENV ]] | |
+++ grep -Eo 'export ([a-zA-Z_][a-zA-Z0-9_]*=.*)' /home/dokku/ENV | |
+++ cut '-d ' -f2- | |
++ VARS='CURL_TIMEOUT=600 | |
CURL_CONNECT_TIMEOUT=240' | |
++ echo 'CURL_TIMEOUT=600 | |
CURL_CONNECT_TIMEOUT=240' | |
++ awk '{print "export " $0}' | |
++ return 0 | |
+ [[ -n export CURL_TIMEOUT=600 | |
export CURL_CONNECT_TIMEOUT=240 ]] | |
++ config_export global | |
++ local CONFIG_TYPE=global | |
++ local APP= | |
++ local ENV_FILE=/home/dokku//ENV | |
++ [[ global == \g\l\o\b\a\l ]] | |
++ ENV_FILE=/home/dokku/ENV | |
++ [[ ! -f /home/dokku/ENV ]] | |
++ [[ ! -s /home/dokku/ENV ]] | |
+++ grep -Eo 'export ([a-zA-Z_][a-zA-Z0-9_]*=.*)' /home/dokku/ENV | |
++ docker run -i -a stdin dokku/earthquakes:latest /bin/bash -c 'mkdir -p /app/.profile.d && cat > /app/.profile.d/00-global-env.sh' | |
+++ cut '-d ' -f2- | |
++ VARS='CURL_TIMEOUT=600 | |
CURL_CONNECT_TIMEOUT=240' | |
++ awk '{print "export " $0}' | |
++ echo 'CURL_TIMEOUT=600 | |
CURL_CONNECT_TIMEOUT=240' | |
++ return 0 | |
+ id=dafeab9425c98f29303e067f43d7361ed11a1249617973ce83895a2746cfb6e9 | |
++ docker wait dafeab9425c98f29303e067f43d7361ed11a1249617973ce83895a2746cfb6e9 | |
+ test 0 -eq 0 | |
+ docker commit dafeab9425c98f29303e067f43d7361ed11a1249617973ce83895a2746cfb6e9 dokku/earthquakes:latest | |
++ config_export app earthquakes | |
++ local CONFIG_TYPE=app | |
++ local APP=earthquakes | |
++ local ENV_FILE=/home/dokku/earthquakes/ENV | |
++ [[ app == \g\l\o\b\a\l ]] | |
++ [[ ! -f /home/dokku/earthquakes/ENV ]] | |
++ [[ ! -s /home/dokku/earthquakes/ENV ]] | |
+++ grep -Eo 'export ([a-zA-Z_][a-zA-Z0-9_]*=.*)' /home/dokku/earthquakes/ENV | |
+++ cut '-d ' -f2- | |
++ VARS='CARTODB_API_KEY='\''[removed]'\'' | |
CARTODB_CONSUMER_KEY='\''[removed]'\'' | |
CARTODB_CONSUMER_SECRET='\''[removed]'\'' | |
CARTODB_PASSWORD='\''[removed]'\'' | |
CARTODB_URL='\''earthquakes_cartodb:8080'\'' | |
CARTODB_USER='\''nonni'\'' | |
DOKKU_NGINX_PORT='\''80'\''' | |
++ echo 'CARTODB_API_KEY='\''[removed]'\'' | |
CARTODB_CONSUMER_KEY='\''[removed]'\'' | |
CARTODB_CONSUMER_SECRET='\''[removed]'\'' | |
CARTODB_PASSWORD='\''[removed]'\'' | |
CARTODB_URL='\''earthquakes_cartodb:8080'\'' | |
CARTODB_USER='\''nonni'\'' | |
DOKKU_NGINX_PORT='\''80'\''' | |
++ awk '{print "export " $0}' | |
++ return 0 | |
+ [[ -n export CARTODB_API_KEY='[removed]' | |
export CARTODB_CONSUMER_KEY='[removed]' | |
export CARTODB_CONSUMER_SECRET='[removed]' | |
export CARTODB_PASSWORD='[removed]' | |
export CARTODB_URL='earthquakes_cartodb:8080' | |
export CARTODB_USER='nonni' | |
export DOKKU_NGINX_PORT='80' ]] | |
++ config_export app earthquakes | |
++ local CONFIG_TYPE=app | |
++ local APP=earthquakes | |
++ local ENV_FILE=/home/dokku/earthquakes/ENV | |
++ [[ app == \g\l\o\b\a\l ]] | |
++ [[ ! -f /home/dokku/earthquakes/ENV ]] | |
++ [[ ! -s /home/dokku/earthquakes/ENV ]] | |
++ docker run -i -a stdin dokku/earthquakes:latest /bin/bash -c 'mkdir -p /app/.profile.d && cat > /app/.profile.d/01-app-env.sh' | |
+++ cut '-d ' -f2- | |
+++ grep -Eo 'export ([a-zA-Z_][a-zA-Z0-9_]*=.*)' /home/dokku/earthquakes/ENV | |
++ VARS='CARTODB_API_KEY='\''[removed]'\'' | |
CARTODB_CONSUMER_KEY='\''[removed]'\'' | |
CARTODB_CONSUMER_SECRET='\''[removed]'\'' | |
CARTODB_PASSWORD='\''[removed]'\'' | |
CARTODB_URL='\''earthquakes_cartodb:8080'\'' | |
CARTODB_USER='\''nonni'\'' | |
DOKKU_NGINX_PORT='\''80'\''' | |
++ awk '{print "export " $0}' | |
++ echo 'CARTODB_API_KEY='\''[removed]'\'' | |
CARTODB_CONSUMER_KEY='\''[removed]'\'' | |
CARTODB_CONSUMER_SECRET='\''[removed]'\'' | |
CARTODB_PASSWORD='\''[removed]'\'' | |
CARTODB_URL='\''earthquakes_cartodb:8080'\'' | |
CARTODB_USER='\''nonni'\'' | |
DOKKU_NGINX_PORT='\''80'\''' | |
++ return 0 | |
+ id=4eb4f2c56471ac2fc987b0e60c4d8e956af4593c0bd4ec63c8b0ebfbb7c100c1 | |
++ docker wait 4eb4f2c56471ac2fc987b0e60c4d8e956af4593c0bd4ec63c8b0ebfbb7c100c1 | |
+ test 0 -eq 0 | |
+ docker commit 4eb4f2c56471ac2fc987b0e60c4d8e956af4593c0bd4ec63c8b0ebfbb7c100c1 dokku/earthquakes:latest | |
+ plugn trigger post-release-buildpack earthquakes '' | |
+ source /var/lib/dokku/core-plugins/available/common/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ [[ ! -n '' ]] | |
+ 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/20_events/commands release earthquakes herokuish '' | |
+ 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 release earthquakes herokuish '' | |
+ exit_code=10 | |
+ set -e | |
+ [[ 10 -eq 10 ]] | |
+ continue | |
+ for script in '$PLUGIN_ENABLED_PATH/*/commands' | |
+ set +e | |
+ /var/lib/dokku/plugins/enabled/backup/commands release earthquakes herokuish '' | |
+ 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 release earthquakes herokuish '' | |
+ 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 release earthquakes herokuish '' | |
+ 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 release earthquakes herokuish '' | |
+ exit_code=10 | |
+ set -e | |
+ [[ 10 -eq 10 ]] | |
+ continue | |
+ for script in '$PLUGIN_ENABLED_PATH/*/commands' | |
+ set +e | |
+ /var/lib/dokku/plugins/enabled/dokku-mongo/commands release earthquakes herokuish '' | |
+ PLUGIN_BASE_PATH=/var/lib/dokku/plugins | |
+ [[ -n 1 ]] | |
+ PLUGIN_BASE_PATH=/var/lib/dokku/plugins/enabled | |
+ source /var/lib/dokku/plugins/enabled/common/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
++ dirname /var/lib/dokku/plugins/enabled/dokku-mongo/commands | |
+ source /var/lib/dokku/plugins/enabled/dokku-mongo/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+++ dirname /var/lib/dokku/plugins/enabled/dokku-mongo/commands | |
++ source /var/lib/dokku/plugins/enabled/dokku-mongo/config | |
+++ export MONGO_IMAGE=mongo | |
+++ MONGO_IMAGE=mongo | |
+++ export MONGO_IMAGE_VERSION=3.0.6 | |
+++ MONGO_IMAGE_VERSION=3.0.6 | |
+++ export MONGO_ROOT=/var/lib/dokku/services/mongo | |
+++ MONGO_ROOT=/var/lib/dokku/services/mongo | |
+++ export PLUGIN_COMMAND_PREFIX=mongo | |
+++ PLUGIN_COMMAND_PREFIX=mongo | |
+++ export PLUGIN_DATA_ROOT=/var/lib/dokku/services/mongo | |
+++ PLUGIN_DATA_ROOT=/var/lib/dokku/services/mongo | |
+++ PLUGIN_DATASTORE_PORTS=(27017 27018 27019 28017) | |
+++ export PLUGIN_DATASTORE_PORTS | |
+++ export PLUGIN_DEFAULT_ALIAS=MONGO | |
+++ PLUGIN_DEFAULT_ALIAS=MONGO | |
+++ export PLUGIN_IMAGE=mongo | |
+++ PLUGIN_IMAGE=mongo | |
+++ export PLUGIN_IMAGE_VERSION=3.0.6 | |
+++ PLUGIN_IMAGE_VERSION=3.0.6 | |
+++ export PLUGIN_SCHEME=mongodb | |
+++ PLUGIN_SCHEME=mongodb | |
+++ export PLUGIN_SERVICE=MongoDB | |
+++ PLUGIN_SERVICE=MongoDB | |
++ dirname /var/lib/dokku/plugins/enabled/dokku-mongo/commands | |
+ source /var/lib/dokku/plugins/enabled/dokku-mongo/config | |
++ export MONGO_IMAGE=mongo | |
++ MONGO_IMAGE=mongo | |
++ export MONGO_IMAGE_VERSION=3.0.6 | |
++ MONGO_IMAGE_VERSION=3.0.6 | |
++ export MONGO_ROOT=/var/lib/dokku/services/mongo | |
++ MONGO_ROOT=/var/lib/dokku/services/mongo | |
++ export PLUGIN_COMMAND_PREFIX=mongo | |
++ PLUGIN_COMMAND_PREFIX=mongo | |
++ export PLUGIN_DATA_ROOT=/var/lib/dokku/services/mongo | |
++ PLUGIN_DATA_ROOT=/var/lib/dokku/services/mongo | |
++ PLUGIN_DATASTORE_PORTS=(27017 27018 27019 28017) | |
++ export PLUGIN_DATASTORE_PORTS | |
++ export PLUGIN_DEFAULT_ALIAS=MONGO | |
++ PLUGIN_DEFAULT_ALIAS=MONGO | |
++ export PLUGIN_IMAGE=mongo | |
++ PLUGIN_IMAGE=mongo | |
++ export PLUGIN_IMAGE_VERSION=3.0.6 | |
++ PLUGIN_IMAGE_VERSION=3.0.6 | |
++ export PLUGIN_SCHEME=mongodb | |
++ PLUGIN_SCHEME=mongodb | |
++ export PLUGIN_SERVICE=MongoDB | |
++ PLUGIN_SERVICE=MongoDB | |
+ [[ release == mongo:* ]] | |
+ 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/domains/commands release earthquakes herokuish '' | |
+ 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 release earthquakes herokuish '' | |
+ 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 release earthquakes herokuish '' | |
+ source /var/lib/dokku/core-plugins/available/common/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/nginx-vhosts/commands release earthquakes herokuish '' | |
+ 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 release earthquakes herokuish '' | |
+ 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 release earthquakes herokuish '' | |
+ 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 release earthquakes herokuish '' | |
+ 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 release earthquakes herokuish '' | |
+ 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 release earthquakes herokuish '' | |
+ exit_code=10 | |
+ set -e | |
+ [[ 10 -eq 10 ]] | |
+ continue | |
+ [[ 1 -eq 0 ]] | |
+ dokku_log_info1 'Deploying earthquakes (dokku/earthquakes:latest)...' | |
+ echo '-----> Deploying earthquakes (dokku/earthquakes:latest)...' | |
+ dokku deploy earthquakes '' | |
-----> Deploying earthquakes (dokku/earthquakes:latest)... | |
+ [[ -f /home/dokku/dokkurc ]] | |
+ [[ -d /home/dokku/.dokkurc ]] | |
+ for f in '$DOKKU_ROOT/.dokkurc/*' | |
+ source /home/dokku/.dokkurc/DOKKU_TRACE | |
++ export DOKKU_TRACE=1 | |
++ DOKKU_TRACE=1 | |
+ [[ -n 1 ]] | |
+ set -x | |
+ parse_args deploy earthquakes '' | |
+ for arg in '"$@"' | |
+ case "$arg" in | |
+ for arg in '"$@"' | |
+ case "$arg" in | |
+ for arg in '"$@"' | |
+ case "$arg" in | |
+ return 0 | |
+ args=("$@") | |
+ [[ deploy =~ ^--.* ]] | |
+ has_tty | |
++ /usr/bin/tty | |
+ [[ /dev/pts/0 == \n\o\t\ \a\ \t\t\y ]] | |
+ return 0 | |
++ id -un | |
+ [[ dokku != \d\o\k\k\u ]] | |
+ [[ -n '' ]] | |
+ case "$1" in | |
+ [[ -z earthquakes ]] | |
+ APP=earthquakes | |
+ IMAGE_TAG= | |
++ get_app_image_name earthquakes | |
++ local APP=earthquakes | |
++ local IMAGE_TAG= | |
+++ get_app_image_repo earthquakes | |
+++ local APP=earthquakes | |
+++ local IMAGE_REPO=dokku/earthquakes | |
+++ [[ -z earthquakes ]] | |
+++ echo dokku/earthquakes | |
++ local IMAGE_REPO=dokku/earthquakes | |
++ [[ -z earthquakes ]] | |
++ [[ -n '' ]] | |
++ IMAGE=dokku/earthquakes:latest | |
++ echo dokku/earthquakes:latest | |
+ IMAGE=dokku/earthquakes:latest | |
+ verify_app_name earthquakes | |
+ local APP=earthquakes | |
+ [[ ! -n earthquakes ]] | |
+ [[ ! -d /home/dokku/earthquakes ]] | |
+ return 0 | |
+ plugn trigger pre-deploy earthquakes | |
+ 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/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 | |
+ APP=earthquakes | |
+ generate_scale_file earthquakes | |
+ local APP=earthquakes | |
+ local IMAGE_TAG= | |
++ get_app_image_name earthquakes | |
++ local APP=earthquakes | |
++ local IMAGE_TAG= | |
+++ get_app_image_repo earthquakes | |
+++ local APP=earthquakes | |
+++ local IMAGE_REPO=dokku/earthquakes | |
+++ [[ -z earthquakes ]] | |
+++ echo dokku/earthquakes | |
++ local IMAGE_REPO=dokku/earthquakes | |
++ [[ -z earthquakes ]] | |
++ [[ -n '' ]] | |
++ IMAGE=dokku/earthquakes:latest | |
++ echo dokku/earthquakes:latest | |
+ local IMAGE=dokku/earthquakes:latest | |
+ local DOKKU_SCALE_FILE=/home/dokku/earthquakes/DOKKU_SCALE | |
+ verify_app_name earthquakes | |
+ local APP=earthquakes | |
+ [[ ! -n earthquakes ]] | |
+ [[ ! -d /home/dokku/earthquakes ]] | |
+ return 0 | |
+ copy_from_image dokku/earthquakes:latest /app/DOKKU_SCALE /home/dokku/earthquakes | |
+ [[ ! -f /home/dokku/earthquakes/DOKKU_SCALE ]] | |
+ dokku_log_info1_quiet 'DOKKU_SCALE file found' | |
+ [[ -z '' ]] | |
+ echo '-----> DOKKU_SCALE file found' | |
+ print_dokku_scale_file earthquakes | |
-----> DOKKU_SCALE file found | |
+ local APP=earthquakes | |
+ local DOKKU_SCALE_FILE=/home/dokku/earthquakes/DOKKU_SCALE | |
+ read line | |
+ dokku_log_info2_quiet web=1 | |
+ [[ -z '' ]] | |
+ echo '=====> web=1' | |
+ read line | |
=====> web=1 | |
+ [[ -n '' ]] | |
+ is_image_herokuish_based dokku/earthquakes:latest | |
+ [[ ! -f /home/ubuntu/.circlerc ]] | |
+ local DOCKER_ARGS=--rm | |
+ docker run --entrypoint=/bin/sh --rm dokku/earthquakes:latest -c 'test -f /exec' | |
+ DOKKU_HEROKUISH=true | |
+ DOKKU_SCALE_FILE=/home/dokku/earthquakes/DOKKU_SCALE | |
++ get_app_container_ids earthquakes | |
++ local APP=earthquakes | |
++ local CONTAINER_TYPE= | |
++ verify_app_name earthquakes | |
++ local APP=earthquakes | |
++ [[ ! -n earthquakes ]] | |
++ [[ ! -d /home/dokku/earthquakes ]] | |
++ return 0 | |
++ [[ -f /home/dokku/earthquakes/CONTAINER ]] | |
++ [[ -n '' ]] | |
++ CONTAINER_PATTERN='/home/dokku/earthquakes/CONTAINER.*' | |
++ shopt -s nullglob | |
++ for DOKKU_CID_FILE in '$CONTAINER_PATTERN' | |
++ DOKKU_CIDS+=' ' | |
++ DOKKU_CIDS+=86d9948206531dec94f905db4239a51e57426ac1e3f7fd261830d9ab289e3e94 | |
++ DOKKU_CIDS+=' ' | |
++ shopt -u nullglob | |
++ echo 86d9948206531dec94f905db4239a51e57426ac1e3f7fd261830d9ab289e3e94 | |
+ oldids=86d9948206531dec94f905db4239a51e57426ac1e3f7fd261830d9ab289e3e94 | |
++ dokku config:get earthquakes DOKKU_RESTART_LIMIT | |
+ [[ -f /home/dokku/dokkurc ]] | |
+ [[ -d /home/dokku/.dokkurc ]] | |
+ for f in '$DOKKU_ROOT/.dokkurc/*' | |
+ source /home/dokku/.dokkurc/DOKKU_TRACE | |
++ export DOKKU_TRACE=1 | |
++ DOKKU_TRACE=1 | |
+ [[ -n 1 ]] | |
+ set -x | |
+ parse_args config:get earthquakes DOKKU_RESTART_LIMIT | |
+ for arg in '"$@"' | |
+ case "$arg" in | |
+ for arg in '"$@"' | |
+ case "$arg" in | |
+ for arg in '"$@"' | |
+ case "$arg" in | |
+ return 0 | |
+ args=("$@") | |
+ [[ config:get =~ ^--.* ]] | |
+ has_tty | |
++ /usr/bin/tty | |
+ [[ /dev/pts/0 == \n\o\t\ \a\ \t\t\y ]] | |
+ return 0 | |
++ id -un | |
+ [[ dokku != \d\o\k\k\u ]] | |
+ [[ -n '' ]] | |
+ case "$1" in | |
+ implemented=0 | |
+ for script in '$PLUGIN_ENABLED_PATH/*/commands' | |
+ set +e | |
+ /var/lib/dokku/plugins/enabled/00_dokku-standard/commands config:get earthquakes DOKKU_RESTART_LIMIT | |
+ 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 config:get earthquakes DOKKU_RESTART_LIMIT | |
+ 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 config:get earthquakes DOKKU_RESTART_LIMIT | |
+ exit_code=10 | |
+ set -e | |
+ [[ 10 -eq 10 ]] | |
+ continue | |
+ for script in '$PLUGIN_ENABLED_PATH/*/commands' | |
+ set +e | |
+ /var/lib/dokku/plugins/enabled/backup/commands config:get earthquakes DOKKU_RESTART_LIMIT | |
+ 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 config:get earthquakes DOKKU_RESTART_LIMIT | |
+ 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 config:get earthquakes DOKKU_RESTART_LIMIT | |
+ source /var/lib/dokku/core-plugins/available/common/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ source /var/lib/dokku/plugins/available/config/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
++ source /var/lib/dokku/core-plugins/available/common/functions | |
+++ set -eo pipefail | |
+++ [[ -n 1 ]] | |
+++ set -x | |
+ case "$1" in | |
+ config_get config:get earthquakes DOKKU_RESTART_LIMIT | |
+ [[ config:get == \c\o\n\f\i\g\:\g\e\t ]] | |
+ config_parse_args config:get earthquakes DOKKU_RESTART_LIMIT | |
+ case "$2" in | |
+ APP=earthquakes | |
+ ENV_FILE=/home/dokku/earthquakes/ENV | |
+ DOKKU_CONFIG_TYPE=app | |
+ DOKKU_CONFIG_RESTART=true | |
+ [[ app = \a\p\p ]] | |
+ [[ -z earthquakes ]] | |
+ verify_app_name earthquakes | |
+ local APP=earthquakes | |
+ [[ ! -n earthquakes ]] | |
+ [[ ! -d /home/dokku/earthquakes ]] | |
+ return 0 | |
+ export APP ENV_FILE DOKKU_CONFIG_TYPE DOKKU_CONFIG_RESTART | |
+ [[ -z DOKKU_RESTART_LIMIT ]] | |
+ config_create /home/dokku/earthquakes/ENV | |
+ local ENV_FILE=/home/dokku/earthquakes/ENV | |
+ [[ -f /home/dokku/earthquakes/ENV ]] | |
+ [[ ! -s /home/dokku/earthquakes/ENV ]] | |
+ KEY=DOKKU_RESTART_LIMIT | |
+ grep -Eo 'export ([a-zA-Z_][a-zA-Z0-9_]*=.*)' /home/dokku/earthquakes/ENV | |
+ cut -d= -f2- | |
+ sed -e 's/^'\''//' -e 's/'\''$//' | |
+ grep '^export DOKKU_RESTART_LIMIT=' | |
+ exit_code=1 | |
+ set -e | |
+ [[ 1 -eq 10 ]] | |
+ implemented=1 | |
+ [[ 1 -ne 0 ]] | |
+ exit 1 | |
++ echo 10 | |
+ DOKKU_RESTART_LIMIT=10 | |
+ DOKKU_RESTART_LIMIT=10 | |
++ dokku config:get earthquakes DOKKU_SKIP_ALL_CHECKS | |
+ [[ -f /home/dokku/dokkurc ]] | |
+ [[ -d /home/dokku/.dokkurc ]] | |
+ for f in '$DOKKU_ROOT/.dokkurc/*' | |
+ source /home/dokku/.dokkurc/DOKKU_TRACE | |
++ export DOKKU_TRACE=1 | |
++ DOKKU_TRACE=1 | |
+ [[ -n 1 ]] | |
+ set -x | |
+ parse_args config:get earthquakes DOKKU_SKIP_ALL_CHECKS | |
+ for arg in '"$@"' | |
+ case "$arg" in | |
+ for arg in '"$@"' | |
+ case "$arg" in | |
+ for arg in '"$@"' | |
+ case "$arg" in | |
+ return 0 | |
+ args=("$@") | |
+ [[ config:get =~ ^--.* ]] | |
+ has_tty | |
++ /usr/bin/tty | |
+ [[ /dev/pts/0 == \n\o\t\ \a\ \t\t\y ]] | |
+ return 0 | |
++ id -un | |
+ [[ dokku != \d\o\k\k\u ]] | |
+ [[ -n '' ]] | |
+ case "$1" in | |
+ implemented=0 | |
+ for script in '$PLUGIN_ENABLED_PATH/*/commands' | |
+ set +e | |
+ /var/lib/dokku/plugins/enabled/00_dokku-standard/commands config:get earthquakes DOKKU_SKIP_ALL_CHECKS | |
+ 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 config:get earthquakes DOKKU_SKIP_ALL_CHECKS | |
+ 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 config:get earthquakes DOKKU_SKIP_ALL_CHECKS | |
+ exit_code=10 | |
+ set -e | |
+ [[ 10 -eq 10 ]] | |
+ continue | |
+ for script in '$PLUGIN_ENABLED_PATH/*/commands' | |
+ set +e | |
+ /var/lib/dokku/plugins/enabled/backup/commands config:get earthquakes DOKKU_SKIP_ALL_CHECKS | |
+ 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 config:get earthquakes DOKKU_SKIP_ALL_CHECKS | |
+ 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 config:get earthquakes DOKKU_SKIP_ALL_CHECKS | |
+ source /var/lib/dokku/core-plugins/available/common/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ source /var/lib/dokku/plugins/available/config/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
++ source /var/lib/dokku/core-plugins/available/common/functions | |
+++ set -eo pipefail | |
+++ [[ -n 1 ]] | |
+++ set -x | |
+ case "$1" in | |
+ config_get config:get earthquakes DOKKU_SKIP_ALL_CHECKS | |
+ [[ config:get == \c\o\n\f\i\g\:\g\e\t ]] | |
+ config_parse_args config:get earthquakes DOKKU_SKIP_ALL_CHECKS | |
+ case "$2" in | |
+ APP=earthquakes | |
+ ENV_FILE=/home/dokku/earthquakes/ENV | |
+ DOKKU_CONFIG_TYPE=app | |
+ DOKKU_CONFIG_RESTART=true | |
+ [[ app = \a\p\p ]] | |
+ [[ -z earthquakes ]] | |
+ verify_app_name earthquakes | |
+ local APP=earthquakes | |
+ [[ ! -n earthquakes ]] | |
+ [[ ! -d /home/dokku/earthquakes ]] | |
+ return 0 | |
+ export APP ENV_FILE DOKKU_CONFIG_TYPE DOKKU_CONFIG_RESTART | |
+ [[ -z DOKKU_SKIP_ALL_CHECKS ]] | |
+ config_create /home/dokku/earthquakes/ENV | |
+ local ENV_FILE=/home/dokku/earthquakes/ENV | |
+ [[ -f /home/dokku/earthquakes/ENV ]] | |
+ [[ ! -s /home/dokku/earthquakes/ENV ]] | |
+ KEY=DOKKU_SKIP_ALL_CHECKS | |
+ grep -Eo 'export ([a-zA-Z_][a-zA-Z0-9_]*=.*)' /home/dokku/earthquakes/ENV | |
+ cut -d= -f2- | |
+ sed -e 's/^'\''//' -e 's/'\''$//' | |
+ grep '^export DOKKU_SKIP_ALL_CHECKS=' | |
+ exit_code=1 | |
+ set -e | |
+ [[ 1 -eq 10 ]] | |
+ implemented=1 | |
+ [[ 1 -ne 0 ]] | |
+ exit 1 | |
++ true | |
+ DOKKU_APP_SKIP_ALL_CHECKS= | |
++ dokku config:get earthquakes DOKKU_SKIP_DEFAULT_CHECKS | |
+ [[ -f /home/dokku/dokkurc ]] | |
+ [[ -d /home/dokku/.dokkurc ]] | |
+ for f in '$DOKKU_ROOT/.dokkurc/*' | |
+ source /home/dokku/.dokkurc/DOKKU_TRACE | |
++ export DOKKU_TRACE=1 | |
++ DOKKU_TRACE=1 | |
+ [[ -n 1 ]] | |
+ set -x | |
+ parse_args config:get earthquakes DOKKU_SKIP_DEFAULT_CHECKS | |
+ for arg in '"$@"' | |
+ case "$arg" in | |
+ for arg in '"$@"' | |
+ case "$arg" in | |
+ for arg in '"$@"' | |
+ case "$arg" in | |
+ return 0 | |
+ args=("$@") | |
+ [[ config:get =~ ^--.* ]] | |
+ has_tty | |
++ /usr/bin/tty | |
+ [[ /dev/pts/0 == \n\o\t\ \a\ \t\t\y ]] | |
+ return 0 | |
++ id -un | |
+ [[ dokku != \d\o\k\k\u ]] | |
+ [[ -n '' ]] | |
+ case "$1" in | |
+ implemented=0 | |
+ for script in '$PLUGIN_ENABLED_PATH/*/commands' | |
+ set +e | |
+ /var/lib/dokku/plugins/enabled/00_dokku-standard/commands config:get earthquakes DOKKU_SKIP_DEFAULT_CHECKS | |
+ 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 config:get earthquakes DOKKU_SKIP_DEFAULT_CHECKS | |
+ 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 config:get earthquakes DOKKU_SKIP_DEFAULT_CHECKS | |
+ exit_code=10 | |
+ set -e | |
+ [[ 10 -eq 10 ]] | |
+ continue | |
+ for script in '$PLUGIN_ENABLED_PATH/*/commands' | |
+ set +e | |
+ /var/lib/dokku/plugins/enabled/backup/commands config:get earthquakes DOKKU_SKIP_DEFAULT_CHECKS | |
+ 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 config:get earthquakes DOKKU_SKIP_DEFAULT_CHECKS | |
+ 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 config:get earthquakes DOKKU_SKIP_DEFAULT_CHECKS | |
+ source /var/lib/dokku/core-plugins/available/common/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ source /var/lib/dokku/plugins/available/config/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
++ source /var/lib/dokku/core-plugins/available/common/functions | |
+++ set -eo pipefail | |
+++ [[ -n 1 ]] | |
+++ set -x | |
+ case "$1" in | |
+ config_get config:get earthquakes DOKKU_SKIP_DEFAULT_CHECKS | |
+ [[ config:get == \c\o\n\f\i\g\:\g\e\t ]] | |
+ config_parse_args config:get earthquakes DOKKU_SKIP_DEFAULT_CHECKS | |
+ case "$2" in | |
+ APP=earthquakes | |
+ ENV_FILE=/home/dokku/earthquakes/ENV | |
+ DOKKU_CONFIG_TYPE=app | |
+ DOKKU_CONFIG_RESTART=true | |
+ [[ app = \a\p\p ]] | |
+ [[ -z earthquakes ]] | |
+ verify_app_name earthquakes | |
+ local APP=earthquakes | |
+ [[ ! -n earthquakes ]] | |
+ [[ ! -d /home/dokku/earthquakes ]] | |
+ return 0 | |
+ export APP ENV_FILE DOKKU_CONFIG_TYPE DOKKU_CONFIG_RESTART | |
+ [[ -z DOKKU_SKIP_DEFAULT_CHECKS ]] | |
+ config_create /home/dokku/earthquakes/ENV | |
+ local ENV_FILE=/home/dokku/earthquakes/ENV | |
+ [[ -f /home/dokku/earthquakes/ENV ]] | |
+ [[ ! -s /home/dokku/earthquakes/ENV ]] | |
+ KEY=DOKKU_SKIP_DEFAULT_CHECKS | |
+ grep -Eo 'export ([a-zA-Z_][a-zA-Z0-9_]*=.*)' /home/dokku/earthquakes/ENV | |
+ sed -e 's/^'\''//' -e 's/'\''$//' | |
+ grep '^export DOKKU_SKIP_DEFAULT_CHECKS=' | |
+ cut -d= -f2- | |
+ exit_code=1 | |
+ set -e | |
+ [[ 1 -eq 10 ]] | |
+ implemented=1 | |
+ [[ 1 -ne 0 ]] | |
+ exit 1 | |
++ true | |
+ DOKKU_APP_SKIP_DEFAULT_CHECKS= | |
++ dokku config:get --global DOKKU_SKIP_ALL_CHECKS | |
+ [[ -f /home/dokku/dokkurc ]] | |
+ [[ -d /home/dokku/.dokkurc ]] | |
+ for f in '$DOKKU_ROOT/.dokkurc/*' | |
+ source /home/dokku/.dokkurc/DOKKU_TRACE | |
++ export DOKKU_TRACE=1 | |
++ DOKKU_TRACE=1 | |
+ [[ -n 1 ]] | |
+ set -x | |
+ parse_args config:get --global DOKKU_SKIP_ALL_CHECKS | |
+ for arg in '"$@"' | |
+ case "$arg" in | |
+ for arg in '"$@"' | |
+ case "$arg" in | |
+ for arg in '"$@"' | |
+ case "$arg" in | |
+ return 0 | |
+ args=("$@") | |
+ [[ config:get =~ ^--.* ]] | |
+ has_tty | |
++ /usr/bin/tty | |
+ [[ /dev/pts/0 == \n\o\t\ \a\ \t\t\y ]] | |
+ return 0 | |
++ id -un | |
+ [[ dokku != \d\o\k\k\u ]] | |
+ [[ -n '' ]] | |
+ case "$1" in | |
+ implemented=0 | |
+ for script in '$PLUGIN_ENABLED_PATH/*/commands' | |
+ set +e | |
+ /var/lib/dokku/plugins/enabled/00_dokku-standard/commands config:get --global DOKKU_SKIP_ALL_CHECKS | |
+ 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 config:get --global DOKKU_SKIP_ALL_CHECKS | |
+ 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 config:get --global DOKKU_SKIP_ALL_CHECKS | |
+ exit_code=10 | |
+ set -e | |
+ [[ 10 -eq 10 ]] | |
+ continue | |
+ for script in '$PLUGIN_ENABLED_PATH/*/commands' | |
+ set +e | |
+ /var/lib/dokku/plugins/enabled/backup/commands config:get --global DOKKU_SKIP_ALL_CHECKS | |
+ 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 config:get --global DOKKU_SKIP_ALL_CHECKS | |
+ 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 config:get --global DOKKU_SKIP_ALL_CHECKS | |
+ source /var/lib/dokku/core-plugins/available/common/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ source /var/lib/dokku/plugins/available/config/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
++ source /var/lib/dokku/core-plugins/available/common/functions | |
+++ set -eo pipefail | |
+++ [[ -n 1 ]] | |
+++ set -x | |
+ case "$1" in | |
+ config_get config:get --global DOKKU_SKIP_ALL_CHECKS | |
+ [[ config:get == \c\o\n\f\i\g\:\g\e\t ]] | |
+ config_parse_args config:get --global DOKKU_SKIP_ALL_CHECKS | |
+ case "$2" in | |
+ ENV_FILE=/home/dokku/ENV | |
+ DOKKU_CONFIG_TYPE=global | |
+ DOKKU_CONFIG_RESTART=false | |
+ APP=--global | |
+ ENV_FILE=/home/dokku/ENV | |
+ DOKKU_CONFIG_TYPE=global | |
+ DOKKU_CONFIG_RESTART=false | |
+ [[ global = \a\p\p ]] | |
+ export APP ENV_FILE DOKKU_CONFIG_TYPE DOKKU_CONFIG_RESTART | |
+ [[ -z DOKKU_SKIP_ALL_CHECKS ]] | |
+ config_create /home/dokku/ENV | |
+ local ENV_FILE=/home/dokku/ENV | |
+ [[ -f /home/dokku/ENV ]] | |
+ [[ ! -s /home/dokku/ENV ]] | |
+ KEY=DOKKU_SKIP_ALL_CHECKS | |
+ grep -Eo 'export ([a-zA-Z_][a-zA-Z0-9_]*=.*)' /home/dokku/ENV | |
+ grep '^export DOKKU_SKIP_ALL_CHECKS=' | |
+ sed -e 's/^'\''//' -e 's/'\''$//' | |
+ cut -d= -f2- | |
+ exit_code=1 | |
+ set -e | |
+ [[ 1 -eq 10 ]] | |
+ implemented=1 | |
+ [[ 1 -ne 0 ]] | |
+ exit 1 | |
++ true | |
+ DOKKU_GLOBAL_SKIP_ALL_CHECKS= | |
++ dokku config:get --global DOKKU_SKIP_DEFAULT_CHECKS | |
+ [[ -f /home/dokku/dokkurc ]] | |
+ [[ -d /home/dokku/.dokkurc ]] | |
+ for f in '$DOKKU_ROOT/.dokkurc/*' | |
+ source /home/dokku/.dokkurc/DOKKU_TRACE | |
++ export DOKKU_TRACE=1 | |
++ DOKKU_TRACE=1 | |
+ [[ -n 1 ]] | |
+ set -x | |
+ parse_args config:get --global DOKKU_SKIP_DEFAULT_CHECKS | |
+ for arg in '"$@"' | |
+ case "$arg" in | |
+ for arg in '"$@"' | |
+ case "$arg" in | |
+ for arg in '"$@"' | |
+ case "$arg" in | |
+ return 0 | |
+ args=("$@") | |
+ [[ config:get =~ ^--.* ]] | |
+ has_tty | |
++ /usr/bin/tty | |
+ [[ /dev/pts/0 == \n\o\t\ \a\ \t\t\y ]] | |
+ return 0 | |
++ id -un | |
+ [[ dokku != \d\o\k\k\u ]] | |
+ [[ -n '' ]] | |
+ case "$1" in | |
+ implemented=0 | |
+ for script in '$PLUGIN_ENABLED_PATH/*/commands' | |
+ set +e | |
+ /var/lib/dokku/plugins/enabled/00_dokku-standard/commands config:get --global DOKKU_SKIP_DEFAULT_CHECKS | |
+ 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 config:get --global DOKKU_SKIP_DEFAULT_CHECKS | |
+ 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 config:get --global DOKKU_SKIP_DEFAULT_CHECKS | |
+ exit_code=10 | |
+ set -e | |
+ [[ 10 -eq 10 ]] | |
+ continue | |
+ for script in '$PLUGIN_ENABLED_PATH/*/commands' | |
+ set +e | |
+ /var/lib/dokku/plugins/enabled/backup/commands config:get --global DOKKU_SKIP_DEFAULT_CHECKS | |
+ 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 config:get --global DOKKU_SKIP_DEFAULT_CHECKS | |
+ 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 config:get --global DOKKU_SKIP_DEFAULT_CHECKS | |
+ source /var/lib/dokku/core-plugins/available/common/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ source /var/lib/dokku/plugins/available/config/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
++ source /var/lib/dokku/core-plugins/available/common/functions | |
+++ set -eo pipefail | |
+++ [[ -n 1 ]] | |
+++ set -x | |
+ case "$1" in | |
+ config_get config:get --global DOKKU_SKIP_DEFAULT_CHECKS | |
+ [[ config:get == \c\o\n\f\i\g\:\g\e\t ]] | |
+ config_parse_args config:get --global DOKKU_SKIP_DEFAULT_CHECKS | |
+ case "$2" in | |
+ ENV_FILE=/home/dokku/ENV | |
+ DOKKU_CONFIG_TYPE=global | |
+ DOKKU_CONFIG_RESTART=false | |
+ APP=--global | |
+ ENV_FILE=/home/dokku/ENV | |
+ DOKKU_CONFIG_TYPE=global | |
+ DOKKU_CONFIG_RESTART=false | |
+ [[ global = \a\p\p ]] | |
+ export APP ENV_FILE DOKKU_CONFIG_TYPE DOKKU_CONFIG_RESTART | |
+ [[ -z DOKKU_SKIP_DEFAULT_CHECKS ]] | |
+ config_create /home/dokku/ENV |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment