Skip to content
This repository has been archived by the owner on Oct 27, 2023. It is now read-only.

Commit

Permalink
Merge branch 'remove-amazonlinux1' into 'master'
Browse files Browse the repository at this point in the history
Update centos8 mirrors

See merge request nvidia/container-toolkit/container-runtime!72
  • Loading branch information
Evan Lezar committed Feb 1, 2022
2 parents 204af7b + 8f8e5c3 commit 876bafa
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docker/Dockerfile.centos
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
ARG BASEIMAGE
FROM ${BASEIMAGE}

ARG BASEIMAGE
# See https://www.centos.org/centos-linux-eol/
# and https://stackoverflow.com/a/70930049
RUN [[ "${BASEIMAGE}" != "centos:8" ]] || \
( \
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-Linux-* && \
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-Linux-* \
)

RUN yum install -y \
ca-certificates \
wget \
Expand Down

0 comments on commit 876bafa

Please sign in to comment.