feat(justfile): add dev-clean / dev-clean-all teardown recipes #214
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/dev-clean-recipes"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds the canonical
dev-clean/dev-clean-allteardown recipes, per GOV-7 (governance templatetemplates/justfile/cleanup.just).dev-cleanstops both dev stacks viadocker compose -f compose.dev.yml -f compose.dev-sso.yml down --remove-orphans(mirroring this repo's owndownrecipe 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-targetcargo build cache), deletes the localtarget/build dir, and removes the generated.env.dev-clean-alladditionally removes themokosh-server:checkandmokosh-server:localimages this repo builds (the-ttags fromcheck-docker/build-docker) and runsdocker buildx prune --forcefor a from-scratch rebuild.Aligned the pre-existing
dev-cleanrecipe (it wiped volumes viadown --volumesand removed.env): replaced with the canonical pair and folded its.envteardown into the newdev-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 --listparses and groups both under[cleanup].Part of the GOV-7 rollout; tracked there rather than via a per-repo issue.
🤖 Generated with Claude Code
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