-
Notifications
You must be signed in to change notification settings - Fork 565
crane: mutate OCI image layout with annotations, layers etc. #1433
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
Comments
kindly ping @imjasonh @jonjohnsonjr |
I think this is worth doing. What kind of changes would you like to see added to |
This is exactly what I thought. We just need to add a flag for OCI Image Layout to tell crane this is an OCI Image Layout directory, not an image. # this will append layer.tar.gz blob to oci-dir directory
$ crane mutate --append layer.tar.gz --oci-image-layout oci-dir
# current design
$ crane mutate --append layer.tar.gz ghcr.io/developer-guy/hello-world:latest |
we can give a hand to address this issue with @Dentrax |
Anyone up for standardizing the reference syntax for a local Layout so that it's just a different way to reference an image rather than a flag? |
@sudo-bmitch I would try to simplify spec terminology. Local Layout forces me to go and find the page that describes what does it mean. Do you mean standardizing image references like:
and extending them to
? |
Standardizing references to a layout refers to how we have lots of ways to reference the on disk format: Sometimes they mean a directory, sometimes a tar+gz of that directory, and rarely do they include the ability to specify a tag or digest within that directory. |
This issue is stale because it has been open for 90 days with no |
Can you please re-open this issue @imjasonh? I'm going to add some test cases to prove it's working. |
Friendly ping @imjasonh I am really interested in this for rules_oci. We have a pure overhead of running registries and making crane work on the said ephemeral registry. This doesn't scale well when there are hundreds of ephemeral registries working locally. I'd be down for making series of PR's to make this work. @developer-guy i'd appreciate if you could lend me a hand |
Describe the bug
This is not a bug, and this is a feature.
Additional context
Recently, @sudo-bmitch talked about OCI image layout1. He showed a demo of making file operations on the OCI image layout directory for adding new blobs, annotations, etc. crane already has the support of working with OCI image layout through a package
pkg/v1/layout
available in go-containerregistry but editing the OCI image layout for such operations adding new blobs, annotations, etc. is not possible, so, we talked with @imjasonh about this, andmutate
cmd is the best place to implement this. Based on that, I've tested a sample code to make changes to OCI image layout, and it worked:PTAL @Dentrax
Footnotes
https://www.youtube.com/watch?v=TJVoFKTm9I0 ↩
The text was updated successfully, but these errors were encountered: