mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-22 08:18:32 +00:00
Use archived package repo for centos:stream8
Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
parent
86b272cc7b
commit
024dd3126d
@ -17,6 +17,15 @@
|
||||
ARG BASEIMAGE
|
||||
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" \
|
||||
-e "s|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g" \
|
||||
/etc/yum.repos.d/CentOS-Stream-*; \
|
||||
fi
|
||||
|
||||
RUN yum install -y \
|
||||
ca-certificates \
|
||||
gcc \
|
||||
|
Loading…
Reference in New Issue
Block a user