aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--test/testvol/Containerfile4
2 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 4d60ad4c8..a7d1ba59e 100644
--- a/Makefile
+++ b/Makefile
@@ -229,7 +229,7 @@ test/testvol/testvol: $(wildcard test/testvol/*.go)
.PHONY: volume-plugin-test-img
volume-plugin-test-img:
- podman build -t quay.io/libpod/volume-plugin-test-img:$$(date +%Y%m%d) -f ./test/testvol/Containerfile .
+ ./bin/podman build --network none -t quay.io/libpod/volume-plugin-test-img:$$(date +%Y%m%d) -f ./test/testvol/Containerfile .
.PHONY: test/goecho/goecho
test/goecho/goecho: $(wildcard test/goecho/*.go)
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