feat(agents): multi-arch checker and status page images on scratch #133

Closed
Sebi wants to merge 0 commits from feat/agent-images into main
pull from: feat/agent-images
Owner

Images uptimesebi-checker, uptimesebi-statuspage — linux/amd64, linux/arm64, linux/arm/v7, linux/arm/v6 (Raspberry Pi Zero/1 up to servers), no Windows/macOS.

  • FROM scratch, one layer: /usr/local/bin/<agent>, /var/lib/uptimesebi (volume, owned by 65532, also HOME), /tmp. User 65532:65532, OCI labels, exposed port.
  • HEALTHCHECK runs the new checker health / statuspage health subcommands (probe /healthz on the configured listen address; no shell in the image).
  • Status page image sets UPTIME_STATUSPAGE_CACHE_DIR=/var/lib/uptimesebi.
  • Binaries embed time/tzdata and x509roots/fallback (used only when the host has no roots) — nothing in a base image to keep up to date.

tools/image (go-containerregistry, no Docker, no emulation): builds the OCI index from dist/<platform>/<binary>, reproducible (-created = commit time), pushes with channel tags — edge + dated build tag from main, beta from prereleases, X.Y.Z, X.Y, stable, latest from releases; -suffix for the autoupdate variant (#129). Tested against an in-memory registry, including that an arm/v6 client pulls its own binary.

CI: the build job now cross-compiles all four platforms with version/commit injected (the commit date makes the build version the same in every job) and builds both agent images; pushed from main/tags with PACKAGE_TOKEN. Release tarballs for all four platforms.

Checked by hand with Docker 29: pushed to a local registry, ran the checker image against the dev API on :8080 (connected, healthy, docker exec … checker health OK) and the status page image with a named volume (healthy, /readyz 200, cache written as 65532). ARM images could not be executed here (no QEMU binfmt); their contents and platform selection are covered by the tests.

Image digests in the signed release metadata (comment on #128) follow with the release flow once #132 is in.

Refs #128

🤖 Generated with Claude Code

https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3

**Images** `uptimesebi-checker`, `uptimesebi-statuspage` — linux/amd64, linux/arm64, linux/arm/v7, linux/arm/v6 (Raspberry Pi Zero/1 up to servers), no Windows/macOS. - FROM scratch, one layer: `/usr/local/bin/<agent>`, `/var/lib/uptimesebi` (volume, owned by 65532, also `HOME`), `/tmp`. User `65532:65532`, OCI labels, exposed port. - `HEALTHCHECK` runs the new `checker health` / `statuspage health` subcommands (probe `/healthz` on the configured listen address; no shell in the image). - Status page image sets `UPTIME_STATUSPAGE_CACHE_DIR=/var/lib/uptimesebi`. - Binaries embed `time/tzdata` and `x509roots/fallback` (used only when the host has no roots) — nothing in a base image to keep up to date. **tools/image** (go-containerregistry, no Docker, no emulation): builds the OCI index from `dist/<platform>/<binary>`, reproducible (`-created` = commit time), pushes with channel tags — `edge` + dated build tag from main, `beta` from prereleases, `X.Y.Z`, `X.Y`, `stable`, `latest` from releases; `-suffix` for the autoupdate variant (#129). Tested against an in-memory registry, including that an arm/v6 client pulls its own binary. **CI**: the build job now cross-compiles all four platforms with version/commit injected (the commit date makes the build version the same in every job) and builds both agent images; pushed from main/tags with `PACKAGE_TOKEN`. **Release** tarballs for all four platforms. **Checked by hand** with Docker 29: pushed to a local registry, ran the checker image against the dev API on :8080 (connected, `healthy`, `docker exec … checker health` OK) and the status page image with a named volume (`healthy`, `/readyz` 200, cache written as 65532). ARM images could not be executed here (no QEMU binfmt); their contents and platform selection are covered by the tests. Image digests in the signed release metadata (comment on #128) follow with the release flow once #132 is in. Refs #128 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
Sebi added 1 commit 2026-11-23 17:33:56 +00:00
feat(agents): multi-arch checker and status page images on scratch
ci / image (pull_request) Successful in 7m15s
ci / test (pull_request) Successful in 9m5s
ci / lint (pull_request) Successful in 14m17s
ci / build (pull_request) Successful in 15m59s
a9f94fc492
uptimesebi-checker and uptimesebi-statuspage for linux/amd64, arm64,
arm/v7 and arm/v6, from a Raspberry Pi Zero to servers. tools/image
assembles them from the cross-compiled binaries without Docker or
emulation: one layer on an empty base with the binary, a data volume
owned by the unprivileged user and a HEALTHCHECK running the new
`checker health` / `statuspage health` commands. The binaries embed time
zone data and fallback CA roots, so no base image ever needs updating.
CI pushes them with the same channel tags as the main image; releases
carry tarballs for all four platforms.

Refs #128

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
Author
Owner

Merged into main as part of #134, which contains this branch.

Merged into main as part of #134, which contains this branch.
Sebi closed this pull request 2026-11-23 18:28:51 +00:00

Pull request closed

This pull request cannot be reopened because the branch was deleted.
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ZB-Server/uptimesebi#133