diff options
| author | Danilo M. <danix@danix.xyz> | 2026-09-25 10:05:08 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-09-25 10:05:08 +0200 |
| commit | ded593dc529916f1bf23f2df38f975db1c1e69e8 (patch) | |
| tree | 7f3c60069cddd61789c068d30578cb69755dfeec /README.md | |
| parent | 2fd4fa399e980e3ea351df435d0f0eb2841679d8 (diff) | |
| download | sbo-dockerbuild-ded593dc529916f1bf23f2df38f975db1c1e69e8.tar.gz sbo-dockerbuild-ded593dc529916f1bf23f2df38f975db1c1e69e8.zip | |
test-build: add --pull to refresh a stale local image
require_image pulled only when the image was missing, so once the
image-builder rebuilt a registry tag the local copy went stale with no
warning. --pull runs `docker pull` first, which compares digests itself
and costs one manifest request when nothing changed. If the registry is
unreachable it falls back to the local copy with a warning, and still
fails when there is none.
The README documents a daily cron pull for machines that run test-build,
and the skill notes that local images are not refreshed automatically.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -50,12 +50,24 @@ cd some-slackbuild-dir && test-build <name> # -current test-build --stable <name> # 15.0 test-build --keep <name> # also keep the built .txz test-build --local-deps <name> # deps live in the same repo +test-build --pull <name> # refresh the image first ``` `--local-deps` also searches the target's own repo (its grandparent dir) for deps, for packages whose deps are siblings in the same repo and not on SBo. The configured SBo tree is still searched after. +A local image is pulled only when missing, so it goes stale when the registry +tag is rebuilt. `test-build --pull <name>` refreshes it for one run. To keep +every machine that runs `test-build` current, add a daily cron entry after +the image chain finishes (~08:00). `docker pull` compares digests itself and +is a no-op when the image is up to date; the prune drops the image a pull +leaves untagged: + +``` +30 9 * * * docker pull -q docker.noland.dnx:5000/sbo-testbuild:current && docker pull -q docker.noland.dnx:5000/sbo-testbuild:15.0 && docker image prune -f +``` + Build the images (on the docker host; see `image-builder/README`): ```bash |
