Skip to content

Commit 032982a

Browse files
author
Evan Lezar
committed
Merge branch 'bump-dependencies' into 'main'
Bump dependencies See merge request nvidia/container-toolkit/container-toolkit!444
2 parents 1fdd0c1 + 96aeb9b commit 032982a

File tree

20 files changed

+700
-171
lines changed

20 files changed

+700
-171
lines changed

build/container/Dockerfile.centos

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,29 @@ ARG CUDA_VERSION
1717
ARG GOLANG_VERSION=x.x.x
1818
ARG VERSION="N/A"
1919

20-
# NOTE: In cases where the libc version is a concern, we would have to use an
21-
# image based on the target OS to build the golang executables here -- especially
22-
# if cgo code is included.
23-
FROM golang:${GOLANG_VERSION} as build
24-
25-
# We override the GOPATH to ensure that the binaries are installed to
26-
# /artifacts/bin
27-
ARG GOPATH=/artifacts
20+
FROM nvidia/cuda:${CUDA_VERSION}-base-${BASE_DIST} as build
21+
22+
RUN yum install -y \
23+
wget make git gcc \
24+
&& \
25+
rm -rf /var/cache/yum/*
26+
27+
ARG GOLANG_VERSION=x.x.x
28+
RUN set -eux; \
29+
\
30+
arch="$(uname -m)"; \
31+
case "${arch##*-}" in \
32+
x86_64 | amd64) ARCH='amd64' ;; \
33+
ppc64el | ppc64le) ARCH='ppc64le' ;; \
34+
aarch64) ARCH='arm64' ;; \
35+
*) echo "unsupported architecture" ; exit 1 ;; \
36+
esac; \
37+
wget -nv -O - https://storage.googleapis.com/golang/go${GOLANG_VERSION}.linux-${ARCH}.tar.gz \
38+
| tar -C /usr/local -xz
39+
40+
41+
ENV GOPATH /go
42+
ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH
2843

2944
WORKDIR /build
3045
COPY . .

build/container/Dockerfile.ubuntu

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,28 @@ ARG CUDA_VERSION
1717
ARG GOLANG_VERSION=x.x.x
1818
ARG VERSION="N/A"
1919

20-
# NOTE: In cases where the libc version is a concern, we would have to use an
21-
# image based on the target OS to build the golang executables here -- especially
22-
# if cgo code is included.
23-
FROM golang:${GOLANG_VERSION} as build
24-
25-
# We override the GOPATH to ensure that the binaries are installed to
26-
# /artifacts/bin
27-
ARG GOPATH=/artifacts
20+
FROM nvidia/cuda:${CUDA_VERSION}-base-${BASE_DIST} as build
21+
22+
RUN apt-get update && \
23+
apt-get install -y wget make git gcc \
24+
&& \
25+
rm -rf /var/lib/apt/lists/*
26+
27+
ARG GOLANG_VERSION=x.x.x
28+
RUN set -eux; \
29+
\
30+
arch="$(uname -m)"; \
31+
case "${arch##*-}" in \
32+
x86_64 | amd64) ARCH='amd64' ;; \
33+
ppc64el | ppc64le) ARCH='ppc64le' ;; \
34+
aarch64) ARCH='arm64' ;; \
35+
*) echo "unsupported architecture" ; exit 1 ;; \
36+
esac; \
37+
wget -nv -O - https://storage.googleapis.com/golang/go${GOLANG_VERSION}.linux-${ARCH}.tar.gz \
38+
| tar -C /usr/local -xz
39+
40+
ENV GOPATH /go
41+
ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH
2842

2943
WORKDIR /build
3044
COPY . .

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.20
55
require (
66
github.com/BurntSushi/toml v1.2.1
77
github.com/NVIDIA/go-nvml v0.12.0-1
8-
github.com/container-orchestrated-devices/container-device-interface v0.5.4-0.20230111111500-5b3b5d81179a
8+
github.com/container-orchestrated-devices/container-device-interface v0.6.0
99
github.com/fsnotify/fsnotify v1.5.4
1010
github.com/opencontainers/runtime-spec v1.1.0-rc.2
1111
github.com/pelletier/go-toml v1.9.4

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ github.com/blang/semver/v4 v4.0.0 h1:1PFHFE6yCCTv8C1TeyNNarDzntLi7wMI5i/pzqYIsAM
77
github.com/blang/semver/v4 v4.0.0/go.mod h1:IbckMUScFkM3pff0VJDNKRiT6TG/YpiHIM2yvyW5YoQ=
88
github.com/container-orchestrated-devices/container-device-interface v0.5.4-0.20230111111500-5b3b5d81179a h1:sP3PcgyIkRlHqfF3Jfpe/7G8kf/qpzG4C8r94y9hLbE=
99
github.com/container-orchestrated-devices/container-device-interface v0.5.4-0.20230111111500-5b3b5d81179a/go.mod h1:xMRa4fJgXzSDFUCURSimOUgoSc+odohvO3uXT9xjqH0=
10+
github.com/container-orchestrated-devices/container-device-interface v0.6.0 h1:aWwcz/Ep0Fd7ZuBjQGjU/jdPloM7ydhMW13h85jZNvk=
11+
github.com/container-orchestrated-devices/container-device-interface v0.6.0/go.mod h1:OQlgtJtDrOxSQ1BWODC8OZK1tzi9W69wek+Jy17ndzo=
1012
github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU=
1113
github.com/cpuguy83/go-md2man/v2 v2.0.2 h1:p1EgwI/C7NhT0JmVkwCD2ZBK8j4aeHQX2pMHHBfMQ6w=
1214
github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=

vendor/github.com/container-orchestrated-devices/container-device-interface/internal/validation/k8s/objectmeta.go

Lines changed: 57 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/container-orchestrated-devices/container-device-interface/internal/validation/k8s/validation.go

Lines changed: 217 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)