From 652bde387dcde9d27ae2265eb34e2d0fffd4dc21 Mon Sep 17 00:00:00 2001 From: Said Urtabajev Date: Tue, 28 Apr 2026 23:48:58 +0300 Subject: [PATCH] podman: wire OPENCLAW_INSTALL_BROWSER build-arg to setup script (#63407) * podman: wire OPENCLAW_INSTALL_BROWSER build-arg to setup script Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * chore: re-trigger CI --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- docs/install/podman.md | 1 + scripts/podman/setup.sh | 3 +++ 2 files changed, 4 insertions(+) diff --git a/docs/install/podman.md b/docs/install/podman.md index 012ad787b96..c87386071e3 100644 --- a/docs/install/podman.md +++ b/docs/install/podman.md @@ -63,6 +63,7 @@ Optional build/setup env vars: - `OPENCLAW_IMAGE` or `OPENCLAW_PODMAN_IMAGE` -- use an existing/pulled image instead of building `openclaw:local` - `OPENCLAW_DOCKER_APT_PACKAGES` -- install extra apt packages during image build - `OPENCLAW_EXTENSIONS` -- pre-install plugin dependencies at build time +- `OPENCLAW_INSTALL_BROWSER` -- pre-install Chromium and Xvfb for browser automation (set to `1` to enable) Container start: diff --git a/scripts/podman/setup.sh b/scripts/podman/setup.sh index 6f4209d8cc8..4c59831901c 100755 --- a/scripts/podman/setup.sh +++ b/scripts/podman/setup.sh @@ -365,6 +365,9 @@ fi if [[ -n "${OPENCLAW_EXTENSIONS:-}" ]]; then BUILD_ARGS+=(--build-arg "OPENCLAW_EXTENSIONS=${OPENCLAW_EXTENSIONS}") fi +if [[ -n "${OPENCLAW_INSTALL_BROWSER:-}" ]]; then + BUILD_ARGS+=(--build-arg "OPENCLAW_INSTALL_BROWSER=${OPENCLAW_INSTALL_BROWSER}") +fi if [[ "$OPENCLAW_IMAGE" == "openclaw:local" ]]; then echo "Building image $OPENCLAW_IMAGE ..."