aboutsummaryrefslogtreecommitdiff
path: root/producer.sh
diff options
context:
space:
mode:
Diffstat (limited to 'producer.sh')
-rwxr-xr-xproducer.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/producer.sh b/producer.sh
index 893cf87..fd4d9f3 100755
--- a/producer.sh
+++ b/producer.sh
@@ -183,7 +183,7 @@ mkdir -p -- "$RUNTIME/cache/pip" "$RUNTIME/cache/uv" "$RUNTIME/uv" "$RUNTIME/tmp
# host are dropped and package-manager configuration files are disabled, so
# packages can only come from the explicitly passed trusted indexes and land
# inside lib/runtime. The application reads PRODUCER_HOME for AI envs and
-# models.
+# models, and PRODUCER_ROOT (the project root) for the shared logs directory.
unset PYTHONPATH PYTHONHOME VIRTUAL_ENV \
PIP_TARGET PIP_PREFIX PIP_USER PIP_FIND_LINKS PIP_INDEX_URL PIP_EXTRA_INDEX_URL \
PIP_CONSTRAINT \
@@ -194,6 +194,9 @@ export PIP_CACHE_DIR="$RUNTIME/cache/pip" UV_CACHE_DIR="$RUNTIME/cache/uv"
export PIP_CONFIG_FILE=/dev/null UV_NO_CONFIG=1
export UV_PYTHON_INSTALL_DIR="$RUNTIME/uv/python" XDG_CACHE_HOME="$RUNTIME/cache"
export TMPDIR="$RUNTIME/tmp" PRODUCER_HOME="$RUNTIME"
+# The application writes all diagnostic report logs under PRODUCER_ROOT/logs
+# (the directory containing producer.sh), no matter where outputs go.
+export PRODUCER_ROOT="$ROOT"
marker_current() {
# Only the version suffix decides; the recorded path is informational.