Files
computer-playbook/scripts/container/purge
kevinveenbirkenbachandClaude Opus 5.5 b6e995a8de fix(purge): drop purged apps from the round inventories
make compose-entity-purge removed the containers, volumes, databases
and vhosts of an app but left its group in devices.yml. Inventory
provisioning only merges groups, and the webserver health unit builds
its domain list from the groups of the host, so every later full deploy
of another app ended with failed=1: the unit kept probing the purged
domains and the service terminator gave up after 25 retries.

The make target now passes retire to the purge wrapper. With it the
wrapper hands the inventory directory into the container, and the app
orchestrator removes the purged application ids from devices.yml of the
base inventory and of every round inventory next to it.

The deploy flows that purge before they deploy the same apps again
(purge=true, the purge between matrix rounds, the reinstall selection)
call the wrapper without retire and keep the groups, because an update
deploy needs the app in the inventory.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-06 22:19:12 +02:00
..
…

Container Purge 🗑️

Container-local cleanup helpers under scripts/container/purge/.

These scripts run inside the local infinito container and remove container-local state only. For the canonical Make target index that invokes these helpers, see make.md.

Entry Points 🎯

Entry point What it does Notes
apps.sh App-keyed orchestrator that maps $apps to compose entities, drives entity/{db,compose,dir}.sh, and wipes the matching token-store entries via tokens.py. With retire set it also drops the apps from every round inventory under INFINITO_INVENTORY_DIR. The host-side wrapper entity.sh docker execs this script.
web.sh Removes nginx and self-signed CA state inside the container. Called by the local purge wrapper.
entity/ Entity-keyed primitives. See entity/README.md for the exact scripts.