Add an alternative method to set the repos image
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 <mmartinv@redhat.com>
This commit is contained in:
parent
582f7efb8c
commit
aa9c6c2a50
1 changed files with 3 additions and 2 deletions
|
|
@ -9,7 +9,8 @@
|
||||||
# Override this repos container to control the base image package versions. For
|
# 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
|
# 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.
|
# 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.
|
# BOOTSTRAPPING: This can be any image that has rpm-ostree and selinux-policy-targeted.
|
||||||
FROM quay.io/fedora/fedora:41 as builder
|
FROM quay.io/fedora/fedora:41 as builder
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue