Lab3: keep clean clone on a Colima-shared host path

This commit is contained in:
Ivan Melnikov
2026-12-02 19:35:33 +03:00
parent 3634e67686
commit 1a7f31e7e5
+6 -1
View File
@@ -12,7 +12,12 @@ if [ -n "$(git status --porcelain)" ]; then
exit 2
fi
tmp=$(mktemp -d /tmp/mtusi-lab3-clean.XXXXXX)
# Colima only bind-mounts its configured shared paths (on this machine the
# user's home). A clone under /tmp would expose an empty haproxy.cfg inside the
# VM, so keep the temporary clone under the shared lab-artifacts directory.
artifact_root=${LAB3_ARTIFACTS:-$(cd "$root/../.." && pwd)/.local/highload-tasks/lab3-artifacts}
mkdir -p "$artifact_root"
tmp=$(mktemp -d "$artifact_root/clean-clone.XXXXXX")
project=mtusi-lab3-melnikov-clean
image=$project:local
port=8084