|
| 1 | +<!-- This is a brief version of the Arduino Core for ESP32 documentation (add specific link) |
| 2 | + intended to be displayed on the Docker Hub page: https://hub.docker.com/r/espressif/esp32-arduino-lib-builder. |
| 3 | + When changing this page, please keep the documentation in sync. |
| 4 | + (Keep the differences between Markdown and restructuredText in mind.) |
| 5 | + --> |
| 6 | + |
| 7 | +# ESP-IDF Docker Image |
| 8 | + |
| 9 | +This is a Docker image for the [ESP32 Arduino Lib Builder](https://github.com/espressif/esp32-arduino-lib-builder). It is intended for building the static libraries of ESP-IDF components for use in Arduino projects. |
| 10 | + |
| 11 | +This image contains a copy of the esp32-arduino-lib-builder repository and already include or will obtain all the required tools and dependencies to build the Arduino static libraries. |
| 12 | + |
| 13 | +## Tags |
| 14 | + |
| 15 | +Multiple tags of this image are maintained: |
| 16 | + |
| 17 | + - `latest`: tracks `master` branch of esp32-arduino-lib-builder |
| 18 | + - `release-vX.Y`: tracks `release/vX.Y` branch of esp32-arduino-lib-builder |
| 19 | + |
| 20 | +## Basic Usage |
| 21 | + |
| 22 | +```bash |
| 23 | +docker run --rm -it -e "TERM=xterm-256color" -v <path to arduino-esp32>:/arduino-esp32 espressif/esp32-arduino-lib-builder:latest |
| 24 | +``` |
| 25 | + |
| 26 | +The above command explained: |
| 27 | + |
| 28 | + - `docker run`: Runs a command in a new container. |
| 29 | + - `--rm`: Optional. Automatically removes the container when it exits. Remove this flag if you plan to use the container multiple times. |
| 30 | + - `-i`: Runs the container in interactive mode. |
| 31 | + - `-t`: Allocates a pseudo-TTY. |
| 32 | + - `-e "TERM=xterm-256color"`: Optional. Sets the terminal type to `xterm-256color` to display colors correctly. |
| 33 | + - `-v <path to arduino-esp32>:/arduino-esp32`: Optional. Mounts the Arduino Core for ESP32 repository at `/arduino-esp32` inside the container. Replace `<path to arduino-esp32>` with the path to the repository on the host machine. If not provided, the container will not copy the compiled libraries to the host machine. |
| 34 | + - `espressif/esp32-arduino-lib-builder:latest`: The Docker image to use. |
| 35 | + |
| 36 | +After running the above command, you will be inside the container and can build the libraries using the user interface. |
| 37 | + |
| 38 | +By default the docker container will run the user interface script. If you want to run a specific command, you can pass it as an argument to the docker run command. For example, to run a terminal inside the container, you can run: |
| 39 | + |
| 40 | +```bash |
| 41 | +docker run -it espressif/esp32-arduino-lib-builder:latest /bin/bash |
| 42 | +``` |
| 43 | + |
| 44 | +## Documentation |
| 45 | + |
| 46 | +<!-- Pending: Add link to the full documentation. --> |
| 47 | + |
| 48 | +For more information about this image and the detailed usage instructions, please refer to the Arduino Core for ESP32 documentation. |
0 commit comments