diff options
author | Trevor Bramwell <tbramwell@linuxfoundation.org> | 2018-10-01 10:28:17 -0700 |
---|---|---|
committer | Trevor Bramwell <tbramwell@linuxfoundation.org> | 2018-10-01 10:31:09 -0700 |
commit | 42aeeea8514b0ca99005ae64ca360a949ef9c6ef (patch) | |
tree | 234a5cd3abe85b5763376058ebcaa4514ee89ae0 /rabbitmq/init.sh | |
parent | 7d275735c62c9d0ce423327d67494859e285fce7 (diff) |
Use Upstream Rabbitmq Docker Container
The upstream rabbitmq container supports specifying the default admin
user and password through the environment variables:
RABBITMQ_DEFAULT_USER and RABBITMQ_DEFAULT_PASS.
Utilizing these variables removes the need to build a rabbitmq container
specific to the Pharos LaaS Dashboard.
Change-Id: I390d7fa9254a0f28b374235254caff59b219cd87
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
Diffstat (limited to 'rabbitmq/init.sh')
-rwxr-xr-x | rabbitmq/init.sh | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/rabbitmq/init.sh b/rabbitmq/init.sh deleted file mode 100755 index 9d04dd1..0000000 --- a/rabbitmq/init.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh - -# Create Rabbitmq user -( sleep 10 ; \ -rabbitmqctl add_user $RABBITMQ_USER $RABBITMQ_PASSWORD 2>/dev/null ; \ -rabbitmqctl set_user_tags $RABBITMQ_USER administrator ; \ -rabbitmqctl set_permissions -p / $RABBITMQ_USER ".*" ".*" ".*" ; \ -echo "*** User '$RABBITMQ_USER' with password '$RABBITMQ_PASSWORD' completed. ***") & - -rabbitmq-server $@ |