Skip to content

Instantly share code, notes, and snippets.

@michaelshobbs
Created February 12, 2016 23:45
Show Gist options
  • Save michaelshobbs/c3c4ae629fedbe030e51 to your computer and use it in GitHub Desktop.
Save michaelshobbs/c3c4ae629fedbe030e51 to your computer and use it in GitHub Desktop.
dokku_enter.log
+ [[ -f /home/dokku/dokkurc ]]
+ [[ -d /home/dokku/.dokkurc ]]
+ [[ -n 1 ]]
+ set -x
+ parse_args enter node-js-app web ls
+ 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=("$@")
+ [[ enter =~ ^--.* ]]
+ has_tty
++ /usr/bin/tty
++ true
+ [[ not a tty == \n\o\t\ \a\ \t\t\y ]]
+ return 1
+ DOKKU_QUIET_OUTPUT=1
++ id -un
+ [[ root != \d\o\k\k\u ]]
+ [[ enter != plugin:*install* ]]
+ [[ enter != \p\l\u\g\i\n\:\u\p\d\a\t\e ]]
+ [[ enter != nginx:*-logs ]]
+ sudo -u dokku -E -H /usr/local/bin/dokku enter node-js-app web ls
+ [[ -f /home/dokku/dokkurc ]]
+ [[ -d /home/dokku/.dokkurc ]]
+ [[ -n 1 ]]
+ set -x
+ parse_args enter node-js-app web ls
+ 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=("$@")
+ [[ enter =~ ^--.* ]]
+ has_tty
++ /usr/bin/tty
++ true
+ [[ not a tty == \n\o\t\ \a\ \t\t\y ]]
+ return 1
+ DOKKU_QUIET_OUTPUT=1
++ id -un
+ [[ dokku != \d\o\k\k\u ]]
+ [[ -n '' ]]
+ case "$1" in
+ implemented=0
+ for script in '$PLUGIN_ENABLED_PATH/*/commands'
+ set +e
+ /var/lib/dokku/plugins/enabled/00_dokku-standard/commands enter node-js-app web ls
+ 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 enter node-js-app web ls
+ 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 enter node-js-app web ls
+ 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 enter node-js-app web ls
+ 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 enter node-js-app web ls
+ 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 enter node-js-app web ls
+ 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 enter node-js-app web ls
+ 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 enter node-js-app web ls
+ 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 enter node-js-app web ls
+ source /var/lib/dokku/core-plugins/available/common/functions
++ set -eo pipefail
++ [[ -n 1 ]]
++ set -x
+ case "$1" in
+ APP=node-js-app
+ CONTAINER_TYPE=web
++ get_running_image_tag node-js-app
++ local APP=node-js-app
++ [[ ! -n node-js-app ]]
++ verify_app_name node-js-app
++ local APP=node-js-app
++ [[ ! -n node-js-app ]]
++ [[ ! -d /home/dokku/node-js-app ]]
++ return 0
++ CIDS=($(get_app_container_ids $APP))
+++ get_app_container_ids node-js-app
+++ local APP=node-js-app
+++ local CONTAINER_TYPE=
+++ verify_app_name node-js-app
+++ local APP=node-js-app
+++ [[ ! -n node-js-app ]]
+++ [[ ! -d /home/dokku/node-js-app ]]
+++ return 0
+++ [[ -f /home/dokku/node-js-app/CONTAINER ]]
+++ [[ -n '' ]]
+++ CONTAINER_PATTERN='/home/dokku/node-js-app/CONTAINER.*'
+++ shopt -s nullglob
+++ for DOKKU_CID_FILE in '$CONTAINER_PATTERN'
+++ DOKKU_CIDS+=' '
+++ DOKKU_CIDS+=81dc68346d7a3a318ee0f19887d4f87e25b34b683cbb462471245c38441e24cb
+++ DOKKU_CIDS+=' '
+++ shopt -u nullglob
+++ echo 81dc68346d7a3a318ee0f19887d4f87e25b34b683cbb462471245c38441e24cb
+++ awk -F: '{ print $2 }'
+++ awk '{ print $2 }'
+++ egrep 81dc68346d7a3a318ee0f19887d4f87e25b34b683cbb462471245c38441e24cb
+++ docker ps -a --no-trunc
++ RUNNING_IMAGE_TAG=latest
++ echo latest
+ IMAGE_TAG=latest
++ get_app_image_name node-js-app latest
++ local APP=node-js-app
++ local IMAGE_TAG=latest
+++ get_app_image_repo node-js-app
+++ local APP=node-js-app
+++ local IMAGE_REPO=dokku/node-js-app
+++ [[ -z node-js-app ]]
+++ echo dokku/node-js-app
++ local IMAGE_REPO=dokku/node-js-app
++ [[ -z node-js-app ]]
++ [[ -n latest ]]
++ IMAGE=dokku/node-js-app:latest
++ verify_image dokku/node-js-app:latest
++ local IMAGE=dokku/node-js-app:latest
++ docker inspect dokku/node-js-app:latest
++ return 0
++ echo dokku/node-js-app:latest
+ IMAGE=dokku/node-js-app:latest
+ verify_app_name node-js-app
+ local APP=node-js-app
+ [[ ! -n node-js-app ]]
+ [[ ! -d /home/dokku/node-js-app ]]
+ return 0
+ [[ ! -n web ]]
+ [[ web == \-\-\c\o\n\t\a\i\n\e\r\-\i\d ]]
+ DOKKU_APP_CIDS=($(get_app_container_ids "$APP" "$CONTAINER_TYPE"))
++ get_app_container_ids node-js-app web
++ local APP=node-js-app
++ local CONTAINER_TYPE=web
++ verify_app_name node-js-app
++ local APP=node-js-app
++ [[ ! -n node-js-app ]]
++ [[ ! -d /home/dokku/node-js-app ]]
++ return 0
++ [[ -f /home/dokku/node-js-app/CONTAINER ]]
++ [[ -n web ]]
++ CONTAINER_PATTERN='/home/dokku/node-js-app/CONTAINER.web.*'
++ [[ web == *.* ]]
++ shopt -s nullglob
++ for DOKKU_CID_FILE in '$CONTAINER_PATTERN'
++ DOKKU_CIDS+=' '
++ DOKKU_CIDS+=81dc68346d7a3a318ee0f19887d4f87e25b34b683cbb462471245c38441e24cb
++ DOKKU_CIDS+=' '
++ shopt -u nullglob
++ echo 81dc68346d7a3a318ee0f19887d4f87e25b34b683cbb462471245c38441e24cb
+ ID=81dc68346d7a3a318ee0f19887d4f87e25b34b683cbb462471245c38441e24cb
+ [[ ! -n 81dc68346d7a3a318ee0f19887d4f87e25b34b683cbb462471245c38441e24cb ]]
+ shift 3
+ grep -e '^81dc68346d7a3a318ee0f19887d4f87e25b34b683cbb462471245c38441e24cb'
+ docker ps -aq --no-trunc
+ grep -e '^81dc68346d7a3a318ee0f19887d4f87e25b34b683cbb462471245c38441e24cb'
+ docker ps -q --no-trunc
+ EXEC_CMD=
+ is_image_herokuish_based dokku/node-js-app:latest
+ [[ ! -f /home/ubuntu/.circlerc ]]
+ local DOCKER_ARGS=--rm
+ docker run --entrypoint=/bin/sh --rm dokku/node-js-app:latest -c 'test -f /exec'
+ EXEC_CMD=/exec
+ docker exec -it 81dc68346d7a3a318ee0f19887d4f87e25b34b683cbb462471245c38441e24cb /exec ls
cannot enable tty mode on non tty input
+ exit_code=1
+ set -e
+ [[ 1 -eq 10 ]]
+ implemented=1
+ [[ 1 -ne 0 ]]
+ exit 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment