From aa9c6c2a502435aa9d556befcb2cceb69f4a0058 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20Mart=C3=ADn?= Date: Tue, 4 Mar 2025 14:06:46 +0100 Subject: [PATCH] Add an alternative method to set the repos image MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Make it possible to set the repos image with a build argument, e.g.: --build-arg=REPOS_IMAGE=quay.io/fedora/fedora:42 Currently it's only possible use the --from argument, e.g.: --from=quay.io/fedora/fedora:42 Signed-off-by: Miguel Martín --- Containerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Containerfile b/Containerfile index 3a99360..9e789b3 100644 --- a/Containerfile +++ b/Containerfile @@ -3,13 +3,14 @@ # podman build --security-opt=label=disable --cap-add=all --device /dev/fuse <...> # NOTE: This container build will output a single giant layer. It is strongly recommended -# to run the "rechunker" on the output of this build, see +# to run the "rechunker" on the output of this build, see # https://coreos.github.io/rpm-ostree/experimental-build-chunked-oci/ # Override this repos container to control the base image package versions. For # example, podman build --from=quay.io/fedora/fedora:41 will get you a system # that uses Fedora 41 packages. Or inject arbitrary yum repos (COPR, etc) here. -FROM quay.io/fedora/fedora:rawhide as repos +ARG REPOS_IMAGE=quay.io/fedora/fedora:rawhide +FROM $REPOS_IMAGE as repos # BOOTSTRAPPING: This can be any image that has rpm-ostree and selinux-policy-targeted. FROM quay.io/fedora/fedora:41 as builder