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
@@ -28,6 +28,13 @@ import (
|
||||
)
|
||||
|
||||
func main() {
|
||||
if len(os.Args) == 2 && os.Args[1] == "health" {
|
||||
if err := health(); err != nil {
|
||||
fmt.Fprintln(os.Stderr, err)
|
||||
os.Exit(1)
|
||||
}
|
||||
return
|
||||
}
|
||||
log, level := platform.NewLogger("statuspage")
|
||||
// Route the standard log package and dependencies through the same handler.
|
||||
slog.SetDefault(log)
|
||||
@@ -168,3 +175,12 @@ func resolveCacheDir(dir string) (string, error) {
|
||||
}
|
||||
return filepath.Join(base, "uptimesebi-statuspage"), nil
|
||||
}
|
||||
|
||||
// health probes the running statuspage in this container.
|
||||
func health() error {
|
||||
cfg, err := config.Load[config.StatusPage]()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return platform.ProbeLocal(context.Background(), cfg.Listen)
|
||||
}
|
||||
Reference in new issue
Block a user