Skip to content

Commit c75272e

Browse files
committed
[no-relnote] Remove CUDA repo references
Signed-off-by: Evan Lezar <[email protected]>
1 parent bc7ed44 commit c75272e

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

deployments/container/Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ ARG VERSION="N/A"
1818

1919
FROM nvcr.io/nvidia/cuda:12.9.1-base-ubi9 AS build
2020

21+
RUN rm -f /etc/yum.repos.d/cuda.repo && rm -f /etc/ld.so.conf.d/nvidia.conf
22+
2123
RUN dnf install -y \
2224
wget make git gcc \
2325
&& \
@@ -86,6 +88,8 @@ COPY LICENSE /licenses/
8688
# The debpackages stage is used to extract the contents of deb packages.
8789
FROM nvcr.io/nvidia/cuda:12.9.1-base-ubuntu20.04 AS debpackages
8890

91+
RUN rm -f /etc/apt/sources.list.d/cuda.list
92+
8993
ARG TARGETARCH
9094
ARG PACKAGE_DIST_DEB=ubuntu18.04
9195

@@ -104,6 +108,9 @@ RUN set -eux; \
104108

105109
# The rpmpackages stage is used to extract the contents of the rpm packages.
106110
FROM nvcr.io/nvidia/cuda:12.9.1-base-ubi9 AS rpmpackages
111+
112+
RUN rm -f /etc/yum.repos.d/cuda.repo && rm -f /etc/ld.so.conf.d/nvidia.conf
113+
107114
RUN dnf install -y cpio
108115

109116
ARG TARGETARCH

tests/e2e/nvidia-container-toolkit_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ var _ = Describe("docker", Ordered, ContinueOnFailure, func() {
399399
Expect(err).ToNot(HaveOccurred())
400400

401401
_, _, err = runner.Run(`docker build -t firmware-test \
402-
--build-arg RM_VERSION="` + hostDriverVersion + `" \
402+
--build-arg RM_VERSION="$(basename $(ls -d /lib/firmware/nvidia/*.*))" \
403403
--build-arg CURRENT_DIR="` + outputDir + `" \
404404
- <<EOF
405405
FROM ubuntu

0 commit comments

Comments
 (0)