feat(agents): multi-arch checker and status page images on scratch
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
This commit is contained in:
1 parent
e17e7aab41
commit
a9f94fc492
12 files changed
+638
-9
No files matched your search
@@ -77,7 +77,7 @@ One image contains all three commands; `api` is the default entrypoint. Images a
|
||||
| `beta` | the newest prerelease (`1.5.0-beta.N`) |
|
||||
| `edge` | every commit on `main` |
|
||||
|
||||
Each [release](https://git.zb-server.de/ZB-Server/uptimesebi/releases) also carries Linux binaries (amd64, arm64) with checksums and the changelog. Or build the image yourself:
|
||||
Each [release](https://git.zb-server.de/ZB-Server/uptimesebi/releases) also carries Linux binaries (amd64, arm64, armv7, armv6) with checksums and the changelog. Or build the image yourself:
|
||||
|
||||
```sh
|
||||
docker build -t uptimesebi .
|
||||
@@ -87,6 +87,13 @@ docker run -d -e UPTIME_API_URL=https://uptime.example.com -e UPTIME_AGENT_TOKEN
|
||||
--entrypoint /usr/local/bin/checker uptimesebi
|
||||
```
|
||||
|
||||
Checkers and status page servers also come as small images of their own, `uptimesebi-checker` and `uptimesebi-statuspage` (same tags), for Linux on amd64, arm64, arm/v7 and arm/v6, so they run on anything from a Raspberry Pi Zero to a server; `docker pull` picks the right one. They contain only the binary, run as an unprivileged user and keep their data in the volume `/var/lib/uptimesebi`:
|
||||
|
||||
```sh
|
||||
docker run -d --restart unless-stopped -e UPTIME_API_URL=https://uptime.example.com -e UPTIME_AGENT_TOKEN=usa_… \
|
||||
git.zb-server.de/zb-server/uptimesebi-checker:latest
|
||||
```
|
||||
|
||||
Docker monitors ask the Docker API of the checker's host. Mount its socket read-only (`-v /var/run/docker.sock:/var/run/docker.sock:ro`) into checkers that may see private networks; shared checkers never use a socket, and installations without one can switch the Docker type off in the admin panel.
|
||||
|
||||
All settings are environment variables; [`.env.example`](.env.example) lists them with explanations. In particular:
|
||||
|
||||
Reference in new issue
Block a user