From 29afcb050e3fb36a08f2c044ffb09a8f6370417f Mon Sep 17 00:00:00 2001 From: Peter Kurfer Date: Wed, 12 Oct 2022 22:11:52 +0200 Subject: [PATCH] refactor(go): move to newer Ubuntu base image --- go-ci/Dockerfile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/go-ci/Dockerfile b/go-ci/Dockerfile index 995b01b..d7f402a 100644 --- a/go-ci/Dockerfile +++ b/go-ci/Dockerfile @@ -7,7 +7,7 @@ RUN go install github.com/golang/mock/mockgen@latest && \ go install mvdan.cc/gofumpt@latest && \ go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest -FROM docker.io/golang:1.19-bullseye +FROM docker.io/ubuntu:22.04 RUN apt-get update && \ apt-get install \ @@ -21,7 +21,13 @@ RUN apt-get update && \ llvm-13 \ elfutils && \ rm -rf /var/lib/apt/lists/* && \ - ln -s /usr/bin/llc-13 /usr/bin/llc + ln -s /usr/bin/llc-14 /usr/bin/llc + +# Install Go +RUN curl -L https://go.dev/dl/go1.19.2.linux-amd64.tar.gz | tar -xvz -C /usr/local + +ENV PATH=/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \ + GOPATH=/go # Install GoReleaser RUN export GORELEASER_VERSION=$(curl https://api.github.com/repos/goreleaser/goreleaser/releases | jq -r '. | first |.tag_name | capture("(?[[:digit:]]+\\.[[:digit:]]+\\.[[:digit:]]+)") | .version') && \