File tree 4 files changed +14
-14
lines changed
4 files changed +14
-14
lines changed File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change @@ -42,11 +42,10 @@ ENV PATH=$GOPATH/bin:/usr/local/go/bin:$PATH
42
42
WORKDIR /build
43
43
COPY . .
44
44
45
- # NOTE: Until the config utilities are properly integrated into the
46
- # nvidia-container-toolkit repository, these are built from the `tools` folder
47
- # and not `cmd`.
48
- RUN GOPATH=/artifacts go install -ldflags="-s -w -X 'main.Version=${VERSION}'" ./tools/...
49
-
45
+ RUN mkdir /artifacts
46
+ ARG VERSION="N/A"
47
+ ARG GIT_COMMIT="unknown"
48
+ RUN make PREFIX=/artifacts cmd-nvidia-ctk-installer
50
49
51
50
FROM nvidia/cuda:12.6.3-base-ubi8
52
51
@@ -72,7 +71,8 @@ RUN PACKAGE_ARCH=${PACKAGE_ARCH/amd64/x86_64} && PACKAGE_ARCH=${PACKAGE_ARCH/arm
72
71
73
72
WORKDIR /work
74
73
75
- COPY --from=build /artifacts/bin /work
74
+ COPY --from=build /artifacts/nvidia-ctk-installer /work/nvidia-ctk-installer
75
+ RUN ln -s nvidia-ctk-installer nvidia-toolkit
76
76
77
77
ENV PATH=/work:$PATH
78
78
@@ -87,4 +87,4 @@ LABEL description="See summary"
87
87
88
88
RUN mkdir /licenses && mv /NGC-DL-CONTAINER-LICENSE /licenses/NGC-DL-CONTAINER-LICENSE
89
89
90
- ENTRYPOINT ["/work/nvidia-toolkit "]
90
+ ENTRYPOINT ["/work/nvidia-ctk-installer "]
Original file line number Diff line number Diff line change @@ -41,11 +41,10 @@ ENV PATH=$GOPATH/bin:/usr/local/go/bin:$PATH
41
41
WORKDIR /build
42
42
COPY . .
43
43
44
- # NOTE: Until the config utilities are properly integrated into the
45
- # nvidia-container-toolkit repository, these are built from the `tools` folder
46
- # and not `cmd`.
47
- RUN GOPATH=/artifacts go install -ldflags="-s -w -X 'main.Version=${VERSION}'" ./tools/...
48
-
44
+ RUN mkdir /artifacts
45
+ ARG VERSION="N/A"
46
+ ARG GIT_COMMIT="unknown"
47
+ RUN make PREFIX=/artifacts cmd-nvidia-ctk-installer
49
48
50
49
FROM nvcr.io/nvidia/cuda:12.6.3-base-ubuntu20.04
51
50
@@ -80,7 +79,8 @@ RUN dpkg -i \
80
79
81
80
WORKDIR /work
82
81
83
- COPY --from=build /artifacts/bin /work/
82
+ COPY --from=build /artifacts/nvidia-ctk-installer /work/nvidia-ctk-installer
83
+ RUN ln -s nvidia-ctk-installer nvidia-toolkit
84
84
85
85
ENV PATH=/work:$PATH
86
86
@@ -95,4 +95,4 @@ LABEL description="See summary"
95
95
96
96
RUN mkdir /licenses && mv /NGC-DL-CONTAINER-LICENSE /licenses/NGC-DL-CONTAINER-LICENSE
97
97
98
- ENTRYPOINT ["/work/nvidia-toolkit "]
98
+ ENTRYPOINT ["/work/nvidia-ctk-installer "]
You can’t perform that action at this time.
0 commit comments