diff options
| author | Michal Arbet <michal.arbet@ultimum.io> | 2025-05-29 19:53:55 +0200 |
|---|---|---|
| committer | Michal Arbet <michal.arbet@ultimum.io> | 2025-05-30 18:07:48 +0200 |
| commit | b5849adc45e3a39e0837dea3ee8e1fb3cd057dd8 (patch) | |
| tree | 05fd79a332ed326dab3ee46394be7bea02808a0b /docker/base/Dockerfile.j2 | |
| parent | bcf37e5016ecf1bc50dea111285cad887fd471b3 (diff) | |
| download | kolla-b5849adc45e3a39e0837dea3ee8e1fb3cd057dd8.tar.gz kolla-b5849adc45e3a39e0837dea3ee8e1fb3cd057dd8.zip | |
[base] Ensure full control over APT sources for Ubuntu
Ubuntu images were occasionally failing to build due to
unavailability or slowness of the official Ubuntu security
repositories. Although Kolla uses `mirror://` URLs to
leverage Ubuntu mirror infrastructure, the original
`/etc/apt/sources.list.d/ubuntu.sources` file was still
present, causing the system to fallback to default sources.
This commit aligns Ubuntu behavior with Debian by
explicitly removing the distro `.sources` file and relying
solely on the sources configured by Kolla. This ensures
consistent and reproducible builds both in CI and
on local environments.
Closes-Bug: #2112140
Change-Id: I00bcb30662bb12ed8711b28a64ef1941dcce893a
Diffstat (limited to 'docker/base/Dockerfile.j2')
| -rw-r--r-- | docker/base/Dockerfile.j2 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docker/base/Dockerfile.j2 b/docker/base/Dockerfile.j2 index 6bd94a2cc..eae52d1db 100644 --- a/docker/base/Dockerfile.j2 +++ b/docker/base/Dockerfile.j2 @@ -249,7 +249,7 @@ RUN cat /tmp/kolla_bashrc >> /etc/bash.bashrc \ {% block base_ubuntu_package_sources_list %} {% if base_distro == 'debian' or ( base_distro == 'ubuntu' and base_arch == 'x86_64' ) %} -RUN rm -f /etc/apt/sources.list.d/debian.sources +RUN rm -f /etc/apt/sources.list.d/{{ base_distro }}.sources COPY sources.list.{{ base_distro }} /etc/apt/sources.list {% else %} COPY sources.list.{{ base_distro }}.{{ base_arch }} /etc/apt/sources.list |
