Skip to content

Provide opencontainers labels in Dockerfile #10228

@mstoetzer

Description

@mstoetzer

It could be a nice addition to provide official opencontainers labels in the Dockerfile of prometheus:

LABEL org.opencontainers.image.authors="xxxx?" \
      org.opencontainers.image.source="https://github.com/prometheus/prometheus" \
      org.opencontainers.image.description="The Prometheus monitoring system and time series database" \
      org.opencontainers.image.documentation="https://prometheus.io/docs" \
      org.opencontainers.image.licenses="Apache License 2.0" \
      org.opencontainers.image.title="prometheus" \
      org.opencontainers.image.url="https://github.com/prometheus/prometheus" \
      org.opencontainers.image.vendor="xxx?"

One example why this is useful is dependabot or renovatebot. When these tools update the dockerimage version, they can extract the release notes from the source label and provide it in the pullrequest. See the renovate docs

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions