@@ -15,7 +15,8 @@ import { getCoCalcMounts, COCALC_SRC } from "./mounts";
15
15
import { mountHome , setQuota } from "./filesystem" ;
16
16
import { executeCode } from "@cocalc/backend/execute-code" ;
17
17
import { join } from "path" ;
18
- import * as rootFilesystem from "./overlay" ;
18
+
19
+ const DEFAULT_IMAGE = "ubuntu:25.04" ;
19
20
20
21
const logger = getLogger ( "project-runner:podman" ) ;
21
22
const children : { [ project_id : string ] : any } = { } ;
@@ -39,7 +40,6 @@ export async function start({
39
40
}
40
41
41
42
const home = await mountHome ( project_id ) ;
42
- const rootfs = await rootFilesystem . mount ( { project_id, config } ) ;
43
43
await mkdir ( home , { recursive : true } ) ;
44
44
await ensureConfFilesExists ( home ) ;
45
45
const env = getEnvironment ( {
@@ -76,7 +76,7 @@ export async function start({
76
76
args . push ( "-e" , `${ name } =${ env [ name ] } ` ) ;
77
77
}
78
78
79
- args . push ( "--rootfs" , rootfs ) ;
79
+ args . push ( config ?. image ?? DEFAULT_IMAGE ) ;
80
80
args . push ( nodePath ) ;
81
81
args . push ( script , "--init" , "project_init.sh" ) ;
82
82
@@ -111,7 +111,6 @@ export async function stop({ project_id }) {
111
111
] ) ;
112
112
} catch { }
113
113
delete children [ project_id ] ;
114
- await rootFilesystem . unmount ( project_id ) ;
115
114
}
116
115
}
117
116
0 commit comments