Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is the subset of #281.
This commit adds "additional layer store" that enables lazy pulling on Podman/CRI-O. Instead of the snapshotter API, this directly exposes layers on the filesystem, following the required directory structure.
The command which provides such directory structure is
stargz-store
(cmd/stargz-store
). This is implemented usingfs/layer
pkg of this project. This commit comes with scripts to test (script/cri-o
) and benchmark (script/benchmark-podman
) with Podman and CRI-O.The following command mounts the store at
<mountpoint>
:This store exposes the following structure required as an additional layer store:
There are also other APIs for debugging:
The following configuration is required on
/etc/containers/storage.conf
.Here,
/var/lib/stargz-store/store
is an example of<mountpoint>
.script/demo
for additional layer store as well.dedupe scripts:will address in Switch from shellscripts-based CI to Go-based CI #310script/benchmark-containerd
andscript/benchmark-podman
are very similar.