Spaces:
Sleeping
Sleeping
debug: test if HF captures stdout/stderr from entrypoint at all
Browse files- scripts/entrypoint.sh +5 -0
scripts/entrypoint.sh
CHANGED
|
@@ -7,6 +7,11 @@
|
|
| 7 |
# βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 8 |
set -e
|
| 9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
LOGFILE="/var/log/huggingrun.log"
|
| 11 |
touch "$LOGFILE"
|
| 12 |
|
|
|
|
| 7 |
# βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 8 |
set -e
|
| 9 |
|
| 10 |
+
# Diagnostic: test if HF captures ANY container output
|
| 11 |
+
echo "=== [stdout] ENTRYPOINT PID=$$ $(date -u) ==="
|
| 12 |
+
echo "=== [stderr] ENTRYPOINT PID=$$ $(date -u) ===" >&2
|
| 13 |
+
python3 -c "import sys; print('=== [py-stdout] PYTHON TEST ===', flush=True); print('=== [py-stderr] PYTHON TEST ===', file=sys.stderr, flush=True)"
|
| 14 |
+
|
| 15 |
LOGFILE="/var/log/huggingrun.log"
|
| 16 |
touch "$LOGFILE"
|
| 17 |
|