Skip to content

Commit

Permalink
[fix](dockerfile) Switch repos to point to to vault.centos.org becaus…
Browse files Browse the repository at this point in the history
…e CentOS 7 is EOL (#37568)

Fix `Could not resolve host: mirrorlist.centos.org; Unknown error`
  • Loading branch information
morningman authored and dataroaring committed Jul 17, 2024
1 parent 5e32921 commit f1e9d07
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docker/compilation/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@

FROM centos:7 AS builder

# Switch repos to point to to vault.centos.org because CentOS 7 is EOL
RUN sed -i \
-e 's/^mirrorlist/#mirrorlist/' \
-e 's/^#baseurl/baseurl/' \
-e 's/mirror\.centos\.org/vault.centos.org/' \
/etc/yum.repos.d/*.repo

# install epel repo for ccache
RUN yum install epel-release -y && yum install https://packages.endpointdev.com/rhel/7/os/x86_64/endpoint-repo.x86_64.rpm -y && yum clean all && yum makecache

Expand Down

0 comments on commit f1e9d07

Please sign in to comment.