Created
December 1, 2015 11:51
-
-
Save gaborcsardi/8d62eff21d59c339450b 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@rhub:~# dokku --trace rabbitmq:expose rhub 5672 4369 35197 15672 | |
+ [[ -f /home/dokku/dokkurc ]] | |
+ [[ -d /home/dokku/.dokkurc ]] | |
+ for f in '$DOKKU_ROOT/.dokkurc/*' | |
+ source /home/dokku/.dokkurc/DOKKU_EVENTS | |
++ export DOKKU_EVENTS=1 | |
++ DOKKU_EVENTS=1 | |
+ [[ -n 1 ]] | |
+ set -x | |
+ parse_args rabbitmq:expose rhub 5672 4369 35197 15672 | |
+ for arg in '"$@"' | |
+ case "$arg" in | |
+ for arg in '"$@"' | |
+ case "$arg" in | |
+ 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=("$@") | |
+ [[ rabbitmq:expose =~ ^--.* ]] | |
+ has_tty | |
++ /usr/bin/tty | |
+ [[ /dev/pts/2 == \n\o\t\ \a\ \t\t\y ]] | |
+ return 0 | |
++ id -un | |
+ [[ dokku != \d\o\k\k\u ]] | |
+ [[ -n '' ]] | |
+ dokku_auth rabbitmq:expose rhub 5672 4369 35197 15672 | |
+ export SSH_USER=root | |
+ SSH_USER=root | |
+ export SSH_NAME=default | |
+ SSH_NAME=default | |
+ plugn trigger user-auth root default rabbitmq:expose rhub 5672 4369 35197 15672 | |
+ return 0 | |
+ case "$1" in | |
+ implemented=0 | |
+ for script in '$PLUGIN_ENABLED_PATH/*/commands' | |
+ set +e | |
+ /var/lib/dokku/plugins/enabled/00_dokku-standard/commands rabbitmq:expose rhub 5672 4369 35197 15672 | |
+ 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 rabbitmq:expose rhub 5672 4369 35197 15672 | |
+ 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 rabbitmq:expose rhub 5672 4369 35197 15672 | |
+ 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 rabbitmq:expose rhub 5672 4369 35197 15672 | |
+ 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 rabbitmq:expose rhub 5672 4369 35197 15672 | |
+ 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 rabbitmq:expose rhub 5672 4369 35197 15672 | |
+ 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 rabbitmq:expose rhub 5672 4369 35197 15672 | |
+ 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 rabbitmq:expose rhub 5672 4369 35197 15672 | |
+ 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 rabbitmq:expose rhub 5672 4369 35197 15672 | |
+ 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 rabbitmq:expose rhub 5672 4369 35197 15672 | |
+ 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/logs/commands rabbitmq:expose rhub 5672 4369 35197 15672 | |
++ dirname /var/lib/dokku/plugins/enabled/logs/commands | |
+ source /var/lib/dokku/plugins/enabled/logs/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 | |
+ 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 rabbitmq:expose rhub 5672 4369 35197 15672 | |
+ 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 rabbitmq:expose rhub 5672 4369 35197 15672 | |
+ 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 rabbitmq:expose rhub 5672 4369 35197 15672 | |
+ exit_code=10 | |
+ set -e | |
+ [[ 10 -eq 10 ]] | |
+ continue | |
+ for script in '$PLUGIN_ENABLED_PATH/*/commands' | |
+ set +e | |
+ /var/lib/dokku/plugins/enabled/rabbitmq-plugin/commands rabbitmq:expose rhub 5672 4369 35197 15672 | |
+ 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/rabbitmq-plugin/commands | |
+ source /var/lib/dokku/plugins/enabled/rabbitmq-plugin/functions | |
++ set -eo pipefail | |
++ [[ -n 1 ]] | |
++ set -x | |
+++ dirname /var/lib/dokku/plugins/enabled/rabbitmq-plugin/commands | |
++ source /var/lib/dokku/plugins/enabled/rabbitmq-plugin/config | |
+++ export RABBITMQ_IMAGE=rabbitmq | |
+++ RABBITMQ_IMAGE=rabbitmq | |
+++ export RABBITMQ_IMAGE_VERSION=3.5.4-management | |
+++ RABBITMQ_IMAGE_VERSION=3.5.4-management | |
+++ export RABBITMQ_ROOT=/var/lib/dokku/services/rabbitmq | |
+++ RABBITMQ_ROOT=/var/lib/dokku/services/rabbitmq | |
+++ export PLUGIN_COMMAND_PREFIX=rabbitmq | |
+++ PLUGIN_COMMAND_PREFIX=rabbitmq | |
+++ export PLUGIN_DATA_ROOT=/var/lib/dokku/services/rabbitmq | |
+++ PLUGIN_DATA_ROOT=/var/lib/dokku/services/rabbitmq | |
+++ PLUGIN_DATASTORE_PORTS=(5672 4369 35197 15672) | |
+++ export PLUGIN_DATASTORE_PORTS | |
+++ export PLUGIN_DEFAULT_ALIAS=RABBITMQ | |
+++ PLUGIN_DEFAULT_ALIAS=RABBITMQ | |
+++ export PLUGIN_ALT_ALIAS=DOKKU_RABBITMQ | |
+++ PLUGIN_ALT_ALIAS=DOKKU_RABBITMQ | |
+++ export PLUGIN_IMAGE=rabbitmq | |
+++ PLUGIN_IMAGE=rabbitmq | |
+++ export PLUGIN_IMAGE_VERSION=3.5.4-management | |
+++ PLUGIN_IMAGE_VERSION=3.5.4-management | |
+++ export PLUGIN_SCHEME=amqp | |
+++ PLUGIN_SCHEME=amqp | |
+++ export PLUGIN_SERVICE=RabbitMQ | |
+++ PLUGIN_SERVICE=RabbitMQ | |
++ dirname /var/lib/dokku/plugins/enabled/rabbitmq-plugin/commands | |
+ source /var/lib/dokku/plugins/enabled/rabbitmq-plugin/config | |
++ export RABBITMQ_IMAGE=rabbitmq | |
++ RABBITMQ_IMAGE=rabbitmq | |
++ export RABBITMQ_IMAGE_VERSION=3.5.4-management | |
++ RABBITMQ_IMAGE_VERSION=3.5.4-management | |
++ export RABBITMQ_ROOT=/var/lib/dokku/services/rabbitmq | |
++ RABBITMQ_ROOT=/var/lib/dokku/services/rabbitmq | |
++ export PLUGIN_COMMAND_PREFIX=rabbitmq | |
++ PLUGIN_COMMAND_PREFIX=rabbitmq | |
++ export PLUGIN_DATA_ROOT=/var/lib/dokku/services/rabbitmq | |
++ PLUGIN_DATA_ROOT=/var/lib/dokku/services/rabbitmq | |
++ PLUGIN_DATASTORE_PORTS=(5672 4369 35197 15672) | |
++ export PLUGIN_DATASTORE_PORTS | |
++ export PLUGIN_DEFAULT_ALIAS=RABBITMQ | |
++ PLUGIN_DEFAULT_ALIAS=RABBITMQ | |
++ export PLUGIN_ALT_ALIAS=DOKKU_RABBITMQ | |
++ PLUGIN_ALT_ALIAS=DOKKU_RABBITMQ | |
++ export PLUGIN_IMAGE=rabbitmq | |
++ PLUGIN_IMAGE=rabbitmq | |
++ export PLUGIN_IMAGE_VERSION=3.5.4-management | |
++ PLUGIN_IMAGE_VERSION=3.5.4-management | |
++ export PLUGIN_SCHEME=amqp | |
++ PLUGIN_SCHEME=amqp | |
++ export PLUGIN_SERVICE=RabbitMQ | |
++ PLUGIN_SERVICE=RabbitMQ | |
+ [[ rabbitmq:expose == rabbitmq:* ]] | |
+ [[ ! -d /var/lib/dokku/services/rabbitmq ]] | |
+ case "$1" in | |
+ [[ -z rhub ]] | |
+ verify_service_name rhub | |
+ local SERVICE=rhub | |
+ [[ ! -n rhub ]] | |
+ [[ ! -d /var/lib/dokku/services/rabbitmq/rhub ]] | |
+ return 0 | |
+ service_port_expose rhub 5672 4369 35197 15672 | |
+ service_start rhub | |
+ local SERVICE=rhub | |
+ local SERVICE_ROOT=/var/lib/dokku/services/rabbitmq/rhub | |
++ get_service_name rhub | |
++ local SERVICE=rhub | |
++ echo dokku.rabbitmq.rhub | |
+ local SERVICE_NAME=dokku.rabbitmq.rhub | |
++ awk '{print $1}' | |
++ grep dokku.rabbitmq.rhub | |
++ docker ps -f status=running | |
+ local ID=b7e20706748b | |
+ [[ -n b7e20706748b ]] | |
+ dokku_log_warn 'Service is already started' | |
+ echo ' ! Service is already started' | |
! Service is already started | |
+ return 0 | |
+ service_port_unpause rhub true 5672 4369 35197 15672 | |
+ local SERVICE=rhub | |
+ local SERVICE_ROOT=/var/lib/dokku/services/rabbitmq/rhub | |
++ get_service_name rhub | |
++ local SERVICE=rhub | |
++ echo dokku.rabbitmq.rhub | |
+ local SERVICE_NAME=dokku.rabbitmq.rhub | |
+ local EXPOSED_NAME=dokku.rabbitmq.rhub.ambassador | |
+ local PORT_FILE=/var/lib/dokku/services/rabbitmq/rhub/PORT | |
+ local LOG_FAIL=true | |
+ PORTS=(${@:3}) | |
+ local PORTS | |
+ PORTS=(${PORTS[@]:-$(get_random_ports ${#PLUGIN_DATASTORE_PORTS[@]})}) | |
++ cat /var/lib/dokku/services/rabbitmq/rhub/ID | |
+ local ID=b7e20706748b1515572ab59855aec118967cc85a6b2c070f6ffd79ad26674a54 | |
+ [[ 4 != \4 ]] | |
+ [[ true == \t\r\u\e ]] | |
+ [[ -f /var/lib/dokku/services/rabbitmq/rhub/PORT ]] | |
+ echo 5672 4369 35197 15672 | |
++ docker_ports_options 5672 4369 35197 15672 | |
++ PORTS=("$@") | |
++ local PORTS | |
++ (( i=0 )) | |
++ (( i < 4 )) | |
++ echo -n '-p 5672:5672 ' | |
++ (( i++ )) | |
++ (( i < 4 )) | |
++ echo -n '-p 4369:4369 ' | |
++ (( i++ )) | |
++ (( i < 4 )) | |
++ echo -n '-p 35197:35197 ' | |
++ (( i++ )) | |
++ (( i < 4 )) | |
++ echo -n '-p 15672:15672 ' | |
++ (( i++ )) | |
++ (( i < 4 )) | |
+ docker run -d --link dokku.rabbitmq.rhub:rabbitmq --name dokku.rabbitmq.rhub.ambassador -p 5672:5672 -p 4369:4369 -p 35197:35197 -p 15672:15672 --restart always --label dokku=ambassador --label dokku.ambassador=rabbitmq svendowideit/ambassador | |
+ [[ true == \t\r\u\e ]] | |
+ dokku_log_info1 'Service rhub exposed on port(s) 5672 4369 35197 15672' | |
+ echo '-----> Service rhub exposed on port(s) 5672 4369 35197 15672' | |
-----> Service rhub exposed on port(s) 5672 4369 35197 15672 | |
+ 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/shell/commands rabbitmq:expose rhub 5672 4369 35197 15672 | |
+ 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 rabbitmq:expose rhub 5672 4369 35197 15672 | |
+ 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 rabbitmq:expose rhub 5672 4369 35197 15672 | |
+ exit_code=10 | |
+ set -e | |
+ [[ 10 -eq 10 ]] | |
+ continue | |
+ [[ 1 -eq 0 ]] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment