containerd / nydus-snapshotter

A containerd snapshotter with data deduplication and lazy loading in P2P fashion
https://nydus.dev/
Apache License 2.0
156 stars 88 forks source link

converter: support appending files to bootstrap layer #591

Closed imeoer closed 2 months ago

imeoer commented 2 months ago

Support AppendFiles option on converter.Merge method, AppendFiles specifies the files that need to be appended to the bootstrap layer.

This option allows the user to place some files in the nydus bootstrap layer, for example, the user can place metadata info generated at build time, e.g. named image/metadata.json.

And this usage does not affect the image/image.boot bootstrap file that is accessed by the nydus runtime.

sctb512 commented 2 months ago

LGTM.

Is there any example for this PR?

imeoer commented 2 months ago

LGTM.

Is there any example for this PR?

Haven't yet, will submit in another PR, thanks!