[control] Clippy clean for the T4 code; CLAUDE.md: the deploy folders and the Linux test command in Docker; the Docker smoke turns off Git Bash's path rewriting and removes its volume
This commit is contained in:
@@ -10,6 +10,9 @@
|
||||
#
|
||||
# scripts/smoke-docker.sh <image> <ianitor-control binary for the offline root> <work dir>
|
||||
set -euo pipefail
|
||||
# Git Bash on Windows rewrites /paths in arguments and the environment of Windows programs
|
||||
# (docker.exe); the paths here are the container's.
|
||||
export MSYS_NO_PATHCONV=1 MSYS2_ENV_CONV_EXCL='*'
|
||||
|
||||
IMAGE=$1 CTL=$2 WORK=$3
|
||||
REPO=$(cd "$(dirname "$0")/.." && pwd)
|
||||
@@ -24,6 +27,7 @@ fail() { echo "FAILED: $*" >&2; exit 1; }
|
||||
cleanup() {
|
||||
"${DC[@]}" down -v --remove-orphans >/dev/null 2>&1 || true
|
||||
docker rm -f $P-app >/dev/null 2>&1 || true
|
||||
docker volume rm ${P}_state >/dev/null 2>&1 || true
|
||||
}
|
||||
trap cleanup EXIT
|
||||
[ ! -e "$WORK" ] || fail "$WORK exists; give a new folder"
|
||||
|
||||
Reference in New Issue
Block a user