From fcc25afa55a57629359c4aac5864883b00eb15ba Mon Sep 17 00:00:00 2001 From: Paul Holzinger Date: Wed, 22 Jun 2022 13:33:37 +0200 Subject: test/testvol: update container image golang to 1.18 Update the golang verion for the testvol image to the latest version 1.18. This requires us to build with GO111MODULE=off. Use the FQDN to prevent the shortnames prompt. Also add --network none to the podman build command to make sure we are only using the copied deps and nothing else. Signed-off-by: Paul Holzinger --- test/testvol/Containerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/testvol/Containerfile') diff --git a/test/testvol/Containerfile b/test/testvol/Containerfile index 6ff45064b..de44798fe 100644 --- a/test/testvol/Containerfile +++ b/test/testvol/Containerfile @@ -1,8 +1,8 @@ -FROM golang:1.15-alpine AS build-img +FROM docker.io/library/golang:1.18-alpine AS build-img COPY ./test/testvol/ /go/src/github.com/containers/podman/cmd/testvol/ COPY ./vendor /go/src/github.com/containers/podman/vendor/ WORKDIR /go/src/github.com/containers/podman -RUN go build -o /testvol ./cmd/testvol +RUN GO111MODULE=off go build -o /testvol ./cmd/testvol FROM alpine COPY --from=build-img /testvol /usr/local/bin -- cgit v1.2.3-54-g00ecf