Skip to content

Commit 22b9702

Browse files
authored
Merge pull request #417 from NVIDIA/ubuntu-vanilla-base
[ubuntu24.04] replace cuda base image in favour of upstream ubuntu image
2 parents b577c14 + 29e9ab1 commit 22b9702

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

ubuntu24.04/Dockerfile

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
FROM nvcr.io/nvidia/cuda:13.0.0-base-ubuntu24.04 as build
1+
ARG BASE_IMAGE=ubuntu:noble-20250716
2+
3+
FROM ${BASE_IMAGE} as build
24

35
ARG TARGETARCH
46
ARG GOLANG_VERSION
@@ -34,7 +36,7 @@ RUN git clone https://github.com/NVIDIA/gpu-driver-container driver && \
3436
go build -o vgpu-util && \
3537
mv vgpu-util /work
3638

37-
FROM nvcr.io/nvidia/cuda:13.0.0-base-ubuntu24.04
39+
FROM ${BASE_IMAGE}
3840

3941
SHELL ["/bin/bash", "-c"]
4042

@@ -88,10 +90,4 @@ RUN if [ -n "${CVE_UPDATES}" ]; then \
8890
rm -rf /var/lib/apt/lists/*; \
8991
fi
9092

91-
# Remove cuda repository to avoid GPG errors
92-
RUN rm -f /etc/apt/sources.list.d/cuda*
93-
94-
# Add NGC DL license from the CUDA image
95-
RUN mkdir /licenses && mv /NGC-DL-CONTAINER-LICENSE /licenses/NGC-DL-CONTAINER-LICENSE
96-
9793
ENTRYPOINT ["nvidia-driver", "init"]

ubuntu24.04/install.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ dep_install () {
1717
curl \
1818
kmod \
1919
file \
20+
gnupg \
2021
libelf-dev \
2122
libglvnd-dev \
2223
pkg-config && \
@@ -29,17 +30,14 @@ dep_install () {
2930
curl \
3031
kmod \
3132
file \
33+
gnupg \
3234
libelf-dev \
3335
libglvnd-dev && \
3436
rm -rf /var/lib/apt/lists/*
3537
fi
3638
}
3739

3840
setup_cuda_repo() {
39-
# Remove any existing CUDA GPG keys that are unconditionally trusted by apt
40-
apt-key del 3bf863cc
41-
rm /etc/apt/sources.list.d/cuda.list
42-
4341
# Fetch public CUDA GPG key and configure apt to only use this key when downloading CUDA packages
4442
OS_ARCH=${TARGETARCH/amd64/x86_64} && OS_ARCH=${OS_ARCH/arm64/sbsa};
4543
curl -fSsL "https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/${OS_ARCH}/cuda-keyring_1.1-1_all.deb" -o cuda-keyring_1.1-1_all.deb

0 commit comments

Comments
 (0)