mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-22 08:18:32 +00:00
Fix centos8 builds
Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
parent
97762ce5f9
commit
ea4013fcd5
@ -44,11 +44,12 @@ FROM nvidia/cuda:${CUDA_VERSION}-base-${BASE_DIST}
|
|||||||
|
|
||||||
ARG BASE_DIST
|
ARG BASE_DIST
|
||||||
# See https://www.centos.org/centos-linux-eol/
|
# See https://www.centos.org/centos-linux-eol/
|
||||||
# and https://stackoverflow.com/a/70930049
|
# 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 [[ "${BASE_DIST}" != "centos8" ]] || \
|
RUN [[ "${BASE_DIST}" != "centos8" ]] || \
|
||||||
( \
|
( \
|
||||||
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-Linux-* && \
|
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-* \
|
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.epel.cloud|g' /etc/yum.repos.d/CentOS-Linux-* \
|
||||||
)
|
)
|
||||||
|
|
||||||
ENV NVIDIA_DISABLE_REQUIRE="true"
|
ENV NVIDIA_DISABLE_REQUIRE="true"
|
||||||
|
@ -3,11 +3,12 @@ FROM ${BASEIMAGE}
|
|||||||
|
|
||||||
ARG BASEIMAGE
|
ARG BASEIMAGE
|
||||||
# See https://www.centos.org/centos-linux-eol/
|
# See https://www.centos.org/centos-linux-eol/
|
||||||
# and https://stackoverflow.com/a/70930049
|
# 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" ]] || \
|
RUN [[ "${BASEIMAGE}" != "centos:8" ]] || \
|
||||||
( \
|
( \
|
||||||
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-Linux-* && \
|
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-* \
|
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 \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
|
@ -3,11 +3,12 @@ FROM ${BASEIMAGE}
|
|||||||
|
|
||||||
ARG BASEIMAGE
|
ARG BASEIMAGE
|
||||||
# See https://www.centos.org/centos-linux-eol/
|
# See https://www.centos.org/centos-linux-eol/
|
||||||
# and https://stackoverflow.com/a/70930049
|
# 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" ]] || \
|
RUN [[ "${BASEIMAGE}" != "centos:8" ]] || \
|
||||||
( \
|
( \
|
||||||
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-Linux-* && \
|
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-* \
|
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 \
|
||||||
|
Loading…
Reference in New Issue
Block a user