From f6963cea130133086f739173b55d1af74a680fef Mon Sep 17 00:00:00 2001 From: Chris Evich Date: Thu, 10 Mar 2022 12:51:47 -0500 Subject: Cirrus: Build multi-arch images + manifests Github-actions for large/complex tasks is hard to read and maintain. Reimplement the multi-arch image build workflow into a set of bash scripts that use all native contrainer-org tooling. This requires a special VM image setup with emulation to build foreign architectures. It also requires renaming the `helloimage` directory, because the build script uses the directory name in the image FQIN. Signed-off-by: Chris Evich --- contrib/hello/Containerfile | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 contrib/hello/Containerfile (limited to 'contrib/hello/Containerfile') diff --git a/contrib/hello/Containerfile b/contrib/hello/Containerfile new file mode 100644 index 000000000..0cbf6d9a0 --- /dev/null +++ b/contrib/hello/Containerfile @@ -0,0 +1,11 @@ +FROM docker.io/alpine as builder +RUN apk add gcc libc-dev +ADD podman_hello_world.c . +RUN gcc -O2 -static -o podman_hello_world podman_hello_world.c + +FROM scratch +LABEL maintainer="Podman Maintainers" +LABEL artist="Máirín Ní Ḋuḃṫaiġ, Twitter:@mairin" +USER 1000 +COPY --from=builder podman_hello_world /usr/local/bin/podman_hello_world +CMD ["/usr/local/bin/podman_hello_world"] -- cgit v1.2.3-54-g00ecf