From a288cf38e3e378ed61df78638e9000c3b7df4281 Mon Sep 17 00:00:00 2001 From: Shmaraiev Oleksandr Date: Wed, 10 Jul 2024 11:44:26 +0300 Subject: [PATCH] fix: stop using mirror.centos.org repo (#1145) * fix: stop using mirror.centos.org repo in ci-openshift Dockerfile --- .ci/openshift-ci/Dockerfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.ci/openshift-ci/Dockerfile b/.ci/openshift-ci/Dockerfile index 2976bec48..956bafbe2 100644 --- a/.ci/openshift-ci/Dockerfile +++ b/.ci/openshift-ci/Dockerfile @@ -9,10 +9,16 @@ # # Note: if we used a UBI image we could keep this current with # https://github.com/eclipse-che/che-release/blob/main/.github/workflows/update-base-images.yml -FROM registry.ci.openshift.org/openshift/release:golang-1.18 +FROM registry.ci.openshift.org/openshift/release:golang-1.20 SHELL ["/bin/bash", "-c"] +# Temporary workaround since mirror.centos.org is down and can be replaced with vault.centos.org +RUN sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo && \ + sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo && \ + sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo + + # Install yq, kubectl, chectl cli. RUN yum install --assumeyes -d1 python3-pip httpd-tools nodejs && \ pip3 install --upgrade setuptools && \