This commit is contained in:
Chris Wanstrath 2026-02-19 00:08:14 -08:00
parent 424cd2a932
commit 7e45369681

View File

@ -12,7 +12,7 @@ function containerPath(hostPath: string): string {
return "/sandlot" + hostPath.slice(`${home}/.sandlot`.length)
}
if (hostPath.startsWith(`${home}/dev`)) {
return "/dev-host" + hostPath.slice(`${home}/dev`.length)
return "/host" + hostPath.slice(`${home}/dev`.length)
}
return hostPath
}
@ -42,7 +42,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 --mount type=bind,source=${home}/dev,target=/dev-host,readonly -v ${home}/.sandlot:/sandlot ubuntu:24.04 sleep infinity`.quiet()
await $`container run -d --name ${CONTAINER_NAME} -m 4G --mount type=bind,source=${home}/dev,target=/host,readonly -v ${home}/.sandlot:/sandlot ubuntu:24.04 sleep infinity`.quiet()
// Provision (as root)
log?.("Installing packages")