This repository contains docker and docker-compose files to simulate the infrastructure required by gnuviechadmin components.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
494B

  1. #!/bin/sh
  2. set -e
  3. rabbitmq-plugins enable --offline rabbitmq_management
  4. su -s /bin/sh -c '/usr/sbin/rabbitmq-server' rabbitmq &
  5. sleep 5
  6. rabbitmqctl list_users --quiet | grep -q gnuviechadmin || \
  7. rabbitmqctl add_user gnuviechadmin ${RABBITMQ_DEFAULT_PASS}
  8. rabbitmqctl list_vhosts --quiet | grep -q "gva" || \
  9. rabbitmqctl add_vhost gva
  10. rabbitmqctl set_permissions --vhost gva gnuviechadmin '.*' '.*' '.*'
  11. rabbitmqctl shutdown
  12. sleep 2
  13. su -s /bin/sh -c '/usr/sbin/rabbitmq-server' rabbitmq