31c958db52
This allows us to use the new simpler style conf format, as well as drop the dependency on the deprecated clusterer plugin. Depends-On: I921459f3e40b9e0d4af9497384e49aabf0abe79b Change-Id: I75e00312b36e1678b90a42cf58d24652323eff27
67 lines
1.7 KiB
Django/Jinja
67 lines
1.7 KiB
Django/Jinja
FROM {{ namespace }}/{{ image_prefix }}base:{{ tag }}
|
|
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
|
|
|
|
{% block rabbitmq_header %}{% endblock %}
|
|
|
|
{% import "macros.j2" as macros with context %}
|
|
|
|
{{ macros.configure_user(name='rabbitmq') }}
|
|
|
|
{% block rabbitmq_install %}
|
|
{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
|
|
{% set rabbitmq_packages = [
|
|
'erlang-hipe',
|
|
'hostname',
|
|
'rabbitmq-server'
|
|
] %}
|
|
|
|
{% elif base_distro in ['debian', 'ubuntu'] %}
|
|
{% set rabbitmq_packages = [
|
|
'erlang-nox',
|
|
'logrotate'
|
|
] %}
|
|
|
|
{% if base_distro == 'debian' %}
|
|
{% set rabbitmq_packages = rabbitmq_packages + [
|
|
'rabbitmq-server/stretch-backports'
|
|
] %}
|
|
{% else %}
|
|
{% set rabbitmq_packages = rabbitmq_packages + [
|
|
'rabbitmq-server',
|
|
] %}
|
|
{% endif %}
|
|
|
|
{% if base_arch == 'aarch64' %}
|
|
{% set rabbitmq_packages = rabbitmq_packages + [
|
|
'erlang-base',
|
|
] %}
|
|
{% else %}
|
|
{% set rabbitmq_packages = rabbitmq_packages + [
|
|
'erlang-base-hipe',
|
|
] %}
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
{{ macros.install_packages(rabbitmq_packages | customizable("packages")) }}
|
|
|
|
{% endblock %}
|
|
|
|
{% block rabbitmq_install_plugins %}
|
|
|
|
RUN rm -rf /var/lib/rabbitmq/* \
|
|
&& /usr/lib/rabbitmq/bin/rabbitmq-plugins enable --offline \
|
|
rabbitmq_management
|
|
|
|
{% endblock %}
|
|
|
|
COPY extend_start.sh /usr/local/bin/kolla_extend_start
|
|
COPY rabbitmq_get_gospel_node.py /usr/local/bin/rabbitmq_get_gospel_node
|
|
RUN chmod 755 /usr/local/bin/kolla_extend_start /usr/local/bin/rabbitmq_get_gospel_node
|
|
|
|
{% block rabbitmq_footer %}{% endblock %}
|
|
{% block footer %}{% endblock %}
|
|
|
|
USER rabbitmq
|