feat(justfile): add dev-clean / dev-clean-all teardown recipes #139
Loading…
Add table
Add a link
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-cleanremoves this repo's dev footprint: stops thecompose.dev.ymlstack viadocker 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-specificcheck-containercachebunyip-check-target, deletes local build artifacts (target/,bunyip-web/node_modules/), and removes the generated dev.env(recreated byensure-env).dev-clean-alladditionally removes the locally built images (bunyip-api:latest,bunyip-web:latest,bunyip-api-builder:check) and runsdocker buildx prune --force.Aligns/replaces the pre-existing
[dev]-groupdev-cleanrecipe, folding its.envteardown into the new[cleanup]-group recipe; leaves the cross-repo shareddunite-check-cargo-registrycache intact.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
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