mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-22 08:18:32 +00:00
Merge pull request #575 from elezar/fix-centos7-builds
Fix centos7 builds
This commit is contained in:
commit
b093d6a8b3
2
.gitmodules
vendored
2
.gitmodules
vendored
@ -1,4 +1,4 @@
|
|||||||
[submodule "third_party/libnvidia-container"]
|
[submodule "third_party/libnvidia-container"]
|
||||||
path = third_party/libnvidia-container
|
path = third_party/libnvidia-container
|
||||||
url = https://github.com/NVIDIA/libnvidia-container.git
|
url = https://github.com/NVIDIA/libnvidia-container.git
|
||||||
branch = main
|
branch = release-1.15
|
||||||
|
@ -20,11 +20,9 @@ FROM ${BASEIMAGE}
|
|||||||
# centos:stream8 is EOL.
|
# centos:stream8 is EOL.
|
||||||
# We switch to the vault repositories for this base image.
|
# We switch to the vault repositories for this base image.
|
||||||
ARG BASEIMAGE
|
ARG BASEIMAGE
|
||||||
RUN if [ "${BASEIMAGE}" = "quay.io/centos/centos:stream8" ]; then \
|
RUN sed -i -e "s|mirrorlist=|#mirrorlist=|g" \
|
||||||
sed -i -e "s|mirrorlist=|#mirrorlist=|g" \
|
-e "s|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g" \
|
||||||
-e "s|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g" \
|
/etc/yum.repos.d/CentOS-*
|
||||||
/etc/yum.repos.d/CentOS-Stream-*; \
|
|
||||||
fi
|
|
||||||
|
|
||||||
RUN yum install -y \
|
RUN yum install -y \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
|
2
third_party/libnvidia-container
vendored
2
third_party/libnvidia-container
vendored
@ -1 +1 @@
|
|||||||
Subproject commit e729d79b29e64871425796e44ef06c505c6d6762
|
Subproject commit 24b3f92f9dd8cfcb9b29d27db64018be3c21950c
|
Loading…
Reference in New Issue
Block a user