This is an automated email from the ASF dual-hosted git repository. morningman pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push: new 4a4bcc6c14f [fix](dockerfile) Switch repos to point to to vault.centos.org because CentOS 7 is EOL (#37568) 4a4bcc6c14f is described below commit 4a4bcc6c14fed58659f2c34aff8887b9b4aeca2e Author: Mingyu Chen <morning...@163.com> AuthorDate: Fri Jul 12 14:16:48 2024 +0800 [fix](dockerfile) Switch repos to point to to vault.centos.org because CentOS 7 is EOL (#37568) Fix `Could not resolve host: mirrorlist.centos.org; Unknown error` --- docker/compilation/Dockerfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docker/compilation/Dockerfile b/docker/compilation/Dockerfile index 6b25dc2c3ff..4290291c1da 100644 --- a/docker/compilation/Dockerfile +++ b/docker/compilation/Dockerfile @@ -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 --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org