Skip to content

Commit

Permalink
fix: stop using mirror.centos.org repo (#1145)
Browse files Browse the repository at this point in the history
* fix: stop using mirror.centos.org repo in ci-openshift Dockerfile
  • Loading branch information
artaleks9 authored Jul 10, 2024
1 parent 5822379 commit a288cf3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .ci/openshift-ci/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand Down

0 comments on commit a288cf3

Please sign in to comment.