Skip to content

Commit 1910527

Browse files
committed
project runner: delete the overlayfs I just spent a day writing and testing :-(
1 parent 6c7c0c0 commit 1910527

File tree

2 files changed

+3
-158
lines changed

2 files changed

+3
-158
lines changed

src/packages/project-runner/run/overlay.ts

Lines changed: 0 additions & 154 deletions
This file was deleted.

src/packages/project-runner/run/podman.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ import { getCoCalcMounts, COCALC_SRC } from "./mounts";
1515
import { mountHome, setQuota } from "./filesystem";
1616
import { executeCode } from "@cocalc/backend/execute-code";
1717
import { join } from "path";
18-
import * as rootFilesystem from "./overlay";
18+
19+
const DEFAULT_IMAGE = "ubuntu:25.04";
1920

2021
const logger = getLogger("project-runner:podman");
2122
const 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

Comments
 (0)