mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-09 04:06:42 +00:00
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>
Local Purge Scripts
This directory holds the cleanup helpers under scripts/tests/deploy/local/purge/.
For other local helpers, use ../README.md.
For the canonical Make target index that invokes these helpers, see make.md.
Entry Points
| Entry point | What it does | Key inputs | Notes |
|---|---|---|---|
entity.sh |
Purges one or more app entities inside the running container. With retire set it also drops the apps from every round inventory. |
apps, INFINITO_CONTAINER, retire, INFINITO_INVENTORY_DIR |
The deployment cleanup helpers call it without retire and deploy the apps again. make compose-entity-purge sets it. |
inventory.sh |
Removes the inventory directory in the running container. | INFINITO_CONTAINER, INFINITO_INVENTORY_DIR |
Destructive cleanup. |
web.sh |
Removes nginx config and self-signed CA state in the running container. | INFINITO_CONTAINER |
Destructive cleanup. |
lib.sh |
Removes the container lib state. | INFINITO_CONTAINER |
Destructive cleanup. |