Rework RabbitMQ

This commit is contained in:
Disassembler 2019-10-05 15:13:00 +02:00
parent ed3aeb60d8
commit eac6129fb3
Signed by: Disassembler
GPG Key ID: 524BD33A0EE29499
4 changed files with 0 additions and 35 deletions

View File

@ -1,12 +0,0 @@
#!/bin/sh
set -ev
cd $(realpath $(dirname "${0}"))/install
# Create RabbitMQ directory structure
mkdir -p /srv/rabbitmq/data
chown 5672:5672 /srv/rabbitmq/data
# Install service
cp etc/init.d/rabbitmq /etc/init.d/rabbitmq
rc-update -u

View File

@ -1,15 +0,0 @@
#!/sbin/openrc-run
description="RabbitMQ container"
start() {
lxc-start rabbitmq
}
start_post() {
timeout -t 60 sh -c 'until grep -q "Server startup complete" /var/lib/lxc/rabbitmq/delta0/var/log/rabbitmq/rabbit@rabbitmq.log 2>/dev/null; do usleep 50000; done'
}
stop() {
lxc-stop rabbitmq
}

View File

@ -11,8 +11,6 @@ RUN EOF
apk --no-cache add rabbitmq-server@vm apk --no-cache add rabbitmq-server@vm
EOF EOF
MOUNT DIR /srv/rabbitmq/data var/lib/rabbitmq/mnesia
USER 5672 5672 USER 5672 5672
ENV HOME /usr/lib/rabbitmq ENV HOME /usr/lib/rabbitmq
CMD rabbitmq-server CMD rabbitmq-server

View File

@ -1,6 +0,0 @@
#!/bin/sh
set -ev
# Remove service
rm -f /etc/init.d/rabbitmq
rc-update -u