jlachowski / dokku-rabbitmq-plugin

MIT License
21 stars 9 forks source link

BROKER_URL environment variable does not contain user name #7

Open evdoks opened 10 years ago

evdoks commented 10 years ago

After deploying a RabbitMQ container, following environment variable are set for the dokku app:

root@host:~#dokku config pusher-dev
=== app config vars ===
API_KEY:           3BBmHukpC4Z5goOotNFgz1IaNJykjp2WSIfmCMLv7WI
BROKER_ADMIN_PORT: ${BROKER_PORT_15672_TCP_PORT}
BROKER_AMQP_PORT:  ${BROKER_PORT_5672_TCP_PORT}
BROKER_HOST:       ${BROKER_PORT_5672_TCP_ADDR}
BROKER_PASSWORD:   cDEsedDVQdY0qoQC
BROKER_PATH:       //
BROKER_SCHEME:     amqp
BROKER_URL:        amqp://${BROKER_USERNAME}:${BROKER_PASSWORD}@${BROKER_PORT_5672_TCP_ADDR}:${BROKER_PORT_15672_TCP_PORT}//
BROKER_USERNAME:   admin

which seems to be alright. However, when starting an app container (dokku run app bash), the corresponding BROKER_URL environment variable does not contain the username:

BROKER_URL=amqp://:cDEsedDVQdY0qoQC@172.17.0.180:15672//

Am I missing something?

AlJohri commented 10 years ago

that's super weird, can you access the BROKER_USERNAME variable from your container via bash even if its not in the URL?

georgewhewell commented 9 years ago

I have the same issue. @AlJohri, yes BROKER_USERNAME is set.