From #39 (comment)
Could be interesting also to support a mode where you rechunk just those "top" layers and leave the base layers alone.
The idea here being that we leave alone the input FROM image and just chunk the added content. Benefits:
- if you have a lot of applications images that re-use a common base, then you continue to get layer re-use (like exists today if you don't chunk)
- this one is a specialized use case, but today we build a rhel-coreos-base layer and then an openshift-node lyaer on top of that. Servers are initially started from rhel-coreos-base layer and then switched to the openshift-node later. Today we can only chunk the base layer and not the node layer if we want layer re-use on the first switch/pivot. With this new feature we could chunk both layers independently.
Some ideas on how to implement this:
- teach chunkah how to look at ociarchives as inputs in order to not chunk those parts
- teach chunkah how to accept multiple filesystem trees and compute a diff. i.e. /base and /target and only chunk /target-/base and then somehow recombine the new chunked oci-archive on top of the base FROM
From #39 (comment)
The idea here being that we leave alone the input FROM image and just chunk the added content. Benefits:
Some ideas on how to implement this: