google / go-containerregistry

Go library and CLIs for working with container registries
Apache License 2.0
3.12k stars 542 forks source link

Add support for OCI layouts in `crane pull/push` #1116

Closed mattmoor closed 2 years ago

mattmoor commented 3 years ago

Tools like kaniko and ko support writing OCI layouts, but i was surprised to find that crane push doesn't seem to support pushing those: https://github.com/google/go-containerregistry/blob/7e0ed51a7bb1930bfb6859f319975b578ed04de2/pkg/crane/push.go#L33-L44

Along the same lines, kaniko has a warmer image that can be used to cache base images on disk (not sure if oci-layout!), so there's definitely a crane pull analog.


Being able to efficiently separate fetch/publish from what these tools do will become increasingly critical for hermetic builds where folks want to:

  1. pull
  2. build (shut off network)
  3. push
mattmoor commented 3 years ago

cc @jonjohnsonjr @imjasonh

github-actions[bot] commented 2 years ago

This issue is stale because it has been open for 90 days with no activity. It will automatically close after 30 more days of inactivity. Keep fresh with the 'lifecycle/frozen' label.