Merge "Add RabbitMQ image for Ubuntu"

This commit is contained in:
Jenkins 2015-07-12 03:34:22 +00:00 committed by Gerrit Code Review
commit 9fe11b46fd
9 changed files with 23 additions and 1 deletions

@ -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"

@ -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"]

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

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

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

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

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

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

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