From 8cff52bb2ebc03f2aa84ed13618be46e91524578 Mon Sep 17 00:00:00 2001 From: David Montero Date: Wed, 1 Apr 2026 07:18:35 +0200 Subject: [PATCH] fix: ignore ESP-IDF export.sh non-zero exit to prevent container crash The openocd-esp32 tool fails with exit code 127 due to missing libusb-1.0.so.0 in the runtime image. With set -e, this caused the entrypoint to exit before starting uvicorn and nginx, putting the container in a restart loop. Adding || true allows the ESP-IDF environment to be sourced while tolerating the non-critical openocd warning. Co-Authored-By: Claude Sonnet 4.6 --- deploy/entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/entrypoint.sh b/deploy/entrypoint.sh index d72886b..db82836 100644 --- a/deploy/entrypoint.sh +++ b/deploy/entrypoint.sh @@ -22,7 +22,7 @@ arduino-cli core install rp2040:rp2040 2>/dev/null || true # If ESP-IDF is not available, fall back to arduino-cli ESP32 core. if [ -f /opt/esp-idf/export.sh ]; then echo "🔧 Sourcing ESP-IDF environment..." - . /opt/esp-idf/export.sh + . /opt/esp-idf/export.sh || true echo "✅ ESP-IDF $(cat /opt/esp-idf/version.txt 2>/dev/null || echo 'unknown') ready" else echo "⚠️ ESP-IDF not found — falling back to arduino-cli for ESP32"