-
Notifications
You must be signed in to change notification settings - Fork 16
Suggestions for new label #7
Comments
@timgriffiths I wonder if this is needed when one can always
|
license and archicture labels are also missing, along with many defined here: example |
also something for the distribution, if used as base image. $ lsb_release -a $ cat /etc/os-release so,
|
Isn't architecture defined at a higher level? I'm sure it's in the image spec or something. Licence should definitely be there. Surprised we missed that one. Also OS stuff LGTM. |
Yes I think you're right @amouat, architecture has its own field in the image We left licence out for rc1 because there's some debate as to what it actually means (is it a license for the source code or the binary?) but it would be good to hammer that out, I'd be all for getting it into the document. FWIW a lot of existing images have a license label already (albeit the vast majority that have it are simply inheriting it from the Centos image). On the OS things, maybe I am missing the point but I'm not sure we can usefully specify labels that are really only usable by the OS image maintainers - this wouldn't be something that the majority of (non-OS) maintainers could use, right? And I'm not sure what the use case is for a generic label for this info. If, say, the Ubuntu maintainers decide to label their image with "org.ubuntu.version=14.04.5 LTS, Trusty Tahr", the org.ubuntu.version key (which I just made up as an example) would be just as useful to a developer or operator. I think? On a more pragmatic point, even if we document a convention that OS image maintainers should label using the key "org.label-schema.os-version" it's pretty meaningless unless they all buy into it. |
Yes, I forgot about the licence debate. It's pretty serious, as child images will inherit the label and could be wrongly assumed to be issued under that licence. There would need to be a way of saying exactly what in the image falls under the licence. We would need to work with the creators of base (or OS) images in order to get their buy-in, but it seems useful and plausible to me. |
Regarding license, can't we enable it and keep the conflicting cases to be resolved at the user end when that becomes significant? Enabling it, accepting the possible open-ended of it can allow images that use proper licensing to use the label. Also IMO, [1] - https://github.com/projectatomic/ContainerApplicationGenericLabels#distribution-scope |
This format is becoming standard: SPDX It's being used by php composer, npm and bower: |
org.label-schema.license=GPL-3.0 Can we get this in? I've submitted a pull request |
Added two more: pull request #22 |
Another easy one: pull request #24 |
Submitted authors issue #23 and pull request #25:
|
@lizrice @amouat: architecture has its own field in the image yes, but you can only see it on images that were already built. OS labels are useful for people who want to contribute, reuse or use these images. A custom image that is based on no distribution can state that as well. |
Added pull request #26 for os-id, os-version-id and os-architecture. For regular distributions:
For base images (with no parent image):
|
You can view all these proposals added and combined here: |
#36 added for vendor |
Could be interesting, yes. ~~I'm changing my PR given that "architecture" is returned on docker inspect:~
But OS information is not returned the way i was suggesting. Would you prefer these OS-* labels be called distribution instead? I was thinking more broadly, to consider things that aren't distributions and also different operating systems. |
EDIT: however, While using grep works:
Using docker image ls --filter does not.
So i still suggest keeping it. |
@lpalgarvio AFAIU
This addresses a more business-oriented, open-ended case than the OS details. One example would be to selectively provide Images to different tiers of clients. WDYT? |
vcs-branch -> In case we are not always building off master
The text was updated successfully, but these errors were encountered: