feat(justfile): add dev-clean / dev-clean-all teardown recipes #303
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-cleanbrings down every dev compose stack (compose.dev-web.yml,compose.dev-web-saas.yml,compose.dev-web-local.yml,compose.dev-web-local-saas.yml,compose.dev-desktop.yml, plus basecompose.yml) withdown --remove-orphans --volumes, so each stack's default network and project-scoped named volumes (cargo-registry/cargo-git/target/data,lets-chat-data) are removed without spelling out project-prefixed names.dev-cleanthen removes the four fixed-name volumes the ad-hocdocker runwrappers (dev/cargo,dev/server-up) create:lets-chat-rewrite-cargo-registry,lets-chat-rewrite-cargo-git,lets-chat-rewrite-target,lets-chat-rewrite-data, each guarded by adocker volume lsmembership check.dev-cleandeletes the local artifact dirstarget/,data/(gitignored dev SQLite bind-mount state), andartifacts/(wherebuild-desktop*drops binaries and the deb/appimage bundles underartifacts/bundle-linux/).dev-clean-alladditionally removes the locally built images (lets-chat:{local,check},lets-chat-saas:{local,check},lets-chat-desktop:{local,bundles},lets-chat-desktop-windows:local) each guarded bydocker image inspect, then runsdocker buildx prune --force.dev-web*-cleanrecipes are kept as single-stack conveniences;dev-cleanis the comprehensive all-mode teardown that supersedes running them one at a time.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
Adds the canonical GOV-7 dev-clean / dev-clean-all pair under [group: 'cleanup']. dev-clean brings down every dev compose stack (compose.dev-web.yml, compose.dev-web-saas.yml, compose.dev-web-local.yml, compose.dev-web-local-saas.yml, compose.dev-desktop.yml, plus the base compose.yml) with down --remove-orphans --volumes so each stack's default network and project-scoped named volumes (cargo-registry/cargo-git/target/data and lets-chat-data) go away, then removes the four fixed-name volumes the ad-hoc docker run wrappers create (lets-chat-rewrite-cargo-registry, -cargo-git, -target, -data) guarded by a docker volume ls membership check, and deletes the local build/runtime artifact dirs target/, data/ (gitignored dev SQLite bind-mount state), and artifacts/ (where build-desktop* drops binaries and the deb/appimage bundles under artifacts/bundle-linux/). dev-clean-all additionally removes the locally built images (lets-chat:{local,check}, lets-chat-saas:{local,check}, lets-chat-desktop:{local,bundles}, lets-chat-desktop-windows:local) each guarded by docker image inspect, then runs docker buildx prune --force. The existing per-mode dev-web*-clean recipes are kept as single-stack conveniences; dev-clean is the comprehensive all-mode teardown that supersedes running them one by one. Every removal is existence-guarded and scoped to this repo, with no host-global docker system/volume prune. #GOV-7