mbenabda / dockerized-esp-rtos-sdk

dockerized setup of the esp8266-rtos-sdk and toolchain
3 stars 3 forks source link
docker esp esp8266 esp8266-firmware esp8266-rtos esp8266-rtos-sdk espressif espressif-rtos-sdk

This is a dockerized version of the install & usage instructions of esp8266-rtos-sdk.

You can get the image from dockerhub, at mbenabda/esp8266-rtos-sdk

Its tags are aligned with versions of the SDK (tag v3.3 of the image holds v3.3 of the SDK)

Please refer to the esp8266-rtos-sdk documentation for more details on the build system

Usage

Given $PROJECT_ROOT_DIR holds the absolute path to your project's codebase:

Build your project

docker run -it --rm -v $PROJECT_ROOT_DIR:/project -w /project mbenabda/esp8266-rtos-sdk make

Flash your ESP chip

docker run -it --rm -v $PROJECT_ROOT_DIR:/project --privileged -v /dev:/dev -w /project mbenabda/esp8266-rtos-sdk make flash

Monitor the ESP chip's serial output

docker run -it --rm -v $PROJECT_ROOT_DIR:/project --privileged -v /dev:/dev -w /project mbenabda/esp8266-rtos-sdk make monitor

Build the toolchain docker image