diff --git a/deploy/cephcsi/image/Dockerfile b/deploy/cephcsi/image/Dockerfile index 2bf3664b1aa..ae159613910 100644 --- a/deploy/cephcsi/image/Dockerfile +++ b/deploy/cephcsi/image/Dockerfile @@ -4,6 +4,11 @@ ARG BASE_IMAGE FROM ${BASE_IMAGE} as builder +# Since CentOS Stream 8 is EOL, update the config to use vault.centos.org for CentOS Stream 8 +# TODO: remove once https://github.com/ceph/ceph-csi/issues/4659 is fixed. +RUN sed -i 's|^mirrorlist=|#mirrorlist=|g' /etc/yum.repos.d/*.repo && \ + sed -i 's|^#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/*.repo + LABEL stage="build" ARG CSI_IMAGE_NAME=quay.io/cephcsi/cephcsi diff --git a/scripts/Dockerfile.devel b/scripts/Dockerfile.devel index 33afbb8d498..97a12226479 100644 --- a/scripts/Dockerfile.devel +++ b/scripts/Dockerfile.devel @@ -1,6 +1,11 @@ ARG BASE_IMAGE FROM ${BASE_IMAGE} +# Since CentOS Stream 8 is EOL, update the config to use vault.centos.org for CentOS Stream 8 +# TODO: remove once https://github.com/ceph/ceph-csi/issues/4659 is fixed. +RUN sed -i 's|^mirrorlist=|#mirrorlist=|g' /etc/yum.repos.d/*.repo && \ + sed -i 's|^#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/*.repo + ARG GOROOT=/usr/local/go ARG GOARCH