Add RabbitMQ image for Ubuntu

Dockerfile for RabbitMQ server installed from Ubuntu
Cloud Archive.

Partially implements: blueprint install-from-ubuntu

Change-Id: Ie90cbc4bea943b81b966d7b391b4de6df2e68364
This commit is contained in:
Michal Rostecki 2015-07-09 18:07:44 +02:00
parent fcda6a06d8
commit 802b118bfa
9 changed files with 23 additions and 1 deletions

View File

@ -44,7 +44,8 @@ function configure_rabbit {
elif [ "$RABBITMQ_SERVICE_HOST" ]; then
# work around:
# https://bugs.launchpad.net/ubuntu/+source/rabbitmq-server/+bug/653405
echo "${RABBITMQ_SERVICE_HOST} `/usr/bin/hostname -s`" > /etc/hosts
HOSTNAME=`/usr/bin/hostname -s 2> /dev/null || /bin/hostname 2> /dev/null`
echo "${RABBITMQ_SERVICE_HOST} ${HOSTNAME}" > /etc/hosts
else
echo "You need RABBITMQ_SERVICE_HOST or RABBITMQ_CLUSTER_NODES & " \
" RABBITMQ_CLUSTER_COOKIES variables"

View File

@ -0,0 +1,14 @@
FROM %%KOLLA_NAMESPACE%%/%%KOLLA_PREFIX%%base:%%KOLLA_TAG%%
MAINTAINER Kolla Project (https://launchpad.net/kolla)
RUN apt-get install -y --no-install-recommends \
hostname \
rabbitmq-server \
&& apt-get clean \
&& /usr/lib/rabbitmq/bin/rabbitmq-plugins --offline enable rabbitmq_management
COPY rabbitmq.config rabbitmq-env.conf /etc/rabbitmq/
COPY config-rabbit.sh config-external.sh config-internal.sh /opt/kolla/
COPY start.sh /start.sh
CMD ["/start.sh"]

View File

@ -0,0 +1 @@
../../../../tools/build-docker-image

View File

@ -0,0 +1 @@
../../../common/rabbitmq/config-external.sh

View File

@ -0,0 +1 @@
../../../common/rabbitmq/config-internal.sh

View File

@ -0,0 +1 @@
../../../common/rabbitmq/config-rabbit.sh

View File

@ -0,0 +1 @@
../../../common/rabbitmq/rabbitmq-env.conf

View File

@ -0,0 +1 @@
../../../common/rabbitmq/rabbitmq.config

View File

@ -0,0 +1 @@
../../../common/rabbitmq/start.sh