-
-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use OCI Label defaults on Docker images #145
Conversation
Hmm I don't really get the intention behind this change. Please explain the benefit of having those tags set. Is there anything out there using those labels or are they just present for the sake of being present? (Haven't seen anything - including myself - using them out there…) Regarding those two args: They will be always empty. The build system does not know anything about the contents of the container and will not know anything about it (auto-generated generic build system used for dozens of images). Aside of this: There is a missing |
4baa4d6
to
add63f7
Compare
you're right. I fixed the typo The benefit is, that these labels are standardized and can be crawled by tools like artifacthub and snyk.io: https://snyk.io/de/blog/how-and-when-to-use-docker-labels-oci-container-annotations/ |
BTW: I deployed a simple OTS Helm chart: https://artifacthub.io/packages/helm/ots/ots |
Hmm still not sure about the ARGs… …I can agree on the static values. I could agree on a version set through patch on release (so the tag will always have the correct version, So what do you think?
|
I agree with you, that empty values would be useless. Regarding the version: Are you using docker auto build? I think you can set build args there. So would prefer option 1 |
Signed-off-by: Knut Ahlers <knut@ahlers.me>
95c7a76
to
4672164
Compare
According to OCI these labels should be applied: https://github.com/opencontainers/image-spec/blob/main/annotations.md
I didn't found the docker image build, maybe you're using docker hub build. Idea would be to pass
BUILD_DATE
andAPP_VERSION
as build arguments