2e07be310a
Change-Id: I84d7587fca64dc8a9f05e326a27511ded79e902d Partially-Implements: blueprint rabbitmq-clusterer
34 lines
1.4 KiB
Django/Jinja
34 lines
1.4 KiB
Django/Jinja
FROM {{ namespace }}/{{ image_prefix }}base:{{ tag }}
|
|
MAINTAINER Kolla Project (https://launchpad.net/kolla)
|
|
|
|
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
|
|
|
RUN yum -y install \
|
|
hostname \
|
|
https://github.com/rabbitmq/rabbitmq-server/releases/download/rabbitmq_v3_5_5/rabbitmq-server-3.5.5-3.noarch.rpm \
|
|
&& yum clean all \
|
|
&& rm -rf /var/lib/rabbitmq/* \
|
|
&& curl -o /usr/lib/rabbitmq/lib/rabbitmq_server-3.5.5/plugins/rabbitmq_clusterer-3.5.x-189b3a81.ez http://www.rabbitmq.com/community-plugins/v3.5.x/rabbitmq_clusterer-3.5.x-189b3a81.ez
|
|
|
|
{% elif base_distro in ['ubuntu', 'debian'] %}
|
|
|
|
RUN apt-get install -y --no-install-recommends rabbitmq-server \
|
|
&& apt-get clean \
|
|
&& rm -rf /var/lib/rabbitmq/* \
|
|
&& curl -o /usr/lib/rabbitmq/lib/rabbitmq_server-3.5.4/plugins/rabbitmq_clusterer-3.5.x-189b3a81.ez http://www.rabbitmq.com/community-plugins/v3.5.x/rabbitmq_clusterer-3.5.x-189b3a81.ez
|
|
|
|
{% endif %}
|
|
|
|
# NOTE(sdake): the /bin/true unblocks the rabbitmq-plugins tool. Not sure how
|
|
# or why. My suspicion is it sends a signal to the parent
|
|
# process.
|
|
RUN /usr/lib/rabbitmq/bin/rabbitmq-plugins enable --offline \
|
|
rabbitmq_management \
|
|
rabbitmq_clusterer \
|
|
&& /bin/true
|
|
|
|
COPY extend_start.sh /usr/local/bin/kolla_extend_start
|
|
RUN chmod 755 /usr/local/bin/kolla_extend_start
|
|
|
|
{{ include_footer }}
|