fix: agents container: dev-poll fails because factory is mounted read-only (#781)
Add DISINTO_LOG_DIR to lib/env.sh: points to $HOME/data/logs inside the container (writable volume) and $FACTORY_ROOT on the host (existing behavior). Update all agent scripts to write logs, CI fix tracker, metrics, and vault locks to DISINTO_LOG_DIR instead of FACTORY_ROOT. This keeps the factory mount read-only while ensuring all writable state lands on the persistent data volume. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
ef544f58f9
commit
9f5a6f9942
12 changed files with 22 additions and 18 deletions
|
|
@ -21,7 +21,7 @@ FACTORY_ROOT="$(dirname "$SCRIPT_DIR")"
|
|||
# shellcheck source=../lib/env.sh
|
||||
source "$FACTORY_ROOT/lib/env.sh"
|
||||
|
||||
LOGFILE="${FACTORY_ROOT}/site/collect-engagement.log"
|
||||
LOGFILE="${DISINTO_LOG_DIR}/site/collect-engagement.log"
|
||||
log() {
|
||||
printf '[%s] collect-engagement: %s\n' \
|
||||
"$(date -u '+%Y-%m-%d %H:%M:%S UTC')" "$*" >> "$LOGFILE"
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ source "$FACTORY_ROOT/lib/env.sh"
|
|||
# shellcheck source=../lib/ci-helpers.sh
|
||||
source "$FACTORY_ROOT/lib/ci-helpers.sh" 2>/dev/null || true
|
||||
|
||||
LOGFILE="${FACTORY_ROOT}/site/collect-metrics.log"
|
||||
LOGFILE="${DISINTO_LOG_DIR}/site/collect-metrics.log"
|
||||
log() {
|
||||
printf '[%s] collect-metrics: %s\n' "$(date -u '+%Y-%m-%d %H:%M:%S UTC')" "$*" >> "$LOGFILE"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue