mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-12 11:37:49 +00:00
fix: keep host plugin registry out of live Docker state
This commit is contained in:
parent
0c020cdb7a
commit
134cc64aff
3 changed files with 24 additions and 2 deletions
18
test/scripts/live-docker-stage.test.ts
Normal file
18
test/scripts/live-docker-stage.test.ts
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
import { readFileSync } from "node:fs";
|
||||
import path from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
import { describe, expect, it } from "vitest";
|
||||
|
||||
const repoRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "../..");
|
||||
const stageScriptPath = path.join(repoRoot, "scripts/lib/live-docker-stage.sh");
|
||||
|
||||
describe("live Docker state staging", () => {
|
||||
it("keeps host-only generated registry state out of the container copy", () => {
|
||||
const script = readFileSync(stageScriptPath, "utf8");
|
||||
|
||||
expect(script).toContain("--exclude=workspace");
|
||||
expect(script).toContain("--exclude=sandboxes");
|
||||
expect(script).toContain("--exclude=plugins/installs.json");
|
||||
expect(script).toContain("host-absolute paths");
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue