From 1a7f31e7e5ee25e5f34b7b851d068c5cce77ed43 Mon Sep 17 00:00:00 2001 From: Ivan Melnikov Date: Wed, 2 Dec 2026 19:35:33 +0300 Subject: [PATCH] Lab3: keep clean clone on a Colima-shared host path --- scripts/clean-clone-check.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/clean-clone-check.sh b/scripts/clean-clone-check.sh index b59db2df..15dc5c28 100755 --- a/scripts/clean-clone-check.sh +++ b/scripts/clean-clone-check.sh @@ -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