Skip to content

Commit

Permalink
Upgrade the golang version to 1.22.3 (#7208)
Browse files Browse the repository at this point in the history
* Upgrade the golang version to 1.22.3

* Move to recommended go install method
  • Loading branch information
tanmayv25 committed May 13, 2024
1 parent 35d50d3 commit 5fca9f2
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions Dockerfile.QA
Original file line number Diff line number Diff line change
Expand Up @@ -353,19 +353,18 @@ RUN pip3 install --upgrade wheel setuptools && \

# go needed for example go client test.
RUN if [ "$TARGETPLATFORM" = "linux/arm64" ]; then \
wget https://golang.org/dl/go1.19.1.linux-arm64.tar.gz && \
rm -rf /usr/local/go && tar -C /usr/local -xzf go1.19.1.linux-arm64.tar.gz && \
rm -f go1.19.1.linux-arm64.tar.gz; \
wget https://golang.org/dl/go1.22.3.linux-arm64.tar.gz && \
rm -rf /usr/local/go && tar -C /usr/local -xzf go1.22.3.linux-arm64.tar.gz && \
rm -f go1.22.3.linux-arm64.tar.gz; \
else \
wget https://golang.org/dl/go1.19.1.linux-amd64.tar.gz && \
rm -rf /usr/local/go && tar -C /usr/local -xzf go1.19.1.linux-amd64.tar.gz && \
rm -f go1.19.1.linux-amd64.tar.gz; \
wget https://golang.org/dl/go1.22.3.linux-amd64.tar.gz && \
rm -rf /usr/local/go && tar -C /usr/local -xzf go1.22.3.linux-amd64.tar.gz && \
rm -f go1.22.3.linux-amd64.tar.gz; \
fi
ENV GOPATH /root/go
ENV PATH $PATH:/usr/local/go/bin:$GOPATH/bin
RUN GO111MODULE=off go get github.com/golang/protobuf/protoc-gen-go && \
GO111MODULE=off go get google.golang.org/grpc

RUN go install google.golang.org/protobuf/cmd/protoc-gen-go@latest && \
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
# CI expects tests in /opt/tritonserver/qa. The triton-server (1000)
# user should own all artifacts in case CI is run using triton-server
# user.
Expand Down

0 comments on commit 5fca9f2

Please sign in to comment.