Rework RabbitMQ
This commit is contained in:
parent
ed3aeb60d8
commit
eac6129fb3
@ -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
|
@ -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
|
||||
}
|
@ -11,8 +11,6 @@ RUN EOF
|
||||
apk --no-cache add rabbitmq-server@vm
|
||||
EOF
|
||||
|
||||
MOUNT DIR /srv/rabbitmq/data var/lib/rabbitmq/mnesia
|
||||
|
||||
USER 5672 5672
|
||||
ENV HOME /usr/lib/rabbitmq
|
||||
CMD rabbitmq-server
|
||||
|
@ -1,6 +0,0 @@
|
||||
#!/bin/sh
|
||||
set -ev
|
||||
|
||||
# Remove service
|
||||
rm -f /etc/init.d/rabbitmq
|
||||
rc-update -u
|
Loading…
Reference in New Issue
Block a user