Skip to content

Proposal: org.opencontainers.image.base.source #1308

@kaaax0815

Description

@kaaax0815

Add org.opencontainers.image.base.source as a Pre-Defined Annotation Key.

Why

Many projects don't maintain their own Dockerfiles and respective packages. Thats why packaging groups like linuxserver.io1 exist. These groups maintain a Dockerfile for that project and publish them. They set org.opencontainers.image.source to their own repo, which is correct as they host the code to "build the image"2.

Tools like Renovate3 use the org.opencontainers.image.source labe to fetch metadata and changelogs 4. The problems lies with fetching the changelogs from there. Most often packaging groups follow the upstream release cycle as close as possible and therefore don't have their own changelog

Adding org.opencontainers.image.base.source as a pre-defined annotation key would clearly separate the image build source from the upstream project source. This allows packaging groups to correctly reference their Dockerfile repositories while still pointing tools like Renovate to the true upstream project for metadata and changelogs.

Footnotes

  1. https://www.linuxserver.io/

  2. https://github.com/opencontainers/image-spec/blob/main/annotations.md#pre-defined-annotation-keys

  3. https://www.mend.io/renovate/

  4. https://docs.renovatebot.com/modules/datasource/docker/#description

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions