From 8d58f667c73e3dfb634d1d597ecdd7a3787b3843 Mon Sep 17 00:00:00 2001 From: Hiroshi Hatake Date: Fri, 5 Jul 2024 11:37:23 +0900 Subject: [PATCH] packaging: centos-7: Use vault to retrieve packages Signed-off-by: Hiroshi Hatake --- packaging/distros/centos/Dockerfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packaging/distros/centos/Dockerfile b/packaging/distros/centos/Dockerfile index 0954659f437..2e0042849a5 100644 --- a/packaging/distros/centos/Dockerfile +++ b/packaging/distros/centos/Dockerfile @@ -13,7 +13,9 @@ FROM multiarch/qemu-user-static:x86_64-aarch64 as multiarch-aarch64 FROM centos:7 as centos-7-base # hadolint ignore=DL3033 -RUN yum -y update && \ +RUN sed -i -e "s/^mirrorlist=http:\/\/mirrorlist.centos.org/#mirrorlist=http:\/\/mirrorlist.centos.org/g" /etc/yum.repos.d/CentOS-Base.repo && \ + sed -i -e "s/^#baseurl=http:\/\/mirror.centos.org/baseurl=http:\/\/vault.centos.org/g" /etc/yum.repos.d/CentOS-Base.repo && \ + yum -y update && \ yum install -y rpm-build curl ca-certificates gcc gcc-c++ cmake make bash \ wget unzip systemd-devel wget flex bison \ cyrus-sasl-lib cyrus-sasl-devel openssl openss-libs openssl-devel \ @@ -32,7 +34,9 @@ FROM arm64v8/centos:7 as centos-7.arm64v8-base COPY --from=multiarch-aarch64 /usr/bin/qemu-aarch64-static /usr/bin/qemu-aarch64-static # hadolint ignore=DL3033 -RUN yum -y update && \ +RUN sed -i -e "s/^mirrorlist=http:\/\/mirrorlist.centos.org/#mirrorlist=http:\/\/mirrorlist.centos.org/g" /etc/yum.repos.d/CentOS-Base.repo && \ + sed -i -e "s/^#baseurl=http:\/\/mirror.centos.org/baseurl=http:\/\/vault.centos.org/g" /etc/yum.repos.d/CentOS-Base.repo && \ + yum -y update && \ yum install -y rpm-build curl ca-certificates gcc gcc-c++ cmake make bash \ wget unzip systemd-devel wget flex bison \ cyrus-sasl-lib cyrus-sasl-devel openssl openss-libs openssl-devel \