Skip to content

support copying image referrers from index predecessor via oras copy #816

Closed

Description

@qweeah

Suppose we have an index directly pointing to several images with different platforms. Each image have an artifact attached as below:

graph TD
Z>v1] -..-> index
A["artifact(linux/s390x)"] -- subject --> B["image"]
C["artifact(linux/amd64)"] -- subject --> D["image"]
E["artifact(linux/arm64)"] -- subject --> F["image"]

index -- linux/s390x --> B
index -- linux/arm64 --> D
index -- linux/amd64 --> F

Loading

Using below command, oras user can copy all the images and artifacts into a new target (registry or image layout) and tag the index in the destination as v2:

oras cp $FROM:v1 $TO:v2 --recursive

Activity

  1. added
    enhancement
    ux
    on Feb 15, 2023
  2. added this to the future milestone on Feb 16, 2023
  3. qweeah commented on Feb 16, 2023

    @qweeah
    ContributorAuthor

    Moving this to future mile stone since the state-of-the-art practice is not clear in CSSC industry. E.g. can a certain arch image being distributed and verified without the multi-arch bundle? If not, the sbom and signature can be attach directly to the multi-arch bundle as below, and this feature is not needed.

    graph TD
    Z>v1] -..-> index
    A["artifact(sbom, signature...)"] -- subject --> index
    
    index -- linux/s390x --> B[image]
    index -- linux/arm64 --> D[image]
    index -- linux/amd64 --> F[image]
    
    
    
    Loading
  4. changed the title [-]support copying multiple referrers of certain platforms via `oras copy`[/-] [+]support copying image referrers from index predecessor via `oras copy`[/+] on Feb 20, 2023
  5. github-actions commented on Jul 23, 2023

    @github-actions

    This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.

  6. added
    stale
    on Jul 23, 2023
  7. sajayantony commented on Sep 5, 2023

    @sajayantony
    Contributor

    if --recursive doesn't copy all the refereers for a related index then that is extra burden on the user.
    Recommen supporting.

  8. removed
    stale
    on Sep 5, 2023
  9. modified the milestones: future, v1.2.0 on Sep 14, 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

    enhancementux

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions