From f781efd2dca4c1db54762c6edec2b915e48dd5d8 Mon Sep 17 00:00:00 2001 From: Matthew Heon Date: Mon, 11 Jan 2021 16:14:07 -0500 Subject: Add tests for volume plugins This involves a new test binary (a basic implementation of the volume plugin protocol) and a new image on quay.io (Containerfile to produce it and all sources located in this commit). The image is used to run a containerized plugin we can test against. Signed-off-by: Matthew Heon --- Containerfile-testvol | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Containerfile-testvol (limited to 'Containerfile-testvol') diff --git a/Containerfile-testvol b/Containerfile-testvol new file mode 100644 index 000000000..6ff45064b --- /dev/null +++ b/Containerfile-testvol @@ -0,0 +1,10 @@ +FROM golang:1.15-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 + +FROM alpine +COPY --from=build-img /testvol /usr/local/bin +WORKDIR / +ENTRYPOINT ["/usr/local/bin/testvol"] -- cgit v1.2.3-54-g00ecf