spin icon indicating copy to clipboard operation
spin copied to clipboard

Follow OCI container image annotation standards when generating containers

Open NissesSenap opened this issue 1 month ago • 2 comments

As a part of generating a docker container when running something like: spin registry push ttl.sh/something:1h, we get very basic information about the container.

➜ docker manifest inspect ttl.sh/something:1h
{
    "config": {
        "digest": "sha256:668d372ccc29ffe6f0000bbddbff67d97c2812dbd48b5338ae8532ab6b7c4e59",
        "mediaType": "application/vnd.oci.image.config.v1+json",
        "size": 209
    },
    "layers": [
        {
            "digest": "sha256:2bcd094bfd433033c641264d94d0afbd0adabc666d69433d2f766e0efbe5e598",
            "mediaType": "application/vnd.wasm.content.layer.v1+wasm",
            "size": 36276905
        },
        {
            "digest": "sha256:3f05015b248403ca99a9bf1861202d107885ae300f5ff165708415603a39c248",
            "mediaType": "application/vnd.fermyon.spin.application.v1+config",
            "size": 596
        }
    ],
    "schemaVersion": 2
}

But there is an OCI standard for pre-defined annotations.

It would be great if spin could generate most of these annotations out of the box, if possible, guess them from context. But make it possible to set all values through thespin.toml file.

NissesSenap avatar Jul 02 '24 14:07 NissesSenap