Skip to content

Commit

Permalink
Merge pull request #82 from shivamerla/fix_glibc_mismatch
Browse files Browse the repository at this point in the history
Fix errors due to mismatch of GLIBC version caused from Go 1.20+
  • Loading branch information
rthallisey authored Nov 10, 2023
2 parents 1b20916 + 60463d8 commit 4d6bce1
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,16 @@ ARG CUDA_IMAGE=cuda
ARG CUDA_VERSION=12.2.2
ARG BASE_DIST=ubi8

FROM golang:1.20 AS builder
FROM nvcr.io/nvidia/${CUDA_IMAGE}:${CUDA_VERSION}-base-${BASE_DIST} as builder

RUN yum install -y wget make gcc

ARG GOLANG_VERSION=1.20.4
RUN wget -nv -O - https://storage.googleapis.com/golang/go${GOLANG_VERSION}.linux-amd64.tar.gz \
| tar -C /usr/local -xz

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

ENV GOOS=linux\
GOARCH=amd64
Expand Down Expand Up @@ -59,4 +68,3 @@ COPY --from=builder /go/src/kubevirt-gpu-device-plugin/utils/pci.ids /usr/pci.id
RUN yum update -y

CMD ["nvidia-kubevirt-gpu-device-plugin"]

0 comments on commit 4d6bce1

Please sign in to comment.