grepBinary() resolves rg from PATH since the embedded binaries were dropped, but nothing installed it: not the GitHub Actions runner (CI grep tests fell back to direct search and failed), and not the archie-agent image (Dockerfile) that runs grep tool calls for sandboxed tasks. Production was masked by carina's host already having ripgrep installed system-wide for archied's own tool execution. Dockerfile.archied is unused by the current deployment (docker-compose builds only Dockerfile; archied runs on the host under systemd) -- corrected its stale "ripgrep is embedded" comment rather than adding the package to an image nothing builds from.
39 lines
1.8 KiB
Docker
39 lines
1.8 KiB
Docker
# archied — the archie daemon, built as a standalone container.
|
|
# Run via docker compose alongside NATS.
|
|
|
|
FROM golang:1.26-trixie AS builder
|
|
WORKDIR /src
|
|
COPY go.mod go.sum ./
|
|
RUN go mod download
|
|
COPY . .
|
|
ARG GATEWAY_VERSION=dev
|
|
ARG RUNTIME_VERSION=dev
|
|
RUN CGO_ENABLED=0 go build \
|
|
-ldflags "-X main.gatewayVersion=${GATEWAY_VERSION} -X main.runtimeVersion=${RUNTIME_VERSION}" \
|
|
-o /usr/local/bin/archied ./cmd/archied/
|
|
# archied is static, but this can't be scratch: in inprocess mode the daemon
|
|
# runs agent tools itself, and the shell tool invokes bash; codesearch shells
|
|
# to git. Worktrees don't count — internal/worktree uses go-git. This image
|
|
# is not part of the current deployment (docker-compose.yml only builds
|
|
# Dockerfile, the agent image; archied runs on the host under systemd), but
|
|
# if it's ever used in inprocess mode, grep needs ripgrep on PATH -- it is
|
|
# no longer embedded in the binary.
|
|
#
|
|
# No Node: the builtin tools (read/write/edit/find/grep/shell/test) cover what
|
|
# desktop-commander did. Any npx-launched MCP stdio server will now fail to
|
|
# start, and a failed provider rolls back the tool-provider family and exits
|
|
# the daemon — so remove tools.mcp_servers entries needing npx before
|
|
# deploying this image.
|
|
FROM debian:trixie-slim
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
ca-certificates git && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
COPY --from=builder /usr/local/bin/archied /usr/local/bin/archied
|
|
ARG GATEWAY_VERSION=dev
|
|
ARG RUNTIME_VERSION=dev
|
|
LABEL org.opencontainers.image.version="${GATEWAY_VERSION}"
|
|
LABEL cloud.catlow.archie.runtime-version="${RUNTIME_VERSION}"
|
|
COPY CHANGELOG.archied.md /usr/share/archie/CHANGELOG.archied.md
|
|
COPY CHANGELOG.archie.md /usr/share/archie/CHANGELOG.archie.md
|
|
ENTRYPOINT ["archied"]
|