Skip to content
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 OpenContainers Labels to Dockerfile #858

Open
molhamalnasr opened this issue Jan 8, 2025 · 0 comments
Open

Add OpenContainers Labels to Dockerfile #858

molhamalnasr opened this issue Jan 8, 2025 · 0 comments

Comments

@molhamalnasr
Copy link

Is your feature request related to a problem? Please describe.
Currently, the Dockerfile lacks standard labels, which makes it less compatible with tools like RenovateBot and the OpenContainers labeling guidelines. This can lead to difficulties in managing and tracking the image.

Describe the solution you'd like
Add the following labels to the Dockerfile to make the image more standard and compatible:

  • "org.label-schema.version": "$VERSION_TAG"
  • "org.opencontainers.image.licenses": "Apache-2.0 license"
  • "org.opencontainers.image.ref.name": "b4bz/homer:22-alpine3.20"
  • "org.opencontainers.image.source": "https://github.com/bastienwirtz/homer"
  • "org.opencontainers.image.url": "https://homer-demo.netlify.app/"
  • "org.opencontainers.image.version": "$VERSION_TAG"

Describe alternatives you've considered
An alternative solution could be to manually manage the image metadata, but this approach is less efficient and prone to errors.

Additional context
Adding these labels will enhance compatibility with tools like RenovateBot and improve the readability of the Changelog file using the 'org.opencontainers.image.source' label see: https://docs.renovatebot.com/modules/datasource/docker/#description

molhamalnasr pushed a commit to molhamalnasr/homer that referenced this issue Jan 8, 2025
…nd pass the github.ref_name as VERSION_TAG build_args in docker/build-push-action pipeline
molhamalnasr pushed a commit to molhamalnasr/homer that referenced this issue Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant