Skip to content

Commit

Permalink
Update Dockerfile.test
Browse files Browse the repository at this point in the history
  • Loading branch information
mariopesch committed Dec 11, 2023
1 parent 548c354 commit 21ec3f8
Showing 1 changed file with 24 additions and 7 deletions.
31 changes: 24 additions & 7 deletions Dockerfile.test
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
FROM node:17

ENV ARDUINO_CLI_VERSION=0.21.1 \
ENV ARDUINO_CLI_VERSION=0.34.2 \
SENSEBOXCORE_VERSION=2.0.0 \
ARDUINO_SAMD_VERSION=1.8.13 \
ARDUINO_AVR_VERSION=1.8.5 \
ESP32_VERSION=2.0.9 \
SENSEBOXCORE_URL=https://raw.githubusercontent.com/mariopesch/senseBoxMCU-core/master/package_sensebox_index.json \
ESP32CORE_URL=https://mariopesch.github.io/sensebox-esp32-dev/package_esp32_index.json \
SSD1306_PLOT_LIBRARY_URL=https://github.com/sensebox/SSD1306-Plot-Library/archive/refs/tags/v1.0.0.zip \
SENSEBOX_LIBWEB_URL=https://github.com/sensebox/sensebox-libweb/archive/refs/heads/master.zip \
SDS011_LIBRARY_URL=https://github.com/sensebox/SDS011-select-serial/archive/refs/heads/master.zip \
Expand All @@ -13,7 +15,7 @@ ENV ARDUINO_CLI_VERSION=0.21.1 \
LTR329_LIBRARY_URL=https://github.com/sensebox/LTR329-Lightsensor-Arduino-Library/archive/refs/heads/main.zip \
SDS011S_LIBRARY_URL=https://github.com/sensebox/SDS011-select-serial/archive/refs/heads/master.zip \
VEML6070_LIBRARY_URL=https://github.com/sensebox/VEML6070-UV-Arduino-Library/archive/refs/heads/main.zip \
TINYGPS_LIBRARY_URL=https://github.com/mikalhart/TinyGPSPlus/archive/refs/tags/v1.0.2b.zip
AMS5915_LIBRARY_URL=https://github.com/bolderflight/ams5915/archive/refs/heads/main.zip

RUN apt-get update && apt-get install -y xz-utils unzip wget

Expand All @@ -35,6 +37,13 @@ RUN arduino-cli core install arduino:samd@${ARDUINO_SAMD_VERSION}
RUN curl -o /root/.arduino15/package_sensebox_index.json ${SENSEBOXCORE_URL}
RUN arduino-cli --additional-urls ${SENSEBOXCORE_URL} core install sensebox:samd

# install ESP32
RUN apt-get install -y python3-pip
RUN pip install pyserial
RUN curl -o /root/.arduino15/package_esp32_index.json ${ESP32CORE_URL}
RUN arduino-cli --additional-urls ${ESP32CORE_URL} core install esp32:esp32


RUN wget -O ssd1306_plot_library.zip $SSD1306_PLOT_LIBRARY_URL \
&& arduino-cli lib install --zip-path ssd1306_plot_library.zip \
&& wget -O sensebox_libweb.zip $SENSEBOX_LIBWEB_URL \
Expand All @@ -50,9 +59,9 @@ RUN wget -O ssd1306_plot_library.zip $SSD1306_PLOT_LIBRARY_URL \
&& wget -O sds011_select_library.zip $SDS011S_LIBRARY_URL \
&& arduino-cli lib install --zip-path sds011_select_library.zip \
&& wget -O veml6070_library.zip $VEML6070_LIBRARY_URL \
&& arduino-cli lib install --zip-path veml6070_library.zip \
&& wget -O tinygps_library.zip $TINYGPS_LIBRARY_URL \
&& arduino-cli lib install --zip-path tinygps_library.zip
&& arduino-cli lib install --zip-path veml6070_library.zip \
&& wget -O ams5915_library.zip $AMS5915_LIBRARY_URL \
&& arduino-cli lib install --zip-path ams5915_library.zip

# install Libraries with arduino-cli
RUN arduino-cli lib install "Ethernet"
Expand All @@ -68,6 +77,7 @@ RUN arduino-cli lib install "Adafruit GFX Library"
RUN arduino-cli lib install "Adafruit MQTT Library"
RUN arduino-cli lib install "Adafruit BusIO"
RUN arduino-cli lib install "Adafruit SleepyDog Library"
RUN arduino-cli lib install "Adafruit MPU6050"
RUN arduino-cli lib install "DallasTemperature"
RUN arduino-cli lib install "ArduinoBearSSL"
RUN arduino-cli lib install "ArduinoECCX08"
Expand All @@ -86,14 +96,21 @@ RUN arduino-cli lib install "TheThingsNetwork"
RUN arduino-cli lib install "NTPClient"
RUN arduino-cli lib install "phyphox BLE"
RUN arduino-cli lib install "UniversalTelegramBot"
RUN arduino-cli lib install "Servo"
RUN arduino-cli lib install "RTCZero"
RUN arduino-cli lib install "sensirion-sps"
RUN arduino-cli lib install "TinyGPSPlus"
RUN arduino-cli lib install "SenseBoxBLE"
RUN arduino-cli lib install "Bolder Flight Systems Unit Conversions"
RUN arduino-cli lib install "HX711"


WORKDIR /app

COPY package.json /app
COPY yarn.lock /app

RUN yarn

RUN yarn
COPY src /app/src
COPY test /app/test

Expand Down

0 comments on commit 21ec3f8

Please sign in to comment.