This repository provides a Dockerized version of the Arduino IDE 2.x, allowing you to run Arduino development environments in isolated containers.
-
Clone the repository:
git clone https://github.com/ddetommaso/arduino-docker cd arduino-docker -
Build the Docker image:
cd docker ./build.sh -
Start the Arduino IDE:
./run.sh
- Arduino IDE Version: Update the
ARDUINO_IDE_VERSIONvariable in thedocker/.envfile to choose the Arduino IDE version. - Arduino packages and libraries: Add packages and libraries to be installed in
CLI-init.shso that they will be installed with arduino-cli at the startup of the container.
During its first execution, the Arduino-IDE initialize the environment by installing core packages. By default the IDE
is configured to save your files in the root directory /workspace/project which is binded with the project folder in your host machine. Moreover the arduino-cli.yaml will be an exact copy of the one inside the container, so that you can commit this configuration file in your project. Finally, the directories ~/.arduinoIDE, ~/.arduino15 and /workspace are configured to be volumes associated to the container, thus their content will survive even after quitting the container unless you explicitly remove them.