Read-only data mounts with a disposable writable layer #6
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Motivation
A project can depend on large test data that is not in Git (tens of GB of
scene files, XML, images). The agent must be able to read all of it, should be
able to write next to it during a test run (open a file, save it, produce
output), and must never change the host copy.
Copying it into the VM is too slow and too big. Cloning is not an option.
Proposal
Manifest entry
data = <path>(see #3 (Multi-repo projects: design)), mountedread-only with
sbx create ... <path>:ro.Inside the VM, an overlayfs over the read-only mount:
The project sees its usual sibling path and can write; writes land in the
VM only.
agentbox data reset [name]drops the upper layer, back to the host state.agentbox-orientand the briefing say which paths are data mounts, thatwrites are discarded on reset, and how much the upper layer holds.
Open points
template, and does sbx's mount type (virtiofs?) work as a lower layer?
Measure before relying on it.
status.Done when
e2e: a fake data folder is visible at its sibling path, a write inside the VM
succeeds, the host file is unchanged, and
data resetrestores the original.