-
Notifications
You must be signed in to change notification settings - Fork 82
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
tools: need a tool to update/create manifests #59
Comments
see https://github.com/estesp/manifest-tool (which could maybe be extended to work with non-list manifests) (also moby/moby#27455) |
Yeah, we could probably implement it as a config-based thing. It's probably not going to be that complicated to implement. That reminds me, we need to have a way of handling descriptors for images because currently images are two-links-removed from the reference'd JSON. |
We also need something to handle descriptors. Descriptors appear very simple but are not. There's probably a case to be made for |
I agree that we'll want
And if you had a tarball file available (vs. my
but I expect folks building images with image-tools commands will be comfortable without the wrapping shell, and that most folks will be using some higher-level tooling like Dockerfiles and such. |
@wking Yeah, my above review is the things I reckon is necessary for the OCI integration we're planning into KIWI (and by extension oboci which I'll implement in spare cycles). The idea is that I want to integrate the minimum amount of information about the spec into KIWI, so that the maintainers of KIWI don't have to handle all of the interplay between components. So I will end up writing a wrapper, I would just prefer that the wrapper be smaller rather than larger and that the majority of the non-problem-specific components are put inside |
I've been playing around with skopeo+image-tools+#5+#8 and I've found that almost all of the necessary tooling we need is available. You can pull base images, create layers, validate layers, unpack layers and then run them. That's awesome.
However, the one missing piece is updating image manifests. This is the same as creating manifests (which is also missing). What we need is the ability to take an existing image manifest (or from scratch) change the different properties. While you could do this with some
jq
foo, since it's a spec thing it should live in the spec repository.If no-one else is working on this, I'd be glad to help out. I'm thinking of a UX like
Management of history could be quite a pain but we could just implement it as an append operation, with the option to change the base. So something like this would allow you to change the base layer with
oci-manifest update
:I'm not too sure, we can hash that out once I have an implementation. It might be nice to also extend this tool to handle manifest-lists. But that's for a future date, maybe we could implement it as part of
oci-refs
where we add features to deref a manifest list. Not sure.The text was updated successfully, but these errors were encountered: