Created
August 22, 2016 14:44
-
-
Save mahnunchik/9d3a572d395d24d699e08b68f7cd71a9 to your computer and use it in GitHub Desktop.
dokku --trace apps
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# dokku --trace apps | |
+ case "$(lsb_release -si)" in | |
++ lsb_release -si | |
+ export DOKKU_DISTRO=ubuntu | |
+ DOKKU_DISTRO=ubuntu | |
+ export DOKKU_IMAGE=gliderlabs/herokuish | |
+ DOKKU_IMAGE=gliderlabs/herokuish | |
+ export DOKKU_LIB_ROOT=/var/lib/dokku | |
+ DOKKU_LIB_ROOT=/var/lib/dokku | |
+ export PLUGIN_PATH=/var/lib/dokku/plugins | |
+ PLUGIN_PATH=/var/lib/dokku/plugins | |
+ export PLUGIN_AVAILABLE_PATH=/var/lib/dokku/plugins/available | |
+ PLUGIN_AVAILABLE_PATH=/var/lib/dokku/plugins/available | |
+ export PLUGIN_ENABLED_PATH=/var/lib/dokku/plugins/enabled | |
+ PLUGIN_ENABLED_PATH=/var/lib/dokku/plugins/enabled | |
+ export PLUGIN_CORE_PATH=/var/lib/dokku/core-plugins | |
+ PLUGIN_CORE_PATH=/var/lib/dokku/core-plugins | |
+ export PLUGIN_CORE_AVAILABLE_PATH=/var/lib/dokku/core-plugins/available | |
+ PLUGIN_CORE_AVAILABLE_PATH=/var/lib/dokku/core-plugins/available | |
+ export PLUGIN_CORE_ENABLED_PATH=/var/lib/dokku/core-plugins/enabled | |
+ PLUGIN_CORE_ENABLED_PATH=/var/lib/dokku/core-plugins/enabled | |
+ export DOKKU_API_VERSION=1 | |
+ DOKKU_API_VERSION=1 | |
+ export DOKKU_NOT_IMPLEMENTED_EXIT=10 | |
+ DOKKU_NOT_IMPLEMENTED_EXIT=10 | |
+ export DOKKU_VALID_EXIT=0 | |
+ DOKKU_VALID_EXIT=0 | |
+ export DOKKU_LOGS_DIR=/var/log/dokku | |
+ DOKKU_LOGS_DIR=/var/log/dokku | |
+ export DOKKU_EVENTS_LOGFILE=/var/log/dokku/events.log | |
+ DOKKU_EVENTS_LOGFILE=/var/log/dokku/events.log | |
+ export DOKKU_CONTAINER_LABEL=dokku | |
+ DOKKU_CONTAINER_LABEL=dokku | |
+ export 'DOKKU_GLOBAL_RUN_ARGS=--label=dokku --env=USER=herokuishuser' | |
+ DOKKU_GLOBAL_RUN_ARGS='--label=dokku --env=USER=herokuishuser' | |
+ source /var/lib/dokku/core-plugins/available/common/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ parse_args apps | |
+ declare 'desc=top-level cli arg parser' | |
+ local next_index=1 | |
+ local skip=false | |
+ args=("$@") | |
+ local args | |
+ for arg in '"$@"' | |
+ false | |
+ case "$arg" in | |
+ local next_index=2 | |
+ return 0 | |
+ args=("$@") | |
+ [[ apps =~ ^--.* ]] | |
+ has_tty | |
+ declare 'desc=return 0 if we have a tty' | |
++ /usr/bin/tty | |
+ [[ /dev/pts/0 == \n\o\t\ \a\ \t\t\y ]] | |
+ return 0 | |
++ id -un | |
+ [[ dokku != \d\o\k\k\u ]] | |
++ id -un | |
+ [[ dokku != \r\o\o\t ]] | |
+ [[ apps =~ ^plugin:.* ]] | |
+ [[ -n '' ]] | |
+ dokku_auth apps | |
+ declare 'desc=calls user-auth plugin trigger' | |
+ export SSH_USER=root | |
+ SSH_USER=root | |
+ export SSH_NAME=default | |
+ SSH_NAME=default | |
+ plugn trigger user-auth root default apps | |
+ 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 | |
+ [[ apps == ssh-keys* ]] | |
+ return 0 | |
+ case "$1" in | |
+ execute_dokku_cmd apps | |
+ declare 'desc=executes dokku sub-commands' | |
+ local PLUGIN_NAME=apps | |
+ local PLUGIN_CMD=apps | |
+ local implemented=0 | |
+ local script | |
+ argv=("$@") | |
+ local argv | |
+ case "$PLUGIN_NAME" in | |
++ readlink -f /var/lib/dokku/plugins/enabled/apps | |
+ [[ /var/lib/dokku/core-plugins/available/apps == *core-plugins* ]] | |
+ [[ apps == \a\p\p\s ]] | |
+ shift 1 | |
+ [[ ! -z '' ]] | |
+ set -- apps | |
+ [[ -x /var/lib/dokku/plugins/enabled/apps/subcommands/default ]] | |
+ /var/lib/dokku/plugins/enabled/apps/subcommands/default apps | |
+ source /var/lib/dokku/core-plugins/available/common/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ apps_main_cmd apps | |
+ declare 'desc=lists all apps' | |
+ local cmd=apps | |
+ local app | |
+ dokku_log_info2_quiet 'My Apps' | |
+ declare 'desc=log info2 formatter (with quiet option)' | |
+ [[ -z '' ]] | |
+ echo '=====> My Apps' | |
=====> My Apps | |
++ dokku_apps | |
++ declare 'desc=prints list of all local apps' | |
+++ sort | |
+++ find /home/dokku -follow -maxdepth 1 -mindepth 1 -type d '!' -name tls '!' -name '.*' -printf '%f\n' | |
find: Failed to restore initial working directory: /root: Permission denied | |
++ local 'INSTALLED_APPS=avia.ml | |
digger | |
tg' | |
++ [[ -n avia.ml | |
digger | |
tg ]] | |
++ echo 'avia.ml | |
digger | |
tg' | |
+ for app in '$(dokku_apps)' | |
+ echo avia.ml | |
avia.ml | |
+ for app in '$(dokku_apps)' | |
+ echo digger | |
digger | |
+ for app in '$(dokku_apps)' | |
+ echo tg | |
tg | |
+ implemented=1 | |
+ [[ 1 -eq 0 ]] | |
+ [[ 1 -eq 0 ]] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment