Skip to content

Commit 28fcf27

Browse files
authored
Try stabilising build with CERN CentOS mirror (netty#12110)
Motivation: Recently, our builds have been failing a lot with `PYCURL ERROR 7`, where the repository metadata fails to download. It seems like the vault.centos.org server(s) are sometimes having trouble keeping up with their load. In my local testing, the mirror site hosted by CERN seemed much more responsive. Modification: Switch to the CERN mirror of vault.centos.org. Result: Hopefully we now have fewer builds fail because `yum` can't download repository metadata or download packages.
1 parent dc8bb40 commit 28fcf27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker/Dockerfile.centos6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM centos:6.10
22

33
# Update as we need to use the vault now.
4-
RUN sed -i -e 's/^mirrorlist/#mirrorlist/g' -e 's/^#baseurl=http:\/\/mirror.centos.org\/centos\/$releasever\//baseurl=https:\/\/vault.centos.org\/6.10\//g' /etc/yum.repos.d/CentOS-Base.repo
4+
RUN sed -i -e 's/^mirrorlist/#mirrorlist/g' -e 's/^#baseurl=http:\/\/mirror.centos.org\/centos\/$releasever\//baseurl=https:\/\/linuxsoft.cern.ch\/centos-vault\/\/6.10\//g' /etc/yum.repos.d/CentOS-Base.repo
55

66
# install dependencies
77
RUN yum install -y \

0 commit comments

Comments
 (0)