apko icon indicating copy to clipboard operation
apko copied to clipboard

Support for one-layer-per-package?

Open sipsma opened this issue 3 years ago • 3 comments

It seems like right now the image exported by apko is just a single layer. Is it in apko's scope to eventually support multi-layer images? I specifically am imagining that each package that gets installed (including each transitive dependency) would become its own single layer. The exported image would then just consist of the layers for each package, topologically sorted based on the dependency DAG.

This type of approach would be beneficial for caching in many ways, one example being that if you pushed an image built by apko to a registry and the registry already has some or all of the layers, you could skip pushing them.

sipsma avatar Mar 07 '22 04:03 sipsma

This is really not so easy to do, but patches would be accepted if somebody wants to try it.

kaniini avatar Mar 07 '22 16:03 kaniini

Cool, I will likely not have time in the immediate future, but I may give it a shot sometime if no one else has. Good to know it's in scope either way, thanks.

sipsma avatar Mar 07 '22 17:03 sipsma

Adding issue to global tracking board

chainguardian avatar Mar 19 '22 01:03 chainguardian