mirror of
https://github.com/containers/podman.git
synced 2025-10-25 10:16:43 +08:00
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 <mheon@redhat.com>
This commit is contained in:
10
Containerfile-testvol
Normal file
10
Containerfile-testvol
Normal file
@ -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"]
|
||||
Reference in New Issue
Block a user