Purpose: verify that setup.sh can run on a clean machine.
Run from repo root:
# 1) Build test image (this runs setup.sh inside Dockerfile)
./scripts/docker-build-test.sh
# 2) Verify installed environment inside the container
docker run --rm dotfiles:test /root/dotfiles/scripts/verify-docker-build.shNo-cache rebuild:
./scripts/docker-build-test.sh --no-cache若因网络波动导致构建偶发失败,可加重试次数(例如最多重试 3 次):
./scripts/docker-build-test.sh --retry 3Pass condition:
- Image
dotfiles:testis built successfully - Verify script exits with code
0and shows失败: 0