aboutsummaryrefslogtreecommitdiff
path: root/kolla/docker/base/Dockerfile.j2
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2026-07-11 08:08:51 +0000
committerGerrit Code Review <review@openstack.org>2026-07-11 08:08:51 +0000
commitc0c6ec5a00711de6a5f69e692c1049eefa1a1f06 (patch)
treee7585a751b276f6804174df8e95b77f66ea3d36c /kolla/docker/base/Dockerfile.j2
parent6b3724a59c94dd7818821f5ea9c9d50b2a880d09 (diff)
parent77d310a9ff344a09f35b2c0536b0f7b9e8677deb (diff)
downloadkolla-c0c6ec5a00711de6a5f69e692c1049eefa1a1f06.tar.gz
kolla-c0c6ec5a00711de6a5f69e692c1049eefa1a1f06.zip
Merge "Add support to override base repos"
Diffstat (limited to 'kolla/docker/base/Dockerfile.j2')
-rw-r--r--kolla/docker/base/Dockerfile.j214
1 files changed, 10 insertions, 4 deletions
diff --git a/kolla/docker/base/Dockerfile.j2 b/kolla/docker/base/Dockerfile.j2
index 0e2f3c1ab..6c1022ece 100644
--- a/kolla/docker/base/Dockerfile.j2
+++ b/kolla/docker/base/Dockerfile.j2
@@ -34,10 +34,8 @@ RUN cat /tmp/kolla_bashrc >> /etc/skel/.bashrc \
ENV PS1="$(tput bold)($(printenv KOLLA_SERVICE_NAME))$(tput sgr0)[$(id -un)@$(hostname -s) $(pwd)]$ "
{% if base_package_type == 'rpm' %}
-# For RPM Variants, enable the correct repositories - this should all be done
-# in the base image so repos are consistent throughout the system. This also
-# enables to provide repo overrides at a later date in a simple fashion if we
-# desire such functionality. I think we will :)
+
+{{ macros.enable_extra_repos(['baseos', 'appstream']) }}
ENV KOLLA_RPM_OVS_VERSION=3.5 \
KOLLA_RPM_OVN_VERSION=26.03
@@ -154,6 +152,7 @@ RUN {{ macros.install_packages(base_centos_yum_repo_packages | customizable("cen
{# endif for base_package_type rpm #}
{% elif base_package_type == 'deb' %}
+
# This will prevent questions from being asked during the install
ENV DEBIAN_FRONTEND noninteractive
@@ -195,9 +194,16 @@ COPY {{ base_distro }}.sources.arm64 /etc/apt/sources.list.d/{{ base_distro }}.s
{% else %}
COPY {{ base_distro }}.sources /etc/apt/sources.list.d/
{% endif %}
+
COPY sources.list /etc/apt/sources.list.d/kolla-custom.list
{% endblock %}
+{% if base_distro == 'debian' %}
+{{ macros.enable_extra_repos(['debian', 'debian-security']) }}
+{% elif base_distro == 'ubuntu' %}
+{{ macros.enable_extra_repos(['ubuntu', 'ubuntu-security', 'ubuntu-cloud-archive']) }}
+{% endif %}
+
{% block base_debian_after_sources_list %}{% endblock %}
{# install Debian Openstack repos - they are not mirrored on CI #}