Move apt_prefs pins to respective images

Change-Id: I9eb51e079fee1322bcaaf9d481cd7890aeb77696
This commit is contained in:
Michal Nasiadka 2024-04-15 12:46:28 +02:00
parent 340350a387
commit 6e1ddf5a7b
5 changed files with 20 additions and 16 deletions

View File

@ -1,11 +1,3 @@
Package: rabbitmq-server
Pin: version 3.13.*
Pin-Priority: 1000
Package: erlang
Pin: version 26.2.*
Pin-Priority: 1000
# NOTE(hrw): we do not want backports unless requested
Package: *
Pin: release n=bookworm-backports

View File

@ -1,11 +1,3 @@
Package: rabbitmq-server
Pin: version 3.13.*
Pin-Priority: 1000
Package: erlang
Pin: version 26.2.*
Pin-Priority: 1000
Package: *
Pin: origin dlm.mariadb.com
Pin-Priority: 1000

View File

@ -11,6 +11,12 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
{{ macros.enable_extra_repos(['crb', 'erlang', 'rabbitmq']) }}
{% block rabbitmq_apt_preferences %}
{% if base_package_type == 'deb' %}
COPY apt_preferences_rabbitmq.{{ base_distro }} /etc/apt/preferences.d/rabbitmq
{% endif %}
{% endblock %}
{% block rabbitmq_install %}
{% if base_package_type == 'rpm' %}

View File

@ -0,0 +1,7 @@
Package: rabbitmq-server
Pin: version 3.13.*
Pin-Priority: 1000
Package: erlang
Pin: version 26.2.*
Pin-Priority: 1000

View File

@ -0,0 +1,7 @@
Package: rabbitmq-server
Pin: version 3.13.*
Pin-Priority: 1000
Package: erlang
Pin: version 26.2.*
Pin-Priority: 1000