File tree Expand file tree Collapse file tree 3 files changed +51
-7
lines changed Expand file tree Collapse file tree 3 files changed +51
-7
lines changed Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
- ARG GOLANG_VERSION=1.20.1
15
+ ARG GOLANG_VERSION=1.20.5
16
16
ARG CUDA_IMAGE=cuda
17
- ARG CUDA_VERSION=11.6.1
17
+ ARG CUDA_VERSION=12.2.0
18
18
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
20
42
21
43
WORKDIR /build
22
44
COPY . .
Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
- ARG GOLANG_VERSION=1.20.1
15
+ ARG GOLANG_VERSION=1.20.5
16
16
ARG CUDA_IMAGE=cuda
17
- ARG CUDA_VERSION=11.6.1
17
+ ARG CUDA_VERSION=12.2.0
18
18
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
20
41
21
42
WORKDIR /build
22
43
COPY . .
23
44
24
45
RUN mkdir /artifacts
25
46
ARG VERSION="N/A"
47
+ ARG GIT_COMMIT="unknown"
26
48
RUN make PREFIX=/artifacts cmds
27
49
28
50
FROM nvidia/${CUDA_IMAGE}:${CUDA_VERSION}-base-${BASE_DIST}
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ VERSION ?= v0.14.1
19
19
# vVERSION represents the version with a guaranteed v-prefix
20
20
vVERSION := v$(VERSION:v%=% )
21
21
22
- CUDA_VERSION ?= 12.1.1
22
+ CUDA_VERSION ?= 12.2.0
23
23
GOLANG_VERSION ?= 1.20.5
24
24
25
25
GIT_COMMIT ?= $(shell git describe --match="" --dirty --long --always --abbrev=40 2> /dev/null || echo "")
You can’t perform that action at this time.
0 commit comments