Use APT pinning to set preferred version of RabbitMQ

We want RabbitMQ 3.7.10-1 for Ubuntu. So set it in one place which is
designed for such things instead of doing it everytime we want to
install it.

Change-Id: Ib2b2d4e392aaf77bcdec24f9f5551cdf15d32d91
changes/89/698789/1
Marcin Juszkiewicz 3 years ago
parent 3c3d567d33
commit d81e5f145b
  1. 3
      docker/base/apt_preferences.ubuntu
  2. 12
      docker/kolla-toolbox/Dockerfile.j2
  3. 13
      docker/rabbitmq/Dockerfile.j2

@ -0,0 +1,3 @@
Package: rabbitmq-server
Pin: version 3.7.10-1
Pin-Priority: 1000

@ -47,17 +47,9 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
'libssl-dev',
'libxslt1-dev',
'mariadb-client',
'python3-dev'
'python3-dev',
'rabbitmq-server',
] %}
{% if base_distro == 'debian' %}
{% set kolla_toolbox_packages = kolla_toolbox_packages + [
'rabbitmq-server',
] %}
{% else %}
{% set kolla_toolbox_packages = kolla_toolbox_packages + [
'rabbitmq-server=3.7.10-1',
] %}
{% endif %}
{% endif %}
{{ macros.install_packages(kolla_toolbox_packages | customizable("packages")) }}

@ -22,19 +22,10 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
{% elif base_package_type == 'deb' %}
{% set rabbitmq_packages = [
'erlang-nox',
'logrotate'
'logrotate',
'rabbitmq-server',
] %}
{% if base_distro == 'debian' %}
{% set rabbitmq_packages = rabbitmq_packages + [
'rabbitmq-server',
] %}
{% else %}
{% set rabbitmq_packages = rabbitmq_packages + [
'rabbitmq-server=3.7.10-1',
] %}
{% endif %}
{% if base_arch == 'aarch64' %}
{% set rabbitmq_packages = rabbitmq_packages + [
'erlang-base',

Loading…
Cancel
Save