build(runtime): follow ZeroClaw v0.8.5 onto Rust 1.98
deploy / test (push) Successful in 4m47s
deploy / build (push) Successful in 59s

v0.8.5 moved upstream's own container builders to rust:1.98-slim (#9527) and
kept 1.96 only as the declared SOURCE floor - what the crates promise, not what
upstream actually builds with. We were pinned at 1.96 and had never compiled
this code on it; the local check ran on 1.97. Track upstream instead of
trusting the floor, staying on the bookworm variant so the binary's glibc still
matches the debian:bookworm-slim runtime stage.

CARGO_BUILD_JOBS defaults to 6 because the whole fleet is offline and gw-04 is
now both the only reachable x86_64 host and the box serving production, so a
build must not take every core from the services running beside it.

Built and deployed: clawmates-runtime:v085 reports zeroclaw 0.8.5, health 200
with every component ok including the new relay, pairing survived the recreate,
and the claude_cli/kimi_cli slots still resolve alongside upstream's grok_cli.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WZb5A2kfVfjpdwSochkuHz
This commit is contained in:
Omar Sobh
2026-09-06 10:20:24 -07:00
co-authored by Claude Opus 5
parent 2a3409ec53
commit 0b9baa942f
+9 -2
View File
@@ -4,12 +4,19 @@
# Requires BuildKit (cache mounts). Build context = the zeroclaw source tree. # Requires BuildKit (cache mounts). Build context = the zeroclaw source tree.
# syntax=docker/dockerfile:1 # syntax=docker/dockerfile:1
# bookworm-pinned so the binary's glibc matches the bookworm runtime stage # bookworm-pinned so the binary's glibc matches the bookworm runtime stage.
FROM rust:1.96-slim-bookworm AS build # 1.98 tracks upstream: v0.8.5 moved ZeroClaw's own container builders to
# rust:1.98-slim (#9527) and keeps 1.96 only as the declared SOURCE floor, so
# the floor is what the crates promise, not what upstream actually builds with.
FROM rust:1.98-slim-bookworm AS build
RUN apt-get update && apt-get install -y --no-install-recommends \ RUN apt-get update && apt-get install -y --no-install-recommends \
pkg-config build-essential cmake libssl-dev ca-certificates git \ pkg-config build-essential cmake libssl-dev ca-certificates git \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
WORKDIR /app WORKDIR /app
# gw-04 is the only reachable x86_64 host AND the production host, so the build
# must not take every core from the services it is running beside.
ARG CARGO_BUILD_JOBS=6
ENV CARGO_BUILD_JOBS=${CARGO_BUILD_JOBS}
COPY . . COPY . .
# Ensure the gateway's include_dir!("../../web/dist") target exists at compile time. # Ensure the gateway's include_dir!("../../web/dist") target exists at compile time.
RUN mkdir -p web/dist RUN mkdir -p web/dist