diff options
author | maxbr <maxbr@mi.fu-berlin.de> | 2017-01-05 12:36:54 +0100 |
---|---|---|
committer | maxbr <maxbr@mi.fu-berlin.de> | 2017-01-05 12:36:54 +0100 |
commit | 85623f2e6a4e4bee61ac5c28ce04bf9532980094 (patch) | |
tree | 61327148ccb024cf55bcffa1cdf4d16d7c848e37 /tools/pharos-dashboard/rabbitmq | |
parent | 55c3b53ba08b2c6cf3c392b10a065a3076525951 (diff) |
Add library for dashboard notification System
JIRA: PHAROS-265
Change-Id: Ia33235c5160ef6b36b27a6fe1a2eb97a45e72367
Signed-off-by: maxbr <maxbr@mi.fu-berlin.de>
Diffstat (limited to 'tools/pharos-dashboard/rabbitmq')
-rw-r--r-- | tools/pharos-dashboard/rabbitmq/Dockerfile | 4 | ||||
-rwxr-xr-x | tools/pharos-dashboard/rabbitmq/init.sh | 10 |
2 files changed, 14 insertions, 0 deletions
diff --git a/tools/pharos-dashboard/rabbitmq/Dockerfile b/tools/pharos-dashboard/rabbitmq/Dockerfile new file mode 100644 index 00000000..71162a45 --- /dev/null +++ b/tools/pharos-dashboard/rabbitmq/Dockerfile @@ -0,0 +1,4 @@ +FROM rabbitmq + +ADD init.sh /init.sh +CMD ["/init.sh"]
\ No newline at end of file diff --git a/tools/pharos-dashboard/rabbitmq/init.sh b/tools/pharos-dashboard/rabbitmq/init.sh new file mode 100755 index 00000000..f8ac0890 --- /dev/null +++ b/tools/pharos-dashboard/rabbitmq/init.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +# Create Rabbitmq user +( sleep 20 ; \ +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 $@ |