From edc8f343d6b5fb02353c35a63b031d26f165f09e Mon Sep 17 00:00:00 2001 From: Scott Little Date: Thu, 3 Feb 2022 11:34:02 -0500 Subject: [PATCH] fix yum urls for vaulted CentOS 8 CentOS 8 has been vaulted. We need to fix the yum urls to continue to use it. A longer term fix is to migrate to a new/different base image, but is outside the scope of this fix which only addresses broken builds. Partial-Bug: 1995630 Signed-off-by: Scott Little Change-Id: Id8b32ee27a65f74c616b07e37f8f5f2914176264 (cherry picked from commit 9ac9f7878b5d9a9ddf88e5c1fb824bc5e57911c0) Signed-off-by: Davlet Panech --- stx-snmp-helm/centos/docker/stx-fm-trap-subagent/Dockerfile | 2 ++ stx-snmp-helm/centos/docker/stx-snmp/Dockerfile | 2 ++ 2 files changed, 4 insertions(+) diff --git a/stx-snmp-helm/centos/docker/stx-fm-trap-subagent/Dockerfile b/stx-snmp-helm/centos/docker/stx-fm-trap-subagent/Dockerfile index 26df7ab..0d6195e 100644 --- a/stx-snmp-helm/centos/docker/stx-fm-trap-subagent/Dockerfile +++ b/stx-snmp-helm/centos/docker/stx-fm-trap-subagent/Dockerfile @@ -1,4 +1,5 @@ FROM centos:8 AS builder +RUN sed -i -e 's%^mirrorlist=%#mirrorlist=%' -e 's%^#baseurl=http://mirror%baseurl=https://vault%' /etc/yum.repos.d/*repo RUN yum -y update && yum upgrade RUN yum -y install\ net-snmp-libs \ @@ -13,6 +14,7 @@ RUN make FROM centos:8 +RUN sed -i -e 's%^mirrorlist=%#mirrorlist=%' -e 's%^#baseurl=http://mirror%baseurl=https://vault%' /etc/yum.repos.d/*repo RUN yum -y update && yum upgrade RUN yum -y install\ net-snmp \ diff --git a/stx-snmp-helm/centos/docker/stx-snmp/Dockerfile b/stx-snmp-helm/centos/docker/stx-snmp/Dockerfile index 97ebf99..ed94b49 100755 --- a/stx-snmp-helm/centos/docker/stx-snmp/Dockerfile +++ b/stx-snmp-helm/centos/docker/stx-snmp/Dockerfile @@ -1,4 +1,5 @@ FROM centos:8 AS builder +RUN sed -i -e 's%^mirrorlist=%#mirrorlist=%' -e 's%^#baseurl=http://mirror%baseurl=https://vault%' /etc/yum.repos.d/*repo RUN yum -y update RUN yum -y upgrade RUN yum -y install \ @@ -14,6 +15,7 @@ WORKDIR /home/src/ RUN make -f Makefile FROM centos:8 +RUN sed -i -e 's%^mirrorlist=%#mirrorlist=%' -e 's%^#baseurl=http://mirror%baseurl=https://vault%' /etc/yum.repos.d/*repo RUN yum -y update RUN yum -y upgrade RUN yum -y install\