You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
base:
build_only: truefrom:
type: dockerurl: docker://docker.io/library/ubuntu:jammyrun:
apt-get update -qkernel-build:
build_only: truefrom:
type: builttag: baserun: | mkdir -p /tmp/stage/kernel /export trap "rm -Rf /tmp/stage" EXIT apt-get install --no-install-recommends --assume-yes linux-image-virtual mv /boot /lib/modules /tmp/stage/kernel tar -C /tmp/stage -cf /export/kernel.tar kernel/# the only top level dir this layer is 'kernel/'kernel:
from:
type: scratchurl: stacker://kernel-build/export/kernel.tarovmf-build:
build_only: truefrom:
type: builttag: baserun: | mkdir -p /tmp/stage/ovmf /export trap "rm -Rf /tmp/stage" EXIT apt-get install --no-install-recommends --assume-yes ovmf cp /usr/share/OVMF/OVMF_CODE.secboot.fd /tmp/stage/ovmf/ovmf-code.fd cp /usr/share/OVMF/OVMF_VARS.fd /tmp/stage/ovmf/ovmf-vars.fd tar -C /tmp/stage -cf /export/ovmf.tar ovmf/# the only top level dir this layer is 'ovmf/'ovmf:
from:
type: scratchurl: stacker://ovmf-build/export/ovmf.tar
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:
where kernel-squashfs had a single layer in layers with sha of 65b1 and ovmf had a single laye in its layers with sha 72db3
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:
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:
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: