Describe the CI host as stpvm, not the Pi
Test and publish / test (push) Successful in 2m59s
Test and publish / publish (push) Failing after 9s

The site and its runner moved from the arm64 Pi to stpvm (x86-64,
Docker 29), so the comments about the build host, its Docker version
and the image architecture were wrong.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-10-15 17:58:03 +01:00
co-authored by Claude Opus 5.5
parent b7021ca117
commit 7c424ca3d7
6 changed files with 17 additions and 16 deletions
+5 -5
View File
@@ -65,7 +65,7 @@ The site's `docker-compose.yml` runs the published image as service `jobs`, with
A push to `main` here runs `.gitea/workflows/ci.yaml`. It tests, builds and pushes `adam-french.co.uk/adamf/job-tracker:<sha>` and `:latest`, then rolls the site onto the new image and waits for the container's healthcheck. A tracker that does not come up healthy fails the run, with its last log lines in the output.
The roll-out is the same command you would run by hand on the Pi:
The roll-out is the same command you would run by hand on the host:
```
cd ~/deploy/web_server && docker compose pull jobs && docker compose up -d --no-deps jobs
@@ -82,7 +82,7 @@ The image lives in this Gitea's container registry. Two things make that less si
So the apex server block in web_server's `nginx/nginx.conf.template` proxies `/v2/` to Gitea and redirects everything else. That was added in web_server commit `da2ab9f`.
1. **Check Gitea's registry is on.** On the Pi, bypassing nginx:
1. **Check Gitea's registry is on.** On the host, bypassing nginx:
```
curl -si http://localhost:3000/v2/ | head -5
```
@@ -92,7 +92,7 @@ So the apex server block in web_server's `nginx/nginx.conf.template` proxies `/v
3. **Make a token.** In Gitea, go to Settings → Applications and create a token with **package: read and write**.
4. **Round trip a throwaway image** on the Pi:
4. **Round trip a throwaway image** on the host:
```
docker login adam-french.co.uk -u adamf # the token is the password
docker pull alpine:3.22
@@ -108,7 +108,7 @@ So the apex server block in web_server's `nginx/nginx.conf.template` proxies `/v
5. **Give CI the credentials.** In this repo's Settings → Actions → Secrets, add `REGISTRY_USER` (`adamf`) and `REGISTRY_TOKEN` (the token). The next push to `main` publishes the image.
The Pi also has to be logged in to pull the image. The `docker login` in step 4 covers that; it is stored in that user's `~/.docker/config.json`.
The host also has to be logged in to pull the image. The `docker login` in step 4 covers that; it is stored in that user's `~/.docker/config.json`.
### One-off cutover from the old in-backend tracker
@@ -116,7 +116,7 @@ This was written while the tracker still had its email pipeline. Steps 4 and 5's
Do the registry setup above first: step 6 needs the image.
Run these on the Pi, in this order:
Run these on the host, in this order:
1. **Stop the old schedulers.** On the old backend, set `EMAIL_SYNC_ENABLED=false` and `JOB_LEADS_ENABLED=false`, so mail and boards are never processed twice.
2. **Create the database and role.** Use the values you put in the site's `.env` as `POSTGRES_JOBS_USER`, `POSTGRES_JOBS_PASSWORD` and `POSTGRES_JOBS_DB`: