Try to stabilize docker build by using https (#11070)
Motivation: At the moment we use http to download rpms, let's switch to https Modifications: Use https for rpms Result: Hopefully more stable docker image builds
This commit is contained in:
parent
b8d843757b
commit
23ff30c40f
@ -1,7 +1,7 @@
|
|||||||
FROM centos:6.10
|
FROM centos:6.10
|
||||||
|
|
||||||
# Update as we need to use the vault now.
|
# Update as we need to use the vault now.
|
||||||
RUN sed -i -e 's/^mirrorlist/#mirrorlist/g' -e 's/^#baseurl=http:\/\/mirror.centos.org\/centos\/$releasever\//baseurl=http:\/\/vault.centos.org\/6.10\//g' /etc/yum.repos.d/CentOS-Base.repo
|
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
|
||||||
|
|
||||||
# install dependencies
|
# install dependencies
|
||||||
RUN yum install -y \
|
RUN yum install -y \
|
||||||
|
Loading…
Reference in New Issue
Block a user