This commit is contained in:
2026-02-15 16:57:55 +00:00
parent eb13bb7bf4
commit 435dbe67d9
8 changed files with 27 additions and 403 deletions

View File

@@ -3,7 +3,7 @@
# Usage: ./run_pio_docker.sh <ESP_PORT> [additional docker args]
# Example: ./run_pio_docker.sh /dev/ttyUSB0
ESP_PORT="$1"
ESP_PORT="/dev/ttyUSB0"
shift
# if [ -z "$ESP_PORT" ]; then
@@ -11,10 +11,11 @@ shift
# exit 1
# fi
IMAGE="easylinux/platformio-dev:1.0"
IMAGE="easylinux/platformio-dev:1.1"
CONTAINER="pio-dev"
PROJECT_DIR="$(pwd)"
socat TCP-LISTEN:12345,reuseaddr,fork FILE:/dev/ttyUSB0,raw,echo=0 &
# Run Docker container with ESP port and project directory mounted
# --device allows direct access to the ESP serial port