mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-25 21:39:10 +00:00
Update centos:8 mirrors for release tests
Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
parent
2c0a66c08c
commit
2ea632a861
@ -1,4 +1,14 @@
|
|||||||
FROM centos:8
|
ARG BASEIMAGE=centos:8
|
||||||
|
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 \
|
RUN yum install -y \
|
||||||
yum-utils \
|
yum-utils \
|
||||||
|
Loading…
Reference in New Issue
Block a user