Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
qweeah opened this issue Feb 15, 2023 · 3 comments · Fixed by #1122
Closed

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

qweeah opened this issue Feb 15, 2023 · 3 comments · Fixed by #1122
Labels
enhancement New feature or request ux User experience related
Milestone

Comments

@qweeah
Copy link
Contributor

qweeah commented Feb 15, 2023

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
@qweeah qweeah added enhancement New feature or request ux User experience related labels Feb 15, 2023
@qweeah qweeah added this to the future milestone Feb 16, 2023
@qweeah
Copy link
Contributor Author

qweeah commented Feb 16, 2023

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

@qweeah qweeah changed the title support copying multiple referrers of certain platforms via oras copy support copying image referrers from index predecessor via oras copy Feb 20, 2023
@github-actions
Copy link

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.

@github-actions github-actions bot added the stale Inactive issues or pull requests label Jul 23, 2023
@sajayantony
Copy link
Contributor

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

@sajayantony sajayantony removed the stale Inactive issues or pull requests label Sep 5, 2023
@yizha1 yizha1 modified the milestones: future, v1.2.0 Sep 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request ux User experience related
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants