Skip to content

Commit

Permalink
Merge branch 'pin-to-go-1.20.4' into 'main'
Browse files Browse the repository at this point in the history
Pin to go 1.20.4 to reduce glibc dependency

See merge request nvidia/cloud-native/vgpu-device-manager!23
  • Loading branch information
cdesiniotis committed Jul 21, 2023
2 parents 1131453 + 215075e commit 1e3a758
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
20 changes: 19 additions & 1 deletion deployments/container/Dockerfile.ubi8
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,25 @@ ARG CUDA_VERSION
ARG GOLANG_VERSION=x.x.x
ARG VERSION="N/A"

FROM golang:${GOLANG_VERSION} AS build
FROM nvcr.io/nvidia/cuda:${CUDA_VERSION}-base-${BASE_DIST} as build

RUN yum install -y wget make git gcc

ARG GOLANG_VERSION=0.0.0
RUN set -eux; \
\
arch="$(uname -m)"; \
case "${arch##*-}" in \
x86_64 | amd64) ARCH='amd64' ;; \
ppc64el | ppc64le) ARCH='ppc64le' ;; \
aarch64) ARCH='arm64' ;; \
*) echo "unsupported architecture" ; exit 1 ;; \
esac; \
wget -nv -O - https://storage.googleapis.com/golang/go${GOLANG_VERSION}.linux-${ARCH}.tar.gz \
| tar -C /usr/local -xz

ENV GOPATH /go
ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH

WORKDIR /build
COPY . .
Expand Down
2 changes: 1 addition & 1 deletion versions.mk
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ vVERSION := v$(VERSION:v%=%)

CUDA_VERSION := 12.2.0

GOLANG_VERSION := 1.20
GOLANG_VERSION := 1.20.4

0 comments on commit 1e3a758

Please sign in to comment.