From 2a5d171484392d55f3abfd9e48807edc77c182b0 Mon Sep 17 00:00:00 2001 From: jdlugosz963 Date: Tue, 25 Jul 2023 15:51:34 +0200 Subject: Add arduino-cli docker file. --- .bin/jd-arduino-cli.Dockerfile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .bin/jd-arduino-cli.Dockerfile (limited to '.bin/jd-arduino-cli.Dockerfile') diff --git a/.bin/jd-arduino-cli.Dockerfile b/.bin/jd-arduino-cli.Dockerfile new file mode 100644 index 0000000..cb8eb91 --- /dev/null +++ b/.bin/jd-arduino-cli.Dockerfile @@ -0,0 +1,16 @@ +FROM python:3.12-rc-slim + +RUN apt update && apt install -y wget && \ + wget https://downloads.arduino.cc/arduino-cli/nightly/arduino-cli_nightly-latest_Linux_64bit.tar.gz && \ + tar -C /usr/bin/ -xf arduino-cli_nightly-latest_Linux_64bit.tar.gz + +RUN mkdir ~/.arduino15 && \ + echo "board_manager:" > ~/.arduino15/arduino-cli.yaml && \ + echo " additional_urls:" >> ~/.arduino15/arduino-cli.yaml && \ + echo " - http://arduino.esp8266.com/stable/package_esp8266com_index.json" >> ~/.arduino15/arduino-cli.yaml + + +RUN arduino-cli core update-index && \ + arduino-cli core install esp8266:esp8266 + +WORKDIR /src \ No newline at end of file -- cgit v1.2.3