This repository is a fork of esp-rs/rust-build with additional support
of the espflash and espmonitor utilities.
The prebuilt container is available at Dokerhub.
The container directory contains a build script build.sh that is used to build the container. Alternatively, the container can be built
with tag TAG using
$ docker build -t TAG containerThe scripts folder contains several utility scripts for building, flashing and monitoring the Docker container.
build_project.shExecutescargo buildin the directory given via the-pargument.flash_monitor.shExecutescargo espflash --monitorin the directory given via the-pargument, building and flashing the project to the device given via the-dargument (not required, per default is/dev/ttyUSB0) and monitoring the serial output. The project can also be build in release mode using the-rflag.flash_monitor.shExecutescargo espflashin the directory given via the-pargument, building and flashing the project to the device given via the-dargument (not required, per default is/dev/ttyUSB0). The project can also be build in release mode using the-rflag.symlink.shCreates a symlink to the esp-idf header files in the.embuilddirectory of the project given with the-pargument. This may be required if esp-idf projects do not compile correctly.open_shell.shOpens abashshell in the docker containeropen_shell.shMonitors the device given with the-dargument with theespmonitortool.setup.shDownloads the prebuilt container if it is not present locally and installs the relevant udev rules for device usage, may be required for the container to work properly.