feat(justfile): add dev-clean / dev-clean-all teardown recipes #139

Merged
David merged 1 commit from feat/dev-clean-recipes into main 2026-06-13 19:47:07 +02:00
Owner

Adds the canonical dev-clean / dev-clean-all teardown recipes, per GOV-7 (governance template templates/justfile/cleanup.just).

dev-clean removes this repo's dev footprint: stops the compose.dev.yml stack via docker compose -f compose.dev.yml down --remove-orphans (dropping the default network), removes the per-developer ${USER}-suffixed named volumes (dev-bunyip-postgres, dev-bunyip-cargo-target, dev-bunyip-web-node-modules, dev-bunyip-download-cache, dev-bunyip-oci-cache) plus the bunyip-specific check-container cache bunyip-check-target, deletes local build artifacts (target/, bunyip-web/node_modules/), and removes the generated dev .env (recreated by ensure-env).
dev-clean-all additionally removes the locally built images (bunyip-api:latest, bunyip-web:latest, bunyip-api-builder:check) and runs docker buildx prune --force.
Aligns/replaces the pre-existing [dev]-group dev-clean recipe, folding its .env teardown into the new [cleanup]-group recipe; leaves the cross-repo shared dunite-check-cargo-registry cache intact.

Both guard every removal with an existence check and stay scoped to this repo (no host-global prune). Verified just --list parses and groups both under [cleanup].

Part of the GOV-7 rollout; tracked there rather than via a per-repo issue.

🤖 Generated with Claude Code

Adds the canonical `dev-clean` / `dev-clean-all` teardown recipes, per GOV-7 (governance template `templates/justfile/cleanup.just`). `dev-clean` removes this repo's dev footprint: stops the `compose.dev.yml` stack via `docker compose -f compose.dev.yml down --remove-orphans` (dropping the default network), removes the per-developer `${USER}`-suffixed named volumes (`dev-bunyip-postgres`, `dev-bunyip-cargo-target`, `dev-bunyip-web-node-modules`, `dev-bunyip-download-cache`, `dev-bunyip-oci-cache`) plus the bunyip-specific `check-container` cache `bunyip-check-target`, deletes local build artifacts (`target/`, `bunyip-web/node_modules/`), and removes the generated dev `.env` (recreated by `ensure-env`). `dev-clean-all` additionally removes the locally built images (`bunyip-api:latest`, `bunyip-web:latest`, `bunyip-api-builder:check`) and runs `docker buildx prune --force`. Aligns/replaces the pre-existing `[dev]`-group `dev-clean` recipe, folding its `.env` teardown into the new `[cleanup]`-group recipe; leaves the cross-repo shared `dunite-check-cargo-registry` cache intact. Both guard every removal with an existence check and stay scoped to this repo (no host-global prune). Verified `just --list` parses and groups both under `[cleanup]`. Part of the GOV-7 rollout; tracked there rather than via a per-repo issue. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
feat(justfile): add dev-clean / dev-clean-all teardown recipes
All checks were successful
Check / fmt / clippy / build / test (pull_request) Successful in 1m23s
Create release / Create release from merged PR (pull_request) Has been skipped
469df5d163
Replaces the old [dev]-group dev-clean recipe with the canonical [cleanup]-group pair from GOV-7. dev-clean stops the compose.dev.yml stack with `docker compose -f compose.dev.yml down --remove-orphans` (dropping the default network), removes this repo's per-developer ${USER}-suffixed named volumes (dev-bunyip-postgres, dev-bunyip-cargo-target, dev-bunyip-web-node-modules, dev-bunyip-download-cache, dev-bunyip-oci-cache) plus the bunyip-specific check-container target cache bunyip-check-target, deletes local build artifacts (target/, bunyip-web/node_modules/), and removes the generated dev .env that ensure-env recreates; the previous recipe's .env teardown is folded in. dev-clean-all additionally removes the locally built images (bunyip-api:latest, bunyip-web:latest, bunyip-api-builder:check) and runs `docker buildx prune --force`. Every removal is guarded by an existence check; stays scoped to this repo with no host-global prune and leaves the shared dunite registry cache intact.

#GOV-7
David merged commit b93b4558bb into main 2026-06-13 19:47:07 +02:00
David deleted branch feat/dev-clean-recipes 2026-06-13 19:47:07 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
psa-systems/bunyip!139
No description provided.