aboutsummaryrefslogtreecommitdiff
path: root/kolla/docker/valkey/valkey-sentinel/Dockerfile.j2
diff options
context:
space:
mode:
authorMichal Nasiadka <mnasiadka@gmail.com>2026-06-17 07:24:16 +0200
committerMichal Nasiadka <mnasiadka@gmail.com>2026-08-05 10:13:09 +0200
commit5aabec47f057d9cb32aab520d666e51bd9ee37c6 (patch)
tree181eecd8804b7dd6b47ffa768ab94565f751728b /kolla/docker/valkey/valkey-sentinel/Dockerfile.j2
parent8e912a9db7f013a1abfc1e70a829e435d50622db (diff)
downloadkolla-5aabec47f057d9cb32aab520d666e51bd9ee37c6.tar.gz
kolla-5aabec47f057d9cb32aab520d666e51bd9ee37c6.zip
Add cleanup_repos to revert build_only overrides
Repos marked build_only: true are backed up before handle_repos() overwrites them and restored at the end of each image build, so CI mirror URLs are not baked into the final image. The cleanup RUN was injected into every Dockerfile, not just images that called handle_repos() for those repos. Child images with no backup fell through to "rm -f", deleting the inherited repo file (e.g. debian.sources in bifrost-base, breaking cpio install). Fix by adding a {repo}.enabled sentinel that handle_repos creates when it processes a build_only repo, making the cleanup conditional on that sentinel. Change-Id: Ie5b9970a4575b6258dc238059d3f33ddfe155789 Signed-off-by: Michal Nasiadka <mnasiadka@gmail.com>
Diffstat (limited to 'kolla/docker/valkey/valkey-sentinel/Dockerfile.j2')
-rw-r--r--kolla/docker/valkey/valkey-sentinel/Dockerfile.j23
1 files changed, 3 insertions, 0 deletions
diff --git a/kolla/docker/valkey/valkey-sentinel/Dockerfile.j2 b/kolla/docker/valkey/valkey-sentinel/Dockerfile.j2
index 94828a38f..e9b89113b 100644
--- a/kolla/docker/valkey/valkey-sentinel/Dockerfile.j2
+++ b/kolla/docker/valkey/valkey-sentinel/Dockerfile.j2
@@ -7,6 +7,8 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}"
{% import "macros.j2" as macros with context %}
+{{ macros.kolla_enable_base_repos() }}
+
{% if base_package_type == 'rpm' %}
{{ macros.enable_extra_repos(['epel']) }}
{% set valkey_sentinel_packages = ['valkey'] %}
@@ -22,5 +24,6 @@ RUN chmod 644 /usr/local/bin/kolla_extend_start
{% block valkey_sentinel_footer %}{% endblock %}
{% block footer %}{% endblock %}
+{{ macros.kolla_cleanup_repos() }}
USER valkey