Docker: Super easy compiling and flashing without installing the SDK and all the dependencies
Posted: Mon Oct 24, 2016 7:57 pm
For those of you who don't know what Docker is: It allows you to automatically generate containers which are similar to a vm, but use way less resources and can be used like an executable. After you ran it, it simply resets, so you can't break anything.
And the best thing: You don't have to install all the dependencies and the SDK(s). And it just WORKS on any system that runs docker.
So I created two docker images: One for the "ESP32 and ESP31b" and one for the "ESP8266 and ESP8266EX".
If you are interested check it out on Github: https://github.com/T-vK/docker-esp-sdk/tree/esp32
To build the docker image you just have to install docker and run these three lines:
Usage is super simple:
Compiling
Flashing
More detailed info on Github:
https://github.com/T-vK/docker-esp-sdk/tree/esp32
And the best thing: You don't have to install all the dependencies and the SDK(s). And it just WORKS on any system that runs docker.
So I created two docker images: One for the "ESP32 and ESP31b" and one for the "ESP8266 and ESP8266EX".
If you are interested check it out on Github: https://github.com/T-vK/docker-esp-sdk/tree/esp32
To build the docker image you just have to install docker and run these three lines:
Code: Select all
git clone -b esp32 https://github.com/T-vK/docker-esp-sdk.git
cd docker-esp-sdk
sudo docker build -t tavk/esp32-sdk:0.1.0 .
Compiling
Code: Select all
sudo docker run -t -i -u esp \
-v /home/debian/esp-idf/examples/01_hello_world:/home/esp/shared_project \
tavk/esp32-sdk:0.1.0 \
make all
Code: Select all
sudo docker run -t -i -u esp \
--device=/dev/ttyUSB0 \
-v /home/debian/esp-idf/examples/01_hello_world:/home/esp/shared_project \
tavk/esp32-sdk:0.1.0 \
make flash
https://github.com/T-vK/docker-esp-sdk/tree/esp32