Container
The image is published for these platforms:
| Platform | Hardware |
|---|---|
linux/amd64 | 64-bit x86 |
linux/arm64 | 64-bit ARM, such as a Raspberry Pi 4 or 5 |
linux/arm/v6 | 32-bit ARM, such as a Raspberry Pi Zero |
linux/386 | 32-bit x86 |
linux/riscv64 | 64-bit RISC-V |
Pull it from either registry:
docker pull ghcr.io/nicholas-fedor/gpsuEach release is tagged latest, by major version such as 1, by minor version such as 1.2, and by full version such as 1.2.3. Pin a version tag in production.
Image details
| Item | Value |
|---|---|
| Contents | The gpsu binary, CA certificates, and time zone data |
| User | 65534 (nobody) |
| Entry point | /gpsu |
| Default command | serve |
| Root file system | Can be mounted read-only |
Mounts
| Path | Contents |
|---|---|
/var/lib/gpsu | The SQLite database and its backups, on a local volume |
/run/secrets/ | Secret files such as the seal key |
Warning
SQLite needs local storage. Don’t put /var/lib/gpsu on a network file system.
Ports
| Port | Serves |
|---|---|
9465 | Metrics at /metrics and health checks at /healthz and /readyz |
8080 | The web UI and the API, at the GPSU_LISTEN address |
Run it
docker run -d --name gpsu \
--read-only \
--stop-timeout 30 \
-e GPSU_PUBLIC_URL=https://gpsu.example.com \
-e GPSU_SEAL_KEY_FILE=/run/secrets/seal-key \
-v /srv/gpsu/secrets:/run/secrets:ro \
-v gpsu-data:/var/lib/gpsu \
-p 9465:9465 -p 8080:8080 \
ghcr.io/nicholas-fedor/gpsuThe startup settings come from the environment. Read the setup code from the log with docker logs gpsu. Then follow the Quick Start.
Note
docker stop sends SIGTERM. gpsu then hands off every server’s fans to the iDRAC before it exits. --stop-timeout 30 gives it time to finish.
In Kubernetes, set readOnlyRootFilesystem: true and drop every capability.
Important
Let only one gpsu instance control each server. Two instances undo each other’s fan commands.