This repository has been archived by the owner on May 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27
Add a label with a distribution ID #110
Comments
Makes sense, though let's look at prior art here:
And for completeness:
So there's not a lot of consistency here. It may make sense to raise some sort of standardization around mapping between |
cc @rhatdan @vrothberg for thoughts on this |
Yes this should be handled via labels. |
Right, but I guess what I'm asking is are you aware of any other prior art around OCI labels and |
This was done in #237 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
bootc-image-builder
will soon gain the ability of building an installer ISO for bootable container.This comes with an interesting challenge: For Fedora, we use a Fedora installer, but for CentOS, we should probably use a CentOS one.
However, in order to find out what distribution is inside the bootable container, we would currently need to introspect the image to read
/etc/os-release
. This is surely possible, but it would be quite convenient to just read it from the labels. We fetch the labels much sooner in the image build process before fetching the whole container image. Generally speaking, the ability to know which distribution is inside the container based on its labels feels quite natural to me.Would it be possible to add a label to the containers with the distribution ID? My suggestion is to just take
ID
from/etc/os-release
and make it a label.VERSION_ID
might be also nice.cc @supakeen @mvo5
The text was updated successfully, but these errors were encountered: