diff options
author | Paul Holzinger <pholzing@redhat.com> | 2022-06-22 13:21:45 +0200 |
---|---|---|
committer | Paul Holzinger <pholzing@redhat.com> | 2022-06-23 17:43:09 +0200 |
commit | 472f79f08e2fbb0fcc07abbe6fed221e18a4f36f (patch) | |
tree | ab4ef28a86169f227ea4ee1c0e350de6d514c774 /test/testvol | |
parent | 0d3aa61be4cf064fee07d004b1d08519c7624802 (diff) | |
download | podman-472f79f08e2fbb0fcc07abbe6fed221e18a4f36f.tar.gz podman-472f79f08e2fbb0fcc07abbe6fed221e18a4f36f.tar.bz2 podman-472f79f08e2fbb0fcc07abbe6fed221e18a4f36f.zip |
test/testvol: move Containerfile into testvol dir
I think it is confusion to have this Containerfile in the repo root. It
is used for the tests only so we should move it into the same dir.
Also adapt the Makefile target to use the new path and add the current
date as tag instead of using latest which can break CI easily when we
have to update the image.
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Diffstat (limited to 'test/testvol')
-rw-r--r-- | test/testvol/Containerfile | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/testvol/Containerfile b/test/testvol/Containerfile new file mode 100644 index 000000000..6ff45064b --- /dev/null +++ b/test/testvol/Containerfile @@ -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"] |