From 877785adf7364ab87ffe402ec512d2679dc33bc9 Mon Sep 17 00:00:00 2001 From: Ronelle Landy Date: Tue, 16 Nov 2021 09:10:34 -0500 Subject: [PATCH] Disable ubi repos during container builds When ubi is used to build the base image, there is a ubi.repo file added. The rpms from these repos can clash which rpms from repos put down from CI. This patch disables the ubi repos if they exist to minimize clashes. Change-Id: I6b05702b4ed17b99eb8246d6740dd74c0ebef758 Related-Bug: BZ2022749 (cherry picked from commit I6b05702b4ed17b99eb8246d6740dd74c0ebef758) --- container-images/tcib/base/base.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/container-images/tcib/base/base.yaml b/container-images/tcib/base/base.yaml index 9f6b86bf7..5cde327b4 100644 --- a/container-images/tcib/base/base.yaml +++ b/container-images/tcib/base/base.yaml @@ -1,4 +1,5 @@ tcib_actions: +- run: if [ -f "/etc/yum.repos.d/ubi.repo" ]; then dnf config-manager --set-disabled "ubi*" && dnf clean all && rm -rf /var/cache/dnf; fi - run: >- dnf install -y crudini && crudini --del /etc/dnf/dnf.conf main override_install_langs &&