Usage
captures defaults to @external:
every program Mirage does not have itself. Name @python to run
Python in the pod too.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Run captured programs in a Kubernetes pod, including a Nitro Sandbox on EKS.
captures defaults to @external:
every program Mirage does not have itself. Name @python to run
Python in the pod too.
from mirage import RAMVFS, MountMode, Workspace
ws = Workspace(
{"/data": RAMVFS()},
mode=MountMode.EXEC,
machines={"box": {"provider": "kubernetes", "pod": "mirage-box", "captures": ["@python", "@external"]}},
)
await ws.shell("python3 -c 'print(1 + 1)'")