forked from mtusi2026/mtusi2026lab3
Lab3: keep clean clone on a Colima-shared host path
This commit is contained in:
@@ -12,7 +12,12 @@ if [ -n "$(git status --porcelain)" ]; then
|
|||||||
exit 2
|
exit 2
|
||||||
fi
|
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
|
project=mtusi-lab3-melnikov-clean
|
||||||
image=$project:local
|
image=$project:local
|
||||||
port=8084
|
port=8084
|
||||||
|
|||||||
Reference in New Issue
Block a user