artifacts icon indicating copy to clipboard operation
artifacts copied to clipboard

Mixing "manifests" and "layers" in an artifact?

Open Silvanoc opened this issue 4 years ago • 1 comments

I understand that support for "artifact indexes" similar to "image indexes" is expected to come in the future.

The OCI image specification doesn't support mixing image references (the manifests list of an image index) with image payload and image config (the config and layers list of an image manifest). Is it planed to make the OCI artifacts specification drift a bit from it allowing a mixture of both?

The use-case how I came to this is following. An artifact consists of:

  • A configuration file (config in a manifest).
  • Some files (layers in a manifest).
  • A container image (manifests in an index).

But in general the idea is that an artifact can have it's own files and references to other artifacts (being a container image a special artifact type), being the artifacts tools capable of handle the referred artifacts as part of the artifact itself... For example, push/pull an artifact including all referred artifacts.

Of course you can put an image name or artifact name in the configuration and then recursively resolve those references, but having it all integrated makes the management much easier.

Silvanoc avatar Mar 17 '21 12:03 Silvanoc

Hi @Silvanoc, These are well-timed discussions. Please see #29 with example usage at: https://github.com/deislabs/oras/blob/prototype-2/docs/artifact-manifest.md Also, see Justins "One Manifest to Rule Them All" WIP proposal: #37

SteveLasker avatar Apr 04 '21 03:04 SteveLasker