Skip to content

Add mount support for oras cp #1238

Closed

Description

@ktarplee

What is the version of your ORAS CLI

main

What would you like to be added?

When the source and destination registries are the same, the code needs to simply needs to tell oras-go via the oras.CopyOptions that we want to mount from the source repository if available.

An example of how to do this is here. You need to implement the MountFrom function and have it return the source repository (if the registry is the same as the destination). You probably also want to implement OnMount.

Why is this needed for ORAS?

There is a large performance improvement possible if mounting is supported. crane cp has always supported mounting and now that oras-go supports mounting (via PR), we should add it to oras cp.

Are you willing to submit PRs to contribute to this feature?

  • Yes, I am willing to implement it.

Activity

  1. added
    enhancement
    triage
    on Jan 10, 2024
  2. removed
    triage
    on Jan 16, 2024
  3. added this to the v1.2.0 milestone on Jan 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions