mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-24 21:14:00 +00:00
[no-relnote] Use centos:7 vault repos for builds
Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
parent
770eb72ee4
commit
4cb817ce92
@ -20,11 +20,9 @@ FROM ${BASEIMAGE}
|
||||
# centos:stream8 is EOL.
|
||||
# We switch to the vault repositories for this base image.
|
||||
ARG BASEIMAGE
|
||||
RUN if [ "${BASEIMAGE}" = "quay.io/centos/centos:stream8" ]; then \
|
||||
sed -i -e "s|mirrorlist=|#mirrorlist=|g" \
|
||||
RUN sed -i -e "s|mirrorlist=|#mirrorlist=|g" \
|
||||
-e "s|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g" \
|
||||
/etc/yum.repos.d/CentOS-Stream-*; \
|
||||
fi
|
||||
/etc/yum.repos.d/CentOS-*
|
||||
|
||||
RUN yum install -y \
|
||||
ca-certificates \
|
||||
|
Loading…
Reference in New Issue
Block a user