Files
harmony/fleet/scripts
Jean-Gabriel Gill-Couture 37e3c3847f fix(docker,build): tighten .dockerignore + multi-stage callout image
The build context for `podman build` was the workspace root —
fine for cargo's path-deps, but `COPY . .` shipped 147 GB to the
build daemon (target/, .claude/worktrees, .git, demos, network
test data, manual_mint scratch). Tightens the .dockerignore to
exclude the heavy items, dropping the context to ~180 MB.

The callout Dockerfile was also single-stage with a host pre-built
binary (`COPY target/release/harmony-nats-callout`), which conflicts
with the new strict .dockerignore (target/ is now excluded). Rewrote
to mirror the operator's multi-stage cargo-in-Docker shape — same
builder + runtime images, same USER 65532 convention.

Build script consequences:
* No more host-side `cargo build --release -p harmony-nats-callout`
  step. Both images now build self-contained from the workspace
  context.
* Two podman build invocations (operator + callout), then push.

The k3d e2e harness (`fleet_auth_callout::build_and_load_callout_image`)
was relying on the old single-stage Dockerfile via tempdir staging;
it now writes its own minimal single-stage Dockerfile inline so the
fast local-iteration path is unaffected by the production-shape
change in `nats/callout/Dockerfile`.

Also includes `topology.ensure_ready()` in fleet_staging_install
(needed for cert-manager bootstrap on first apply).

Verified: `podman build` for the callout completes successfully;
operator build is the same shape and was mid-compile in testing.
2026-05-05 12:34:19 -04:00
..