mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-22 08:18:32 +00:00
Fix centos8 test image
Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
parent
4dc1451c49
commit
64b2b50470
@ -1,16 +1,6 @@
|
|||||||
ARG BASEIMAGE=centos:8
|
ARG BASEIMAGE=quay.io/centos/centos:stream8
|
||||||
FROM ${BASEIMAGE}
|
FROM ${BASEIMAGE}
|
||||||
|
|
||||||
ARG BASEIMAGE
|
|
||||||
# See https://www.centos.org/centos-linux-eol/
|
|
||||||
# and https://stackoverflow.com/a/70930049 for move to vault.centos.org
|
|
||||||
# and https://serverfault.com/questions/1093922/failing-to-run-yum-update-in-centos-8 for move to vault.epel.cloud
|
|
||||||
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.epel.cloud|g' /etc/yum.repos.d/CentOS-Linux-* \
|
|
||||||
)
|
|
||||||
|
|
||||||
RUN yum install -y \
|
RUN yum install -y \
|
||||||
yum-utils \
|
yum-utils \
|
||||||
ruby-devel \
|
ruby-devel \
|
||||||
|
Loading…
Reference in New Issue
Block a user