the sandbox
This commit is contained in:
parent
1b7219e666
commit
9eae7c0951
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user