Move labels into Containerfile.base
Signed-off-by: Colin Walters <walters@verbum.org>
This commit is contained in:
parent
2a387e2167
commit
1901092f5d
|
|
@ -26,13 +26,23 @@ for x in etc/dnf etc/yum.repos.d etc/pki/rpm-gpg; do
|
||||||
done
|
done
|
||||||
# And copy to the workdir; TODO fix this in rpm-ostree
|
# And copy to the workdir; TODO fix this in rpm-ostree
|
||||||
cp /etc/yum.repos.d/*.repo base
|
cp /etc/yum.repos.d/*.repo base
|
||||||
rpm-ostree compose image --image-config fedora-bootc-config.json \
|
rpm-ostree compose image \
|
||||||
--cachedir=/workdir --format=ociarchive --initialize base/manifest.yaml \
|
--cachedir=/workdir --format=ociarchive --initialize base/manifest.yaml \
|
||||||
--source-root=/repos /buildcontext/out.ociarchive
|
--source-root=/repos /buildcontext/out.ociarchive
|
||||||
EORUN
|
EORUN
|
||||||
|
|
||||||
# This pulls in the OCI archive generated in the previous step.
|
# This pulls in the OCI archive generated in the previous step.
|
||||||
FROM oci-archive:./out.ociarchive
|
FROM oci-archive:./out.ociarchive
|
||||||
|
LABEL containers.bootc 1
|
||||||
|
# This is an ad-hoc way for us to reference bootc-image-builder in
|
||||||
|
# a way that in theory client tooling can inspect and find. Today
|
||||||
|
# it isn't widely used.
|
||||||
|
LABEL bootc.diskimage-builder quay.io/centos-bootc/bootc-image-builder
|
||||||
|
# https://pagure.io/fedora-kiwi-descriptions/pull-request/52
|
||||||
|
ENV container=oci
|
||||||
|
# Make systemd the default
|
||||||
|
STOPSIGNAL SIGRTMIN+3
|
||||||
|
CMD ["/sbin/init"]
|
||||||
# Need to reference builder here to force ordering. But since we have to run
|
# Need to reference builder here to force ordering. But since we have to run
|
||||||
# something anyway, we might as well cleanup after ourselves.
|
# something anyway, we might as well cleanup after ourselves.
|
||||||
RUN --mount=type=bind,from=builder,src=.,target=/var/tmp \
|
RUN --mount=type=bind,from=builder,src=.,target=/var/tmp \
|
||||||
|
|
|
||||||
|
|
@ -1,12 +0,0 @@
|
||||||
{
|
|
||||||
"Labels": {
|
|
||||||
"containers.bootc": "1",
|
|
||||||
"bootc.diskimage-builder": "quay.io/centos-bootc/bootc-image-builder",
|
|
||||||
"redhat.id": "fedora",
|
|
||||||
"redhat.version-id": "rawhide"
|
|
||||||
},
|
|
||||||
"StopSignal": "SIGRTMIN+3",
|
|
||||||
"Env": [
|
|
||||||
"container=oci"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue