@@ -15,7 +15,8 @@ import { getCoCalcMounts, COCALC_SRC } from "./mounts";
1515import { mountHome , setQuota } from "./filesystem" ;
1616import { executeCode } from "@cocalc/backend/execute-code" ;
1717import { join } from "path" ;
18- import * as rootFilesystem from "./overlay" ;
18+
19+ const DEFAULT_IMAGE = "ubuntu:25.04" ;
1920
2021const logger = getLogger ( "project-runner:podman" ) ;
2122const children : { [ project_id : string ] : any } = { } ;
@@ -39,7 +40,6 @@ export async function start({
3940 }
4041
4142 const home = await mountHome ( project_id ) ;
42- const rootfs = await rootFilesystem . mount ( { project_id, config } ) ;
4343 await mkdir ( home , { recursive : true } ) ;
4444 await ensureConfFilesExists ( home ) ;
4545 const env = getEnvironment ( {
@@ -76,7 +76,7 @@ export async function start({
7676 args . push ( "-e" , `${ name } =${ env [ name ] } ` ) ;
7777 }
7878
79- args . push ( "--rootfs" , rootfs ) ;
79+ args . push ( config ?. image ?? DEFAULT_IMAGE ) ;
8080 args . push ( nodePath ) ;
8181 args . push ( script , "--init" , "project_init.sh" ) ;
8282
@@ -111,7 +111,6 @@ export async function stop({ project_id }) {
111111 ] ) ;
112112 } catch { }
113113 delete children [ project_id ] ;
114- await rootFilesystem . unmount ( project_id ) ;
115114 }
116115}
117116
0 commit comments