Skip to main content

Overlay image package for quicksand

Project description

quicksand-overlay-scaffold

Scaffold a new overlay image package for quicksand.

Overlay packages boot a base VM (default: Ubuntu), run setup commands to install software, and save the result as a compressed overlay. The overlay is bundled into a wheel so users can quicksand install and quicksand run it without rebuilding.

Usage

quicksand-overlay-scaffold my-agent-sandbox

This creates a my-agent-sandbox/ directory with:

my-agent-sandbox/
├── pyproject.toml              # Package metadata and entry points
├── hatch_build.py              # Edit _setup() with your install steps
├── README.md
└── my_agent_sandbox/
    ├── __init__.py             # ImageProvider entry point
    ├── sandbox.py              # Optional Sandbox subclass
    └── images/                 # Built overlay (populated during uv build)

Next Steps

  1. Edit hatch_build.py — add your install commands to _setup():
async def _setup(shell: Shell) -> None:
    await shell("apt-get update", timeout=120)
    await shell("apt-get install -y your-packages", timeout=300)
    await shell("pip install your-python-deps", timeout=300)
  1. Build the package (boots a VM, runs setup, saves overlay):
uv build --package my-agent-sandbox
  1. Test it:
quicksand run my-agent-sandbox

How It Works

During uv build, the hatch_build.py hook:

  1. Boots an Ubuntu VM with 4G memory, 4 CPUs, full network, 10G disk
  2. Runs your _setup(shell) function inside the VM
  3. Saves the VM state as a compressed qcow2 overlay
  4. Packages the overlay into a platform-specific wheel

Subsequent builds skip the VM step if images/manifest.json already exists. Delete the images/ directory to force a rebuild.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

quicksand_overlay_scaffold-0.3.3-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file quicksand_overlay_scaffold-0.3.3-py3-none-any.whl.

File metadata

File hashes

Hashes for quicksand_overlay_scaffold-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bb63861c7aff06eafc245b733cdd8362a8e21503291d6114dd08e55f2e3cb474
MD5 020439cf06acce8c5b974b6db0d0e7af
BLAKE2b-256 0fb70f9ef5098339df3a684d136313e733eeb1368a3af9623093af453c9c26a6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page