Skip to content

oci-layout:// build contexts should work with .tar files #1553

Open

Description

@jedevc

Currently, a user is required to either pass the new unpack=true option to the OCI exporter, or to unpack the tar manually on build. If an OCI layout tar is already provided, then it needs to be manually unpacked.

Ideally, buildx should handle this case, unpacking the tar, and present the oci-layout tar as a store to containerd. If possible, it would be good to handle such functionality without needing to completely unpack the tar. Though, local.NewStore takes a filepath, we could potentially investigate a version that could take an fs.FS interface? Then connect the tar -> fs.FS -> containerd content store.

cc @AkihiroSuda, do you know of an interface in containerd that might make this easier to implement neatly?

Activity

  1. added
    kind/enhancement
    on Jan 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions