Skip to content
This repository was archived by the owner on Jan 22, 2024. It is now read-only.

Commit 4175b0f

Browse files
author
Evan Lezar
committed
Merge branch 'fix-centos8' into 'master'
Fix centos8 builds See merge request nvidia/container-toolkit/nvidia-docker!39
2 parents 614bb9b + 98b9620 commit 4175b0f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docker/Dockerfile.centos

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@ FROM ${BASEIMAGE}
33

44
ARG BASEIMAGE
55
# See https://www.centos.org/centos-linux-eol/
6-
# and https://stackoverflow.com/a/70930049
6+
# and https://stackoverflow.com/a/70930049 for move to vault.centos.org
7+
# and https://serverfault.com/questions/1093922/failing-to-run-yum-update-in-centos-8 for move to vault.epel.cloud
78
RUN [[ "${BASEIMAGE}" != "centos:8" ]] || \
89
( \
910
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-Linux-* && \
10-
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-Linux-* \
11+
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.epel.cloud|g' /etc/yum.repos.d/CentOS-Linux-* \
1112
)
1213

1314
# packaging dependencies

0 commit comments

Comments
 (0)