Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
Installer: do not name a digest as a version; the real run tolerates other containers on its host
milind-sonic70b9a454fd1
diff --git a/deploy/e2e/run.sh b/deploy/e2e/run.shindex 97e44ad07f..5698917e19 100755--- a/deploy/e2e/run.sh+++ b/deploy/e2e/run.sh@@ -49,6 +49,7 @@ install_until_https() { # evidence-file [the install command, when not the usualstep "the checks alone, with a name that points nowhere: one thing to fix, nothing changed"status=0+containers_before=$(sudo docker ps -aq | sort)as_root sh "$ROOT/deploy/install.sh" --check --domain "$DOMAIN" >"$OUT/check.txt" 2>&1 || status=$?cat "$OUT/check.txt"[ "$status" = 1 ] || fail "--check exited $status, not 1"@@ -58,7 +59,7 @@ for line in "operating system: Ubuntu 24.04" "processor: x86-64" "processor corecontains "$OUT/check.txt" " ok $line" "--check did not pass: $line"done[ ! -e "$DIR" ] || fail "--check made $DIR"-[ -z "$(sudo docker ps -aq)" ] || fail "--check started a container"+[ "$(sudo docker ps -aq | sort)" = "$containers_before" ] || fail "--check started a container"step "the checks pass once the DNS record is set aside""${INSTALL[@]}" --check --domain "$DOMAIN" | tee "$OUT/check-ready.txt"diff --git a/deploy/install.sh b/deploy/install.shindex c248ab8dae..c5881def60 100755--- a/deploy/install.sh+++ b/deploy/install.sh@@ -724,7 +724,7 @@ prepare_sandbox() {if ! image_has_sandbox; thenunset_env COMPOSE_FILESANDBOX=absent- note "MausBot ${IMAGE##*[:@]} has no bots' sandbox yet. Run this command again after updating to a version that has it."+ note "This MausBot version has no bots' sandbox yet. Run this command again after updating to a version that has it."returnfiif ! fetch_sandbox; then@@ -797,7 +797,7 @@ install_server() {write_composewrite_caddyfilewrite_settings- say "Downloading MausBot (${IMAGE##*:})..."+ say "Downloading MausBot..."compose pull -q || fail "MausBot could not be downloaded (Docker's message is above). Check this server's outbound HTTPS, then run this again."place_updateprepare_sandboxdiff --git a/scripts/server-installer.test.ts b/scripts/server-installer.test.tsindex 1a48835c13..d724d33b36 100644--- a/scripts/server-installer.test.ts+++ b/scripts/server-installer.test.ts@@ -442,7 +442,7 @@ describe.skipIf(!posix)("deploy/install.sh", () => {expect(asked.docker.some((call) => call.includes("box-check"))).toBe(false);const old = run(["--domain", "maus.example.com"], { env: { FAKE_IMAGE_ENV: '["PATH=/usr/bin","HOME=/data"]' } });expect(old.status).toBe(0);- expect(old.stdout).toContain("note MausBot v0.1.151 has no bots' sandbox yet. Run this command again after updating to a version that has it.");+ expect(old.stdout).toContain("note This MausBot version has no bots' sandbox yet. Run this command again after updating to a version that has it.");expect(readFileSync(join(old.install, ".env"), "utf8")).not.toContain("COMPOSE_FILE=");expect(old.calls.some((call) => call.includes("deploy/box/"))).toBe(false);});