cd9c0c51f9463d768c5eecdec14cb7c9aaf66cf7 braney Fri May 29 17:28:10 2026 -0700 Docker QA instances on hgwdev (tip/beta/rel): lifecycle scripts + autoBuild wiring, refs #37655 Co-Authored-By: Claude Opus 4.8 (1M context) diff --git src/utils/qa/weeklybld/remove-instance.sh src/utils/qa/weeklybld/remove-instance.sh new file mode 100755 index 00000000000..342ca352225 --- /dev/null +++ src/utils/qa/weeklybld/remove-instance.sh @@ -0,0 +1,32 @@ +#!/bin/bash +# +# remove-instance.sh +# +# Stop and remove the named container. For beta, also remove the local +# kent:beta image and its named volumes, since beta is torn down for good when +# a release ships (do_wrapup) and the next build cycle starts from a clean +# slate. +# refs #37655 +# +set -eEu -o pipefail + +usage() { + echo "usage: $(basename "$0") tip|beta|rel" >&2 + exit 1 +} + +[[ $# -eq 1 ]] || usage +name="$1" +case "$name" in + tip|beta|rel) ;; + *) usage ;; +esac +container="kent-$name" + +docker stop "$container" >/dev/null 2>&1 || true +docker rm "$container" >/dev/null 2>&1 || true + +if [[ "$name" == beta ]]; then + docker rmi kent:beta >/dev/null 2>&1 || true + docker volume rm kent-beta-mysql kent-beta-gbdb >/dev/null 2>&1 || true +fi