Sha256: 25c6bae5ee11f41ed2386a5b7204680471771844e2ae0d41925ef2a6771eb9ea

Contents?: true

Size: 921 Bytes

Versions: 10

Compression:

Stored size: 921 Bytes

Contents

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

echo "[Configuration] $(eval cat $RABBITMQ_CONFIG_FILE.config)"

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

$server -detached

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

sleep $delay

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

10 entries across 10 versions & 1 rubygems

Version Path
bunny-2.6.7 docker/docker-entrypoint.sh
bunny-2.7.4 docker/docker-entrypoint.sh
bunny-2.8.1 docker/docker-entrypoint.sh
bunny-2.7.3 docker/docker-entrypoint.sh
bunny-2.8.0 docker/docker-entrypoint.sh
bunny-2.7.2 docker/docker-entrypoint.sh
bunny-2.7.1 docker/docker-entrypoint.sh
bunny-2.7.0 docker/docker-entrypoint.sh
bunny-2.6.6 docker/docker-entrypoint.sh
bunny-2.6.5 docker/docker-entrypoint.sh