We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1628fe commit 6883632Copy full SHA for 6883632
1 file changed
scripts/e2e/opencode-autoconnect.sh
@@ -2,7 +2,14 @@
2
set -euo pipefail
3
4
RUN_ID="$(date +%s)-$RANDOM"
5
-ROOT="$(mktemp -d)"
+SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
6
+REPO_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"
7
+ROOT_BASE="${DOCKER_GIT_E2E_ROOT_BASE:-$REPO_ROOT/.docker-git/e2e-root}"
8
+mkdir -p "$ROOT_BASE"
9
+ROOT="$(mktemp -d "$ROOT_BASE/opencode-autoconnect.XXXXXX")"
10
+# docker-git containers may `chown -R` the `.docker-git` bind mount to UID 1000.
11
+# `mktemp -d` creates 0700 dirs; if ownership changes, the host runner may lose access.
12
+chmod 0755 "$ROOT"
13
KEEP="${KEEP:-0}"
14
15
# Keep compose project/volume names unique to avoid interfering with any local docker-git state.
0 commit comments