[cpp-linbuild] 02/02: Remove no-longer-needed YUM repos from builder images

Codeberg noreply at shibboleth.net
Fri Mar 6 16:57:01 UTC 2026


This is an automated email from the git hooks/post-receive script.

codeberg pushed a commit to branch main
in repository cpp-linbuild.

View the commit online:
https://codeberg.org/Shibboleth/cpp-linbuild/commit/b8c04292ff87c822e84b252fe1d0dd395f7a64c3

commit b8c04292ff87c822e84b252fe1d0dd395f7a64c3
Author: John W. O'Brien <john at saltant.com>
AuthorDate: Fri Mar 6 16:34:14 2026 +0000

    Remove no-longer-needed YUM repos from builder images
---
 os/centos8/image/Dockerfile      | 3 +--
 os/rhel10/image/Dockerfile       | 5 +----
 os/rhel7/image/Dockerfile        | 5 +----
 os/rhel8/image/Dockerfile        | 5 +----
 os/rhel9/image/Dockerfile        | 5 +----
 os/rockylinux10/image/Dockerfile | 2 +-
 os/rockylinux8/image/Dockerfile  | 3 +--
 os/rockylinux9/image/Dockerfile  | 2 +-
 8 files changed, 8 insertions(+), 22 deletions(-)

diff --git a/os/centos8/image/Dockerfile b/os/centos8/image/Dockerfile
index 74335ee..7124444 100644
--- a/os/centos8/image/Dockerfile
+++ b/os/centos8/image/Dockerfile
@@ -2,8 +2,7 @@ FROM centos:8.4.2105
 
 COPY *.repo /etc/yum.repos.d/
 
-RUN sed -i "s/enabled=0/enabled=1/" /etc/yum.repos.d/CentOS-Linux-PowerTools.repo \
-    && sed -i \
+RUN sed -i \
         -e "s/^mirrorlist/#mirrorlist/" \
         -e "s|^#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|" \
         /etc/yum.repos.d/CentOS-Linux-*.repo \
diff --git a/os/rhel10/image/Dockerfile b/os/rhel10/image/Dockerfile
index 704f196..e9f6d7f 100644
--- a/os/rhel10/image/Dockerfile
+++ b/os/rhel10/image/Dockerfile
@@ -2,10 +2,7 @@ FROM registry.access.redhat.com/ubi10/ubi:10.1-1772441712
 
 COPY *.repo /etc/yum.repos.d/
 
-RUN dnf \
-        config-manager \
-        --enable codeready-builder-for-rhel-10-$(arch)-rpms \
-    && dnf -y update \
+RUN dnf -y update \
     && dnf -y install \
         autoconf \
         automake \
diff --git a/os/rhel7/image/Dockerfile b/os/rhel7/image/Dockerfile
index eaeb827..393117d 100644
--- a/os/rhel7/image/Dockerfile
+++ b/os/rhel7/image/Dockerfile
@@ -2,10 +2,7 @@ FROM registry.access.redhat.com/ubi7/ubi:7.9-1445
 
 COPY *.repo /etc/yum.repos.d/
 
-RUN yum-config-manager \
-        --enable rhel-7-server-optional-rpms \
-        --enable rhel-server-rhscl-7-rpms \
-    && yum -y update \
+RUN yum -y update \
     && yum -y install \
         autoconf \
         automake \
diff --git a/os/rhel8/image/Dockerfile b/os/rhel8/image/Dockerfile
index 243ea69..07c9e57 100644
--- a/os/rhel8/image/Dockerfile
+++ b/os/rhel8/image/Dockerfile
@@ -2,10 +2,7 @@ FROM registry.access.redhat.com/ubi8/ubi:8.10-1772639305
 
 COPY *.repo /etc/yum.repos.d/
 
-RUN dnf \
-        config-manager \
-        --enable codeready-builder-for-rhel-8-$(arch)-rpms \
-    && dnf -y update \
+RUN dnf -y update \
     && dnf -y install \
         autoconf \
         automake \
diff --git a/os/rhel9/image/Dockerfile b/os/rhel9/image/Dockerfile
index 0b164e2..f1347cb 100644
--- a/os/rhel9/image/Dockerfile
+++ b/os/rhel9/image/Dockerfile
@@ -2,10 +2,7 @@ FROM registry.access.redhat.com/ubi9/ubi:9.7-1771346757
 
 COPY *.repo /etc/yum.repos.d/
 
-RUN dnf \
-        config-manager \
-        --enable codeready-builder-for-rhel-9-$(arch)-rpms \
-    && dnf -y update \
+RUN  dnf -y update \
     && dnf -y install \
         autoconf \
         automake \
diff --git a/os/rockylinux10/image/Dockerfile b/os/rockylinux10/image/Dockerfile
index adeedb7..1fc1c0b 100644
--- a/os/rockylinux10/image/Dockerfile
+++ b/os/rockylinux10/image/Dockerfile
@@ -3,7 +3,7 @@ FROM docker.io/rockylinux/rockylinux:10.1.20251123
 COPY *.repo /etc/yum.repos.d/
 
 RUN yum -y update \
-    && yum -y install --enablerepo crb \
+    && yum -y install \
         autoconf \
         automake \
         boost-devel \
diff --git a/os/rockylinux8/image/Dockerfile b/os/rockylinux8/image/Dockerfile
index 8fa34e0..1354500 100644
--- a/os/rockylinux8/image/Dockerfile
+++ b/os/rockylinux8/image/Dockerfile
@@ -2,8 +2,7 @@ FROM docker.io/rockylinux/rockylinux:8.10.20240528
 
 COPY *.repo /etc/yum.repos.d/
 
-RUN sed -i "s/enabled=0/enabled=1/" /etc/yum.repos.d/Rocky-PowerTools.repo \
-    && yum -y update \
+RUN yum -y update \
     && yum -y install \
         autoconf \
         automake \
diff --git a/os/rockylinux9/image/Dockerfile b/os/rockylinux9/image/Dockerfile
index f353972..ebce8e7 100644
--- a/os/rockylinux9/image/Dockerfile
+++ b/os/rockylinux9/image/Dockerfile
@@ -3,7 +3,7 @@ FROM docker.io/rockylinux/rockylinux:9.7.20251123
 COPY *.repo /etc/yum.repos.d/
 
 RUN yum -y update \
-    && yum -y install --enablerepo crb \
+    && yum -y install \
         autoconf \
         automake \
         boost-devel \

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list