-
Notifications
You must be signed in to change notification settings - Fork 395
[RFC] types: ImageSource: support getting a specific manifest #25
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
Conversation
Signed-off-by: Antonio Murdaca <[email protected]>
|
I don’t think the ability to specify a tag here is useful or desirable; the tag, if it exists at all ( Also, if I specify a (I guess what I am suggesting in all of the above by A philosophical/bikeshedding question: “whether a manifest list is a manifest”: do I get a manifest list through Implementation-wise, I find it really surprising that OTOH, admittedly, we do not validate contents of a [Actually, having |
|
ok to BTW, getting a manifest by digest - given an image repo - is ok and it's this works in Docker as well, you setup a repo and then call
I say GetManifest and then GetManifest for a specific manifest in the list (what Docker does also) Not sure about dir, but yeah - I'd really love to have manifest list there as well since there's only one tool which started to support manifest list [1] [which was forked from skopeo FWIW] and I would them supported here as well [1] https://github.com/estesp/manifest-tool |
|
FWIW https://github.com/mtrmac/image/tree/docker-lookaside really needs the identity of the manifest to be constant across all uses of an Perhaps we could do this with an explicit Or we could have a |
|
Isn’t this made unnecessary by #115 ? |
|
Yep |
This is in preparation to support manifests list:
ImageSourceThe interface does not seems that bad to me but I'd like to know if you're ok with it. This is basically needed because after getting a manifest list, we need to select a manifest digest from the manifest list for a given platform (we'll start with supporting the current runtime the library is used on at first and then we can expand to let users specify platform specs) and fetch it (by digest) and then convert it to either v2s1 or v2s2 to be used with the
genericManifestinterface.This is basically the same as
GetBlobwhich lets you specify a digest - because the image repository is the smallest unit we work on - not the actual digest or tag - when dealing with registries./cc @mtrmac
Signed-off-by: Antonio Murdaca [email protected]