weaveworks / build-tools

Collection of build & test tools shared by various Weaveworks projects
Other
44 stars 20 forks source link

Add opencontainers labels to dockerfiles #132

Closed marccarre closed 6 years ago

marccarre commented 6 years ago

Why? What?

Testing:

$ docker inspect quay.io/weaveworks/build-golang
[
    {
        [...]
        "ContainerConfig": {
            [...]
            "Labels": {
                "maintainer": "Weaveworks <help@weave.works>",
                "org.opencontainers.image.revision": "248def1ba24b8c48dc05f8f46d0f4a9c2a671e5e",
                "org.opencontainers.image.source": "https://github.com/weaveworks/build-tools/tree/master/build/golang",
                "org.opencontainers.image.title": "golang",
                "org.opencontainers.image.vendor": "Weaveworks"
            }
[...]

$ docker inspect quay.io/weaveworks/build-haskell
[
    {
        [...]
        "ContainerConfig": {
            [...]
            "Labels": {
                "maintainer": "Weaveworks <help@weave.works>",
                "org.opencontainers.image.revision": "248def1ba24b8c48dc05f8f46d0f4a9c2a671e5e",
                "org.opencontainers.image.source": "https://github.com/weaveworks/build-tools/tree/master/build/haskell",
                "org.opencontainers.image.title": "haskell",
                "org.opencontainers.image.vendor": "Weaveworks"
            }
[...]

$ docker inspect weaveworks/socksproxy
[
    {
        [...]
        "ContainerConfig": {
            [...]
            "Labels": {
                "maintainer": "Weaveworks <help@weave.works>",
                "org.opencontainers.image.revision": "248def1ba24b8c48dc05f8f46d0f4a9c2a671e5e",
                "org.opencontainers.image.source": "https://github.com/weaveworks/build-tools/tree/master/socks",
                "org.opencontainers.image.title": "socks",
                "org.opencontainers.image.vendor": "Weaveworks"
            }
[...]