-
Notifications
You must be signed in to change notification settings - Fork 33
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
Feat: allow creation of layers via stacking (maybe bring back apply
?)
#448
Comments
I had originally suggested to @hallyn that maybe this could be implemented as multiple `from' so overloading that (which would require having the yaml parser accept dict or array) we'd have: combined:
from:
- type: built
tag: kernel
- type: built
tag: ovmf Either solution has to deal with (or ignore) duplicate 'under layers' as discussed in doc/layer-merging.md. |
The following should give us separate layers right?
|
I edited to add a '/' on the end fof the 'path' elements or clarity based on your comment about trailing / in #453 . I would expect the above to create a single 'combined' layer that would sit on top of ubuntu:latest. And I think it does, based on existing import behavior, each import does not create its own new layer, does it? |
Is your feature request related to a problem? Please describe.
I would like to be able to publish a set of individual layers and a "combined" layer, where the combined layer is joined layer of the individual layers.
An example, I have a stacker file like this:
The 'kernel' and 'ovmf' layers are built and have only top level directories 'kernel/' and 'ovmf/' respectively.
I'd like to add another layer build to this file that has:
The goal would be to have 3 layers published:
combined would simply be 'ovmf' on top of 'kernel', such that index.json had:
And oci/blobs/sha256/639a0e5badf32904dd4178e6c203fb68884a3b1aa450ce38a44c840321dfbd32 had:
where kernel-squashfs had a single layer in layers with sha of
65b1
and ovmf had a single laye in its layers with sha72db3
Describe the solution you'd like
No response
Describe alternatives you've considered
No response
Additional context
I'm not set on a particular solution or syntax.
I think this functionality makes sense and can be useful in many contexts. It doesn't work well for traditional package based distributions (with package files spread all over and a single-file package database), but it would work well for non-distro things and potentially even distros like nixOS.
My specific desire is to publish N different layers so that each layer can be pulled individually and a 'combined' layer could be pulled as well without any duplication.
The text was updated successfully, but these errors were encountered: