feat(registry/remote): implement Mount#500
Merged
Merged
Conversation
Mount
shizhMSFT
reviewed
May 5, 2023
shizhMSFT
left a comment
Contributor
There was a problem hiding this comment.
Could you sign-off your commit to pass the DCO check?
Contributor
|
Pinging @Wwwsylvia who I think has a lot of history with mount :). Correct me if I'm wrong Sylvia. |
Contributor
|
Pinging @Wwwsylvia for reviewing this PR. |
Wwwsylvia
reviewed
May 8, 2023
Member
|
@sajayantony You still remember my history with mount😂 |
shizhMSFT
reviewed
May 8, 2023
This adds support for "mounting" (a.k.a. copy by reference) a blob from one repository to another in the same registry. As documented in https://docs.docker.com/registry/spec/api/#blob and https://github.com/opencontainers/distribution-spec/blob/main/spec.md#mounting-a-blob-from-another-repository. I've also manually verified that this works against at least one real registry implementation (zot). Fixes oras-project#337 This implements blob-mount functionality as described Signed-off-by: Roger Peppe <rogpeppe@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds support for "mounting" (a.k.a. copy by reference) a blob from one repository to another in the same registry.
As documented in https://docs.docker.com/registry/spec/api/#blob and https://github.com/opencontainers/distribution-spec/blob/main/spec.md#mounting-a-blob-from-another-repository.
I've also manually verified that this works against at least one real registry implementation (zot).
Fixes #337
This implements blob-mount functionality as described