Compare commits
12 Commits
Author | SHA1 | Date | |
---|---|---|---|
10e34ae38a | |||
3bb3013e7f | |||
ed640f1fec | |||
27b006899d | |||
e0a596ab28 | |||
4038d23092 | |||
c21783742c | |||
a147ea3432 | |||
fe1550c1d3 | |||
c9da4dc1f8 | |||
adb2756f4d | |||
1884294a9e |
29
Dockerfile
29
Dockerfile
@ -1,20 +1,21 @@
|
||||
FROM registry.hottis.de/dockerized/base-build-env:1.3.0
|
||||
FROM registry.hottis.de/dockerized/base-build-env:1.5.3-bullseye
|
||||
|
||||
|
||||
LABEL Maintainer="Wolfgang Hottgenroth <wolfgang.hottgenroth@icloud.com>"
|
||||
LABEL ImageName="registry.hottis.de/dockerized/build-env-arduino"
|
||||
LABEL HubImageName="wollud1969/build-env-arduino"
|
||||
|
||||
ARG ArduinoDownloadUrl=https://github.com/arduino/arduino-cli/releases/download/0.16.0
|
||||
ARG ArduinoPackage=arduino-cli_0.16.0_Linux_64bit.tar.gz
|
||||
ARG ArduinoDownloadUrl=https://github.com/arduino/arduino-cli/releases/download/0.29.0
|
||||
ARG ArduinoPackage=arduino-cli_0.29.0_Linux_64bit.tar.gz
|
||||
ARG ArduinoUID="1000"
|
||||
ARG ArduinoGID="1000"
|
||||
ENV USER arduino
|
||||
ARG USER="arduino"
|
||||
|
||||
RUN \
|
||||
apt update && \
|
||||
apt install -y vim.tiny && \
|
||||
apt install -y python-cheetah && \
|
||||
rm -rf /var/lib/apt/lists/* && \
|
||||
apt upgrade -y && \
|
||||
apt install -y python3-cheetah && \
|
||||
pip install pyserial && \
|
||||
cd /tmp && \
|
||||
wget ${ArduinoDownloadUrl}/${ArduinoPackage} && \
|
||||
tar -xzf ${ArduinoPackage} && \
|
||||
@ -23,24 +24,24 @@ RUN \
|
||||
useradd -m -r -u $ArduinoUID -g $USER -G dialout $USER
|
||||
|
||||
USER $USER
|
||||
WORKDIR /home/$USER
|
||||
WORKDIR /home/${USER}
|
||||
|
||||
RUN \
|
||||
arduino-cli config init
|
||||
|
||||
COPY arduino-cli.yaml /home/$USER/.arduino15/
|
||||
COPY arduino-cli.yaml /home/${USER}/.arduino15/
|
||||
|
||||
RUN \
|
||||
pwd && \
|
||||
ls -l ~/.arduino15 && \
|
||||
arduino-cli core update-index && \
|
||||
arduino-cli core install arduino:avr && \
|
||||
arduino-cli core install arduino:samd && \
|
||||
arduino-cli core install esp8266:esp8266 && \
|
||||
arduino-cli core install esp32:esp32
|
||||
arduino-cli core install esp32:esp32 && \
|
||||
arduino-cli core install Heltec-esp32:esp32 && \
|
||||
arduino-cli core install CubeCell:CubeCell
|
||||
|
||||
|
||||
CMD ["/bin/bash"]
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -5,4 +5,7 @@ board_manager:
|
||||
additional_urls:
|
||||
- http://arduino.esp8266.com/stable/package_esp8266com_index.json
|
||||
- https://dl.espressif.com/dl/package_esp32_index.json
|
||||
- https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series/releases/download/0.0.7/package_heltec_esp32_index.json
|
||||
- http://resource.heltec.cn/download/package_CubeCell_index.json
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user