Merge "Implements: blueprint update-rabbit-container"

This commit is contained in:
Jenkins 2015-02-19 15:43:46 +00:00 committed by Gerrit Code Review
commit 91bea4c72b
3 changed files with 15 additions and 7 deletions

View File

@ -1,8 +1,18 @@
FROM kollaglue/fedora-rdo-base
MAINTAINER Kolla Project (https://launchpad.net/kolla)
RUN yum -y install rabbitmq-server; yum clean all
# Install required packages
RUN yum -y install rabbitmq-server && yum clean all
# Run the management plugin
RUN /usr/lib/rabbitmq/bin/rabbitmq-plugins enable rabbitmq_management
# Copy Rabbit conf files
ADD rabbitmq.config /etc/rabbitmq/
ADD rabbitmq-env.conf /etc/rabbitmq/
# Copy start-up script
ADD start.sh /start.sh
# Start Rabbit through the start script
CMD ["/start.sh"]

View File

@ -1,3 +1,2 @@
RABBITMQ_NODE_PORT=@RABBITMQ_PORT@
RABBITMQ_NODENAME=@RABBITMQ_NODENAME@
RABBITMQ_LOG_BASE=@RABBITMQ_LOG_BASE@

View File

@ -4,7 +4,7 @@ set -e
: ${RABBITMQ_USER:=guest}
: ${RABBITMQ_PASS:=guest}
: ${RABBITMQ_NODE_PORT:=5672}
: ${RABBITMQ_NODENAME:=rabbit}
: ${RABBITMQ_LOG_BASE:=/var/log/rabbitmq}
sed -i '
@ -13,9 +13,8 @@ sed -i '
' /etc/rabbitmq/rabbitmq.config
sed -i '
s|@RABBITMQ_PORT@|'"$RABBITMQ_NODE_PORT"'|g
s|@RABBITMQ_NODENAME@|'"$RABBITMQ_NODENAME"'|g
s|@RABBITMQ_LOG_BASE@|'"$RABBITMQ_LOG_BASE"'|g
' /etc/rabbitmq/rabbitmq-env.conf
exec /usr/lib/rabbitmq/bin/rabbitmq-server
exec /usr/sbin/rabbitmq-server