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

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

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

  • dev-clean: brings down the compose.dev.yml stack with --remove-orphans (dropping the default network), removes the per-user named volumes dev-vervain-server-cargo-target-${USER} and dev-vervain-server-data-${USER}, removes the dev-vervain-private-${USER} network (folded in from the old recipe), and deletes local target/ build artifacts. No data/ dir is removed because the app's runtime state lives in the vervain-data Docker volume, not on the host.
  • dev-clean-all: depends on dev-clean and adds docker buildx prune --force. This repo builds no local image tags (images are built and pushed only by CI in build-oci-image.yml), so no image-removal loop is included.
  • Aligned an existing recipe: the previous dev-clean (under [group: 'dev']) is replaced by this canonical pair under [group: 'cleanup']; its network-removal teardown was folded into the new dev-clean.

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`: brings down the `compose.dev.yml` stack with `--remove-orphans` (dropping the default network), removes the per-user named volumes `dev-vervain-server-cargo-target-${USER}` and `dev-vervain-server-data-${USER}`, removes the `dev-vervain-private-${USER}` network (folded in from the old recipe), and deletes local `target/` build artifacts. No `data/` dir is removed because the app's runtime state lives in the `vervain-data` Docker volume, not on the host. - `dev-clean-all`: depends on `dev-clean` and adds `docker buildx prune --force`. This repo builds no local image tags (images are built and pushed only by CI in `build-oci-image.yml`), so no image-removal loop is included. - Aligned an existing recipe: the previous `dev-clean` (under `[group: 'dev']`) is replaced by this canonical pair under `[group: 'cleanup']`; its network-removal teardown was folded into the new `dev-clean`. 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 + tests (pull_request) Successful in 2m11s
Create release / Create release from merged PR (pull_request) Has been skipped
1b1b2f896d
Replaces the existing dev-group dev-clean recipe with the canonical GOV-7 cleanup pair under [group: 'cleanup']. dev-clean brings down the compose.dev.yml stack with --remove-orphans (dropping the default network), removes this repo's per-user named volumes dev-vervain-server-cargo-target-${USER} and dev-vervain-server-data-${USER} (guarded by a docker volume ls membership check), removes the dev-vervain-private-${USER} network (guarded by a docker network ls check, folded in from the old recipe), and deletes the local target/ build artifacts (guarded by path exists); it adds no data/ dir because the app's runtime state lives in the vervain-data Docker volume, not on the host. dev-clean-all depends on dev-clean and adds docker buildx prune --force; this repo builds no local image tags (images are built and pushed only by CI in build-oci-image.yml), so no image-removal loop is included. Both stay scoped to this repo with no host-global prune.

#GOV-7
David merged commit 82940abe1d into main 2026-06-13 19:47:31 +02:00
David deleted branch feat/dev-clean-recipes 2026-06-13 19:47:31 +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/vervain-server!57
No description provided.