Skip to content
Snippets Groups Projects
Commit 3309f5e4 authored by Jenkins's avatar Jenkins Committed by Gerrit Code Review
Browse files

Merge "Make rabbitmq container work with it's proper hostname set"

parents 97d3792b ac930b33
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,7 @@ FROM %%KOLLA_NAMESPACE%%/%%KOLLA_PREFIX%%base ...@@ -2,7 +2,7 @@ FROM %%KOLLA_NAMESPACE%%/%%KOLLA_PREFIX%%base
MAINTAINER Kolla Project (https://launchpad.net/kolla) MAINTAINER Kolla Project (https://launchpad.net/kolla)
# Install required packages # Install required packages
RUN yum -y install rabbitmq-server && yum clean all RUN yum -y install rabbitmq-server hostname && yum clean all
# Run the management plugin # Run the management plugin
RUN /usr/lib/rabbitmq/bin/rabbitmq-plugins enable rabbitmq_management RUN /usr/lib/rabbitmq/bin/rabbitmq-plugins enable rabbitmq_management
......
...@@ -17,4 +17,8 @@ sed -i ' ...@@ -17,4 +17,8 @@ sed -i '
s|@RABBITMQ_LOG_BASE@|'"$RABBITMQ_LOG_BASE"'|g s|@RABBITMQ_LOG_BASE@|'"$RABBITMQ_LOG_BASE"'|g
' /etc/rabbitmq/rabbitmq-env.conf ' /etc/rabbitmq/rabbitmq-env.conf
# work around:
# https://bugs.launchpad.net/ubuntu/+source/rabbitmq-server/+bug/653405
echo "${RABBITMQ_SERVICE_HOST} `/usr/bin/hostname -s`" > /etc/hosts
exec /usr/sbin/rabbitmq-server exec /usr/sbin/rabbitmq-server
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment