Sha256: 972a474fc21ba856337c953b5bfdba315bc0651e0bdabab159fd1bbf5244c26b

Contents?: true

Size: 1018 Bytes

Versions: 8

Compression:

Stored size: 1018 Bytes

Contents

#!/bin/sh
server=rabbitmq-server
ctl=rabbitmqctl
plugins=rabbitmq-plugins
delay=3

echo '[Configuration] Starting RabbitMQ in detached mode.'

$server -detached

echo "[Configuration] Waiting $delay seconds for RabbitMQ to start."

sleep $delay

echo '*** Enabling plugins ***'
$plugins enable --online rabbitmq_management
$plugins enable --online rabbitmq_consistent_hash_exchange

echo '*** Creating users ***'
$ctl add_user bunny_gem bunny_password
$ctl add_user bunny_reader reader_password

echo '*** Creating virtual hosts ***'
$ctl add_vhost bunny_testbed

echo '*** Setting virtual host permissions ***'
$ctl set_permissions -p / guest '.*' '.*' '.*'
$ctl set_permissions -p bunny_testbed bunny_gem '.*' '.*' '.*'
$ctl set_permissions -p bunny_testbed guest '.*' '.*' '.*'
$ctl set_permissions -p bunny_testbed bunny_reader '^---$' '^---$' '.*'

$ctl stop

echo "[Configuration] Waiting $delay seconds for RabbitMQ to stop."

sleep $delay

echo 'Starting RabbitMQ in foreground (CTRL-C to exit)'

exec $server

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
bunny-2.6.4 docker/docker-entrypoint.sh
bunny-2.6.3 docker/docker-entrypoint.sh
bunny-2.6.2 docker/docker-entrypoint.sh
bunny-2.6.1 docker/docker-entrypoint.sh
bunny-2.6.0 docker/docker-entrypoint.sh
bunny-2.5.1 docker/docker-entrypoint.sh
bunny-2.5.0 docker/docker-entrypoint.sh
bunny-2.4.0 docker/docker-entrypoint.sh