the sandbox

This commit is contained in:
Chris Wanstrath 2026-02-18 23:41:21 -08:00
parent 1b7219e666
commit 9eae7c0951

View File

@ -30,7 +30,7 @@ export async function ensure(log?: (msg: string) => void): Promise<void> {
// Create from scratch
const home = homedir()
log?.("Pulling image & creating container")
await $`container run -d --name ${CONTAINER_NAME} -m 4G -v ${home}/dev:${home}/dev -v ${home}/.sandlot:${home}/.sandlot ubuntu:24.04 sleep infinity`.quiet()
await $`container run -d --name ${CONTAINER_NAME} -m 4G --mount type=bind,source=${home}/dev,target=${home}/dev,readonly -v ${home}/.sandlot:${home}/.sandlot ubuntu:24.04 sleep infinity`.quiet()
// Provision (as root)
log?.("Installing packages")