-
-
Notifications
You must be signed in to change notification settings - Fork 225
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
Add OCI annotations to docker images #1542
Comments
Behind the scene we are using It would be useful if you could suggest a list of labels (key and value) that we should set. |
Sure! The one I find most useful is LABEL \
org.opencontainers.image.title="Kroki" \
org.opencontainers.image.description="Kroki provides a unified API supporting multiple diagramming formats, making it easy to create diagrams from textual descriptions." \
org.opencontainers.image.url="https://kroki.io" \
org.opencontainers.image.source="https://github.com/yuzutech/kroki" \
org.opencontainers.image.licenses="MIT" But you maybe want to use the |
Thanks!
Is there a best practice or a recommended way to define labels? Are you willing to submit a pull request? |
I'm not sure, the docker bake file was new to me, I am only used to pure Dockerfiles.
Absolutely :-) #1545 |
It would have been nice if the Kroki docker image built in this project used the OCI annotations, these can be used by other tools to enhance the user experience. E.g. Renovate will use the source label to add a link back to where the image is coming from.
Currently, there are no labels for the kroki image:
$ docker inspect yuzutech/kroki:0.20.0 --format '{{ json .Config.Labels }}' null
This could be done be adding the OCI labels directly into the Dockerfile, or by using the docker/metadata-action, but that is maybe difficult since you are building the images inside a Makefile?
The text was updated successfully, but these errors were encountered: