feat(betrieb): Docker Compose und LXC-Installer

Ein Laufzeit-Paket (scripts/paket-bauen.sh) für beide Wege: Next standalone, worker als Bundle mit nur den nötigen Paketen, Migrationen ohne Prisma-CLI. Compose lokal komplett hochgefahren; der Installer auf pve-demo in einem echten Debian-13-LXC durchgelaufen.

Closes #019

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-12 17:35:41 +02:00
co-authored by Claude Opus 5.5
parent 7f07efe05d
commit 533a821087
17 changed files with 767 additions and 7 deletions
+32
View File
@@ -52,4 +52,36 @@ describe.runIf(shellcheckVerfuegbar())("shellcheck", () => {
})();
expect(ausgabe).toBe("");
}, 60_000);
it("findet in den Betriebsskripten nichts (Installer, Paket, CLI-Build)", () => {
const dateien = [
"deploy/install-lxc.sh",
"deploy/im-container.sh",
"scripts/paket-bauen.sh",
"scripts/cli-pruefen.sh",
"cli/bauen.sh",
];
const ausgabe = (() => {
try {
execFileSync(
"docker",
[
"run",
"--rm",
"-v",
`${process.cwd()}:/mnt:ro`,
"-w",
"/mnt",
"koalaman/shellcheck:stable",
...dateien,
],
{ stdio: "pipe" },
);
return "";
} catch (fehler) {
return String((fehler as { stdout?: Buffer }).stdout ?? fehler);
}
})();
expect(ausgabe).toBe("");
}, 60_000);
});