opencontainers / image-spec

OCI Image Format
https://www.opencontainers.org/
Apache License 2.0
3.34k stars 624 forks source link

Standards around bridging between `/usr/lib/os-release` and labels/annotations? #1152

Open cgwalters opened 6 months ago

cgwalters commented 6 months ago

Has there been any discussion on standard bridging between the os-release file and standardized labels/annotation names?

I tried searching issues/PRs here and didn't see anything. This seems like an obvious thing to want. I think to start at least the ID and ID_LIKE keys.

cgwalters commented 6 months ago

cc @vbatts just because I know you :smile:

vbatts commented 5 months ago

nothing official. I've heard some tools pull from os-release for the label/annotations. It seems like a good and fine pattern. Not sure about mandating such.

cgwalters commented 5 months ago

Yeah agree we can't mandate. But how about adding org.opencontainers.osrelease.id as a start which is just the value of ID from /usr/lib/os-release?

vbatts commented 5 months ago

@cgwalters do you have links to places where projects are already doing similar? (maybe not in the org.opencontainers.* prefix, but still)