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

Merged
David merged 2 commits from feat/dev-clean-recipes into main 2026-06-13 19:47:21 +02:00
Owner

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

dev-clean stops both dev stacks via docker compose -f compose.dev.yml -f compose.dev-sso.yml down --remove-orphans (mirroring this repo's own down recipe and dropping the default network), then removes the three ${USER}-suffixed named volumes (dev-mokosh-postgres-data, dev-mokosh-infisical-postgres-data, dev-mokosh-server-target cargo build cache), deletes the local target/ build dir, and removes the generated .env.
dev-clean-all additionally removes the mokosh-server:check and mokosh-server:local images this repo builds (the -t tags from check-docker / build-docker) and runs docker buildx prune --force for a from-scratch rebuild.
Aligned the pre-existing dev-clean recipe (it wiped volumes via down --volumes and removed .env): replaced with the canonical pair and folded its .env teardown into the new dev-clean, so there are no longer two divergent clean recipes.

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` stops both dev stacks via `docker compose -f compose.dev.yml -f compose.dev-sso.yml down --remove-orphans` (mirroring this repo's own `down` recipe and dropping the default network), then removes the three `${USER}`-suffixed named volumes (`dev-mokosh-postgres-data`, `dev-mokosh-infisical-postgres-data`, `dev-mokosh-server-target` cargo build cache), deletes the local `target/` build dir, and removes the generated `.env`. `dev-clean-all` additionally removes the `mokosh-server:check` and `mokosh-server:local` images this repo builds (the `-t` tags from `check-docker` / `build-docker`) and runs `docker buildx prune --force` for a from-scratch rebuild. Aligned the pre-existing `dev-clean` recipe (it wiped volumes via `down --volumes` and removed `.env`): replaced with the canonical pair and folded its `.env` teardown into the new `dev-clean`, so there are no longer two divergent clean recipes. 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
Some checks failed
E2E / Playwright against staging (pull_request) Failing after 1m5s
Check / fmt + clippy + compile + tests (pull_request) Failing after 5m25s
5086c63175
dev-clean now stops both dev stacks (compose.dev.yml plus the compose.dev-sso.yml overlay) with --remove-orphans (dropping their default network), removes this repo's three ${USER}-suffixed named volumes (dev-mokosh-postgres-data, dev-mokosh-infisical-postgres-data, dev-mokosh-server-target cargo build cache), deletes the local target/ build dir, and removes the generated .env; dev-clean-all additionally removes the mokosh-server:check and mokosh-server:local images this repo builds and prunes the buildx cache for a from-scratch rebuild. This replaces the prior repo-specific dev-clean (which wiped volumes via `down --volumes` and removed .env), folding its .env teardown into the canonical recipe; every removal is guarded by an existence check and stays scoped to this repo with no host-global prune.

#GOV-7
Merge branch 'main' into feat/dev-clean-recipes
Some checks failed
Create release / Create release from merged PR (pull_request) Has been skipped
E2E / Playwright against staging (pull_request) Failing after 38s
Check / fmt + clippy + compile + tests (pull_request) Failing after 3m55s
f82d9b3057
David merged commit b5ad162864 into main 2026-06-13 19:47:21 +02:00
David deleted branch feat/dev-clean-recipes 2026-06-13 19:47:21 +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/mokosh-server!214
No description provided.