Skip to content

Commit 563f8c2

Browse files
Evan Lezarelezar
authored andcommitted
Merge branch 'bump-cuda-version' into 'main'
Bump CUDA version to 12.2.0 See merge request nvidia/kubernetes/device-plugin!303
1 parent fa784b5 commit 563f8c2

File tree

3 files changed

+51
-7
lines changed

3 files changed

+51
-7
lines changed

deployments/container/Dockerfile.ubi8

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,33 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
ARG GOLANG_VERSION=1.20.1
15+
ARG GOLANG_VERSION=1.20.5
1616
ARG CUDA_IMAGE=cuda
17-
ARG CUDA_VERSION=11.6.1
17+
ARG CUDA_VERSION=12.2.0
1818
ARG BASE_DIST=ubi8
19-
FROM golang:${GOLANG_VERSION} as build
19+
FROM nvidia/cuda:${CUDA_VERSION}-base-${BASE_DIST} as build
20+
21+
RUN yum install -y \
22+
wget make git gcc \
23+
&& \
24+
rm -rf /var/cache/yum/*
25+
26+
ARG GOLANG_VERSION=x.x.x
27+
RUN set -eux; \
28+
\
29+
arch="$(uname -m)"; \
30+
case "${arch##*-}" in \
31+
x86_64 | amd64) ARCH='amd64' ;; \
32+
ppc64el | ppc64le) ARCH='ppc64le' ;; \
33+
aarch64) ARCH='arm64' ;; \
34+
*) echo "unsupported architecture" ; exit 1 ;; \
35+
esac; \
36+
wget -nv -O - https://storage.googleapis.com/golang/go${GOLANG_VERSION}.linux-${ARCH}.tar.gz \
37+
| tar -C /usr/local -xz
38+
39+
40+
ENV GOPATH /go
41+
ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH
2042

2143
WORKDIR /build
2244
COPY . .

deployments/container/Dockerfile.ubuntu

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,39 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
ARG GOLANG_VERSION=1.20.1
15+
ARG GOLANG_VERSION=1.20.5
1616
ARG CUDA_IMAGE=cuda
17-
ARG CUDA_VERSION=11.6.1
17+
ARG CUDA_VERSION=12.2.0
1818
ARG BASE_DIST=ubuntu20.04
19-
FROM golang:${GOLANG_VERSION} as build
19+
FROM nvidia/cuda:${CUDA_VERSION}-base-${BASE_DIST} as build
20+
21+
RUN apt-get update && \
22+
apt-get install -y wget make git gcc \
23+
&& \
24+
rm -rf /var/lib/apt/lists/*
25+
26+
ARG GOLANG_VERSION=x.x.x
27+
RUN set -eux; \
28+
\
29+
arch="$(uname -m)"; \
30+
case "${arch##*-}" in \
31+
x86_64 | amd64) ARCH='amd64' ;; \
32+
ppc64el | ppc64le) ARCH='ppc64le' ;; \
33+
aarch64) ARCH='arm64' ;; \
34+
*) echo "unsupported architecture" ; exit 1 ;; \
35+
esac; \
36+
wget -nv -O - https://storage.googleapis.com/golang/go${GOLANG_VERSION}.linux-${ARCH}.tar.gz \
37+
| tar -C /usr/local -xz
38+
39+
ENV GOPATH /go
40+
ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH
2041

2142
WORKDIR /build
2243
COPY . .
2344

2445
RUN mkdir /artifacts
2546
ARG VERSION="N/A"
47+
ARG GIT_COMMIT="unknown"
2648
RUN make PREFIX=/artifacts cmds
2749

2850
FROM nvidia/${CUDA_IMAGE}:${CUDA_VERSION}-base-${BASE_DIST}

versions.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ VERSION ?= v0.14.1
1919
# vVERSION represents the version with a guaranteed v-prefix
2020
vVERSION := v$(VERSION:v%=%)
2121

22-
CUDA_VERSION ?= 12.1.1
22+
CUDA_VERSION ?= 12.2.0
2323
GOLANG_VERSION ?= 1.20.5
2424

2525
GIT_COMMIT ?= $(shell git describe --match="" --dirty --long --always --abbrev=40 2> /dev/null || echo "")

0 commit comments

Comments
 (0)