Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
Podman: the whole warning in the installer's last words; the e2e checks the install's mark in the container
milind-soni06c1ba35c748
diff --git a/deploy/e2e/podman.sh b/deploy/e2e/podman.shindex 3566e54710..798c429bcd 100755--- a/deploy/e2e/podman.sh+++ b/deploy/e2e/podman.sh@@ -119,6 +119,9 @@ healthy || fail "the server does not answer on 127.0.0.1:8799"health_test=$(podman inspect -f '{{json .Config.Healthcheck.Test}}' openmausbot)# shellcheck disable=SC2016 # the literal text the check must holdgrep -qF '${OMB_PORT:-8799}/api/health' <<<"$health_test" || fail "the health check does not read OMB_PORT when it runs: $health_test"+# The mark the app knows this install by (its update command): the folder, as this user writes it.+# shellcheck disable=SC2016,SC2088 # read in the container; the ~ is text+[ "$(in_server sh -c 'printf %s "$OMB_PODMAN_SERVICE"')" = "~/.local/share/openmausbot" ] || fail "the server does not see OMB_PODMAN_SERVICE=~/.local/share/openmausbot"ss -ltnH >"$OUT/listening.txt"grep -q "127.0.0.1:8799 " "$OUT/listening.txt" || fail "nothing listens on 127.0.0.1:8799: $(cat "$OUT/listening.txt")"[ -z "$(new_outside)" ] || fail "the server listens beyond this machine without --lan: $(new_outside)"diff --git a/deploy/podman/install.sh b/deploy/podman/install.shindex eea1881df6..391801d3fa 100755--- a/deploy/podman/install.sh+++ b/deploy/podman/install.sh@@ -485,10 +485,14 @@ finish() {say " Update $INSTALL_DIR/update.sh"say " Data $DATA_DIR"say ""- say "Warning: it shares this machine's network, which isolates less than the Docker install. Any port a bot or a tool"- say "opens on 0.0.0.0 is open on every address of this machine, a public one too, whatever --local says. Bots reach every"- say "service on this machine's loopback, and every account on it counts as the owner. Use it on a machine only you sign"- say "in to, behind a host firewall: https://github.com/milind-soni/OpenMausBot/blob/main/docs/self-hosting.md#podman-rootless-as-a-service"+ say "Warning: it shares this machine's network, which isolates less than the Docker install."+ say " - Any port a bot or a tool opens on 0.0.0.0 is open on every address of this machine, a public one too, whatever"+ say " --local says. Bots run unboxed, beside the data folder that holds the engines' logins."+ say " - Bots reach every service on this machine's loopback: databases, other programs' admin ports."+ say " - Every account and program on this machine counts as the owner on port $SERVER_PORT, and can attach to Chrome's"+ say " debugging port."+ say "Use it on a machine only you sign in to, behind a host firewall:"+ say "https://github.com/milind-soni/OpenMausBot/blob/main/docs/self-hosting.md#podman-rootless-as-a-service"say ""if linger_on; thensay "It starts at boot, without anyone logged in."diff --git a/docs/self-hosting.md b/docs/self-hosting.mdindex 13d4acf749..82db9e61e8 100644--- a/docs/self-hosting.md+++ b/docs/self-hosting.md@@ -237,8 +237,9 @@ that worked. Run it as your user, without `sudo`. The app's **Update server**button does not run it on this install yet: run `update.sh` yourself.When a rollback cannot find the old version by its digest, it names thecopy it kept on this machine, `openmausbot-before-update:local`, in the-unit and in `.env`. Running the installer again keeps that image (it is-never downloaded) until the next `update.sh`.+unit and in `.env`. Running the installer again never downloads that name:+it pins the copy by the digest it came with, or, when it has none, keeps+it as it is and says so, until the next `update.sh`.**Uninstall.** Run the same command with `--uninstall`. The data stays.Some of its files can belong to the container's other user ids, so removediff --git a/scripts/testing/podman-installer.test.ts b/scripts/testing/podman-installer.test.tsindex a136129140..ef82c8550d 100644--- a/scripts/testing/podman-installer.test.ts+++ b/scripts/testing/podman-installer.test.ts@@ -125,6 +125,9 @@ describe.skipIf(!posix)("deploy/podman/install.sh", () => {expect(box.read(join(box.dir, ".env"))).toBe(`OMB_IMAGE=${DIGEST}\n`);expect(done.stdout).toContain("MausBot is running as your user's service (openmausbot), on http://127.0.0.1:8811.");expect(done.stdout).toContain("Warning: it shares this machine's network, which isolates less than the Docker install.");+ expect(done.stdout).toContain("Bots run unboxed, beside the data folder that holds the engines' logins.");+ expect(done.stdout).toContain("Bots reach every service on this machine's loopback: databases, other programs' admin ports.");+ expect(done.stdout).toContain("Every account and program on this machine counts as the owner on port 8811, and can attach to Chrome's");expect(done.stdout).toContain("It starts at boot, without anyone logged in.");});