Created
June 18, 2016 16:04
-
-
Save mjaroszek/5f133a8da438688169b7f1521049569a to your computer and use it in GitHub Desktop.
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
root@dev:~# which dokku | |
/usr/bin/dokku | |
root@dev:~# dokku --trace version | |
-bash: /usr/local/bin/dokku: No such file or directory | |
root@dev:~# /usr/bin/dokku --trace version | |
+ 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 | |
+ DOKKU_GLOBAL_RUN_ARGS=--label=dokku | |
+ source /var/lib/dokku/core-plugins/available/common/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ parse_args version | |
+ 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=("$@") | |
+ [[ version =~ ^--.* ]] | |
+ 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 ]] | |
+ [[ version =~ ^plugin:.* ]] | |
+ [[ -n '' ]] | |
+ dokku_auth version | |
+ 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 version | |
+ source /var/lib/dokku/core-plugins/available/common/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ [[ ! -n '' ]] | |
+ return 0 | |
+ case "$1" in | |
+ execute_dokku_cmd version | |
+ declare 'desc=executes dokku sub-commands' | |
+ local PLUGIN_NAME=version | |
+ local PLUGIN_CMD=version | |
+ local implemented=0 | |
+ local script | |
+ argv=("$@") | |
+ local argv | |
+ case "$PLUGIN_NAME" in | |
+ local PLUGIN_NAME=00_dokku-standard | |
++ readlink -f /var/lib/dokku/plugins/enabled/00_dokku-standard | |
+ [[ /var/lib/dokku/core-plugins/available/00_dokku-standard == *core-plugins* ]] | |
+ [[ version == \v\e\r\s\i\o\n ]] | |
+ shift 1 | |
+ [[ ! -z '' ]] | |
+ set -- version | |
+ [[ -x /var/lib/dokku/plugins/enabled/00_dokku-standard/subcommands/default ]] | |
+ [[ -x /var/lib/dokku/plugins/enabled/00_dokku-standard/subcommands/version ]] | |
+ /var/lib/dokku/plugins/enabled/00_dokku-standard/subcommands/version version | |
+ source /var/lib/dokku/core-plugins/available/common/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+ dokku_version_cmd version | |
+ declare 'desc=prints dokku version' | |
+ local cmd=version | |
+ cat /home/dokku/VERSION | |
0.6.0 | |
+ 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