Skip to content

Commit e0f21e5

Browse files
stubbiclaude
andauthored
fix(agent-runtime): ship ripgrep in the base image (egress-locked sandbox) (#216)
OpenCode's skill tooling shells out to ripgrep. When `rg` is not on PATH it tries to download a pinned build from github.com at run time. The managed sandbox has locked-down egress, so that download hangs ~127s and then fails ("Transport error ... BurntSushi/ripgrep/releases/download/15.1.0/..."), burning run budget on every managed agent run before the agent gets to its actual work. Observed live: a CEO hire run spent 127s on the failed download, then ran out of budget during discovery and never reached the hire submit. The root repo Dockerfile already installs ripgrep; the agent-runtime base image drifted without it. Add `ripgrep` to the base apt install to restore parity so OpenCode uses the system binary and never reaches for the network. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 92d1910 commit e0f21e5

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

docker/agent-runtime/Dockerfile.base

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,14 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=${TARGETARCH:-amd64} \
2020
# is not on fork main. Add them back when git workspace population lands.
2121
FROM ubuntu:22.04 AS base
2222
ARG NODE_VERSION
23+
# ripgrep (rg): required on PATH so OpenCode's skill tooling uses the system
24+
# binary instead of trying to download a pinned build from github.com at run
25+
# time. The sandbox has locked-down egress, so that download hangs ~127s then
26+
# fails ("Transport error ... BurntSushi/ripgrep/releases/..."), wasting run
27+
# budget on every managed agent run. The root repo Dockerfile already ships rg;
28+
# this restores parity for the agent-runtime image.
2329
RUN apt-get update && apt-get install -y --no-install-recommends \
24-
ca-certificates curl git tini gnupg \
30+
ca-certificates curl git tini gnupg ripgrep \
2531
&& rm -rf /var/lib/apt/lists/* \
2632
&& curl -fsSL https://deb.nodesource.com/setup_${NODE_VERSION}.x | bash - \
2733
&& apt-get install -y --no-install-recommends nodejs \

0 commit comments

Comments
 (0)