Skip to content

chore(infra): pin Rust base, add Helm probes, drop obsolete compose version#195

Merged
Depo-dev merged 2 commits into
mainfrom
chore/config-hygiene
Jul 3, 2026
Merged

chore(infra): pin Rust base, add Helm probes, drop obsolete compose version#195
Depo-dev merged 2 commits into
mainfrom
chore/config-hygiene

Conversation

@Depo-dev

@Depo-dev Depo-dev commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator

Part of the hardening sweep (item D: build reproducibility & config hygiene).

  • Docker: pin FROM rust:1-slim -> rust:1.83-slim in both Rust images for reproducible builds (floating major tag silently changed the toolchain). Verified by the Docker build + E2E jobs.
  • Helm: add liveness/readiness probes to the three deployments that lacked them — only go-api had any:
    • grpc-api: tcpSocket: 5000
    • nginx: tcpSocket: 80
    • indexer: httpGet /metrics on the Prometheus port 9090 (now exposed as a named port)
  • Compose: remove the obsolete top-level version: key from docker-compose.yml and docker-compose.dev.yml (Compose v2 ignores it and warns; the dev file's was malformed across two lines).

Depo-dev added 2 commits July 3, 2026 17:43
…lete compose version keys

- crates/{api,indexer}/Dockerfile: pin FROM rust:1-slim -> rust:1.83-slim
  for reproducible builds (edition 2021, all locked deps build on 1.83).
- helm: add liveness/readiness probes to the grpc-api (tcpSocket 5000),
  nginx (tcpSocket 80), and indexer (httpGet /metrics on the Prometheus
  port 9090, now exposed) deployments — only go-api had probes before.
- docker/docker-compose{,.dev}.yml: remove the obsolete top-level
  version: key (Compose v2 ignores it and warns; dev's was malformed).
1.83 was too old to parse the edition-2024 manifest of the idna_adapter
dependency (needs rustc >= 1.85); 1.88 matches the recent stable the
floating rust:1 tag was resolving to.
@Depo-dev Depo-dev merged commit 57aba25 into main Jul 3, 2026
8 checks passed
@Depo-dev Depo-dev deleted the chore/config-hygiene branch July 3, 2026 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant