From b022ce3b8fd17e230365902da0f4ca2b668b01f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ha=CC=88cker?= Date: Tue, 10 Dec 2024 15:17:12 +0100 Subject: [PATCH] Add build script that builds a docker container into a file. --- bin/build_docker_to_file | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 bin/build_docker_to_file diff --git a/bin/build_docker_to_file b/bin/build_docker_to_file new file mode 100755 index 000000000..d5e47da51 --- /dev/null +++ b/bin/build_docker_to_file @@ -0,0 +1,12 @@ +#!/usr/bin/env sh +set -xe + +cd "$(dirname "$0")" + +export ZOPE_TAG=latest + +cd .. +docker buildx bake --set '*.platform=linux/amd64' zope + +cd dist +docker image save localhost/zope:$ZOPE_TAG > zope:latest.tar