Compare commits
18 Commits
0.0.1-test
...
0.29.0-11
Author | SHA1 | Date | |
---|---|---|---|
10e34ae38a
|
|||
3bb3013e7f
|
|||
ed640f1fec
|
|||
27b006899d
|
|||
e0a596ab28
|
|||
4038d23092
|
|||
c21783742c | |||
a147ea3432
|
|||
fe1550c1d3
|
|||
c9da4dc1f8
|
|||
adb2756f4d
|
|||
1884294a9e
|
|||
e442d4366f
|
|||
c815713a64
|
|||
116d9e00fe
|
|||
e29bf4c999
|
|||
7dd2f34f10
|
|||
6f675db7a9
|
@ -2,6 +2,3 @@ include:
|
||||
- project: dockerized/commons
|
||||
ref: master
|
||||
file: gitlab-ci-template.yml
|
||||
|
||||
|
||||
|
||||
|
31
Dockerfile
31
Dockerfile
@ -1,20 +1,21 @@
|
||||
FROM registry.gitlab.com/wolutator/base-build-env:latest
|
||||
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.5.0
|
||||
ARG ArduinoPackage=arduino-cli_0.5.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@2.5.0 && \
|
||||
sed -i 's/#if DEBUG/#ifdef DEBUG/' ~/.arduino15/packages/esp8266/hardware/esp8266/2.5.0/tools/sdk/libc/xtensa-lx106-elf/include/sys/reent.h
|
||||
arduino-cli core install esp8266:esp8266 && \
|
||||
arduino-cli core install esp32:esp32 && \
|
||||
arduino-cli core install Heltec-esp32:esp32 && \
|
||||
arduino-cli core install CubeCell:CubeCell
|
||||
|
||||
|
||||
CMD ["/bin/bash"]
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -4,3 +4,8 @@ arduino_data: /home/arduino/.arduino15
|
||||
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
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user