/geo/dbip-country-lite.mmdb.month). Details and the licence terms:
../reference/geo.md.
Alert: DBIPFileOld fires when the file in use was built more than 45 days ago
(alerts.md). Do the update every month, early in the month once DB-IP has published.
Steps
-
Fetch and check the new file locally:
Expected:Before DB-IP has published the month,
curlreports404and the target fails; nothing is written. Never take another month silently: pass the previous month explicitly if you must. -
Run the geo tests against it (they fail if the truncation error rate rises above 0.5%):
Expected:
ok github.com/justmert/veristar/internal/gateway. -
Build the release with the new month.
release-images.ymlbuilds the gateway withDBIP_MONTHset to the month of the release tag’s commit date, so a release tagged on a commit from this month carries this month’s file. Tag a platform release after DB-IP has published, and roll it out:For a local or test image,docker build -f deploy/images/gateway.Dockerfile --build-arg DBIP_MONTH=<YYYY-MM> .(ormake gateway-up, which passes the current month). -
Check a node serves the new month:
DBIPFileOldresolves, and the gateway metricgateway_geo_build_timestamp_secondsshows the new build time in Prometheus. -
Attribution stays as it is: the image ships
DBIP-ATTRIBUTION.txtnext to the file, and the console and docs carry the DB-IP link (../reference/geo.md).
SIGHUP (the file is replaced
by renaming over the old one; if the new file does not open, the error is logged and the old one
stays). The production images do not mount the file from the host, so the release path above is
the normal one.
Exercised
Not yet exercised: step 3 through the release workflow (GitHub Actions fails at start-up on the
account) and step 4 on a deployed node.