feat(justfile): add dev-clean / dev-clean-all teardown recipes #57
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-clean: brings down thecompose.dev.ymlstack with--remove-orphans(dropping the default network), removes the per-user named volumesdev-vervain-server-cargo-target-${USER}anddev-vervain-server-data-${USER}, removes thedev-vervain-private-${USER}network (folded in from the old recipe), and deletes localtarget/build artifacts. Nodata/dir is removed because the app's runtime state lives in thevervain-dataDocker volume, not on the host.dev-clean-all: depends ondev-cleanand addsdocker buildx prune --force. This repo builds no local image tags (images are built and pushed only by CI inbuild-oci-image.yml), so no image-removal loop is included.dev-clean(under[group: 'dev']) is replaced by this canonical pair under[group: 'cleanup']; its network-removal teardown was folded into the newdev-clean.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 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