diff --git a/rabbitmq/Dockerfile b/rabbitmq/Dockerfile deleted file mode 100644 index 8411d9c..0000000 --- a/rabbitmq/Dockerfile +++ /dev/null @@ -1,17 +0,0 @@ -FROM alpine:3.8 -LABEL maintainer="Disassembler " - -RUN \ - # Create OS user (which will be picked up later by apk add) - addgroup -S -g 5672 rabbitmq \ - && adduser -S -u 5672 -h /usr/lib/rabbitmq -s /bin/false -g rabbitmq -G rabbitmq rabbitmq \ - # Add edge/testing repository - && echo '@edge http://dl-cdn.alpinelinux.org/alpine/edge/testing' >>/etc/apk/repositories \ - # Install RabbitMQ - && apk --no-cache add rabbitmq-server@edge - -VOLUME ["/var/lib/rabbitmq/mnesia"] -EXPOSE 5672 - -USER rabbitmq -CMD ["rabbitmq-server"] diff --git a/rabbitmq/lxcfile b/rabbitmq/lxcfile new file mode 100644 index 0000000..6327476 --- /dev/null +++ b/rabbitmq/lxcfile @@ -0,0 +1,20 @@ +IMAGE rabbitmq +LAYER shared/alpine +LAYER rabbitmq/rabbitmq + +RUN EOF + # Create OS user (which will be picked up later by apk add) + addgroup -S -g 5672 rabbitmq + adduser -S -u 5672 -h /usr/lib/rabbitmq -s /bin/false -g rabbitmq -G rabbitmq rabbitmq + + # Add edge/testing repository + echo '@edge http://dl-cdn.alpinelinux.org/alpine/edge/testing' >>/etc/apk/repositories + + # Install RabbitMQ + apk --no-cache add rabbitmq-server@edge +EOF + +MOUNT /srv/rabbitmq/data var/lib/rabbitmq/mnesia + +USER 5672 5672 +CMD /usr/sbin/rabbitmq-server diff --git a/rabbitmq/build.sh b/rabbitmq/setup.sh similarity index 100% rename from rabbitmq/build.sh rename to rabbitmq/setup.sh diff --git a/rabbitmq/etc/init.d/rabbitmq b/rabbitmq/setup/etc/init.d/rabbitmq similarity index 100% rename from rabbitmq/etc/init.d/rabbitmq rename to rabbitmq/setup/etc/init.d/rabbitmq