Skip to content

Commit 888a600

Browse files
committed
Remove nvidia-ctk installation
Signed-off-by: Evan Lezar <[email protected]>
1 parent a442343 commit 888a600

File tree

5 files changed

+0
-35
lines changed

5 files changed

+0
-35
lines changed

deployments/container/Dockerfile

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,6 @@ ARG VERSION="N/A"
4848
ARG GIT_COMMIT="unknown"
4949
RUN make PREFIX=/artifacts cmds
5050

51-
# Install the nvidia-ctk binary as a go executable
52-
# TODO: Once we can consume a golang API from reconfigure.sh we can remove this.
53-
ARG NVIDIA_CTK_VERSION=main
54-
RUN go install -ldflags "-extldflags=-Wl,-z,lazy -s -w" \
55-
github.com/NVIDIA/nvidia-container-toolkit/cmd/nvidia-ctk@${NVIDIA_CTK_VERSION} \
56-
&& cp ${GOPATH}/bin/nvidia-ctk /artifacts/nvidia-ctk
57-
5851
FROM nvcr.io/nvidia/distroless/go:v3.1.13-dev
5952

6053
USER 0:0
@@ -67,7 +60,6 @@ RUN ln -s /busybox/sh /bin/sh && \
6760

6861
COPY --from=build /artifacts/nvidia-mig-parted /usr/bin/nvidia-mig-parted
6962
COPY --from=build /artifacts/nvidia-mig-manager /usr/bin/nvidia-mig-manager
70-
COPY --from=build /artifacts/nvidia-ctk /usr/bin/nvidia-ctk
7163

7264
ENV NVIDIA_DISABLE_REQUIRE="true"
7365
ENV NVIDIA_VISIBLE_DEVICES=all

deployments/container/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ $(BUILD_TARGETS): build-%: $(ARTIFACTS_ROOT)
6969
--build-arg GOLANG_VERSION="$(GOLANG_VERSION)" \
7070
--build-arg VERSION="$(vVERSION)" \
7171
--build-arg GIT_COMMIT="$(GIT_COMMIT)" \
72-
--build-arg NVIDIA_CTK_VERSION=$(NVIDIA_CTK_VERSION) \
7372
--build-arg GOPROXY="$(GOPROXY)" \
7473
-f $(DOCKERFILE) \
7574
$(CURDIR)

deployments/devel/tools.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,5 @@ package main
2121

2222
// Define the tooling required to build the device plugin.
2323
import (
24-
_ "github.com/NVIDIA/nvidia-container-toolkit/cmd/nvidia-ctk"
2524
_ "github.com/matryer/moq"
2625
)

hack/container-toolkit-version.sh

Lines changed: 0 additions & 23 deletions
This file was deleted.

versions.mk

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,3 @@ BUILDIMAGE_TAG ?= devel-go$(GOLANG_VERSION)
2323
BUILDIMAGE ?= k8s-mig-manager:$(BUILDIMAGE_TAG)
2424

2525
GIT_COMMIT ?= $(shell git describe --match="" --dirty --long --always --abbrev=40 2> /dev/null || echo "")
26-
27-
NVIDIA_CTK_VERSION := $(shell ./hack/container-toolkit-version.sh)

0 commit comments

Comments
 (0)