Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions docker/Dockerfile.ci_qemu
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ RUN bash /install/ubuntu_install_zephyr.sh
ENV ZEPHYR_BASE=/opt/zephyrproject/zephyr

# Arduino deps
# NOTE: override Arduino directories so packages are installed in a
# CI-accessible location.
ENV ARDUINO_DIRECTORIES_DATA=/arduino15-data
ENV ARDUINO_DIRECTORIES_DOWNLOADS=/arduino15-downloads
ENV ARDUINO_DIRECTORIES_USER=/arduino15-user
COPY install/ubuntu_install_arduino.sh /install/ubuntu_install_arduino.sh
RUN bash /install/ubuntu_install_arduino.sh

Expand Down
5 changes: 5 additions & 0 deletions docker/install/ubuntu_install_arduino.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,8 @@ wget -O - https://raw.githubusercontent.com/arduino/arduino-cli/master/install.s
# Install supported cores from those URLS
arduino-cli core install arduino:mbed_nano
arduino-cli core install arduino:sam

# ARDUINO_DIRECTORIES_USER wouldn't normally be created until we
# install a package, which would casue chmod to fail
mkdir -p "${ARDUINO_DIRECTORIES_DATA}" "${ARDUINO_DIRECTORIES_USER}" "${ARDUINO_DIRECTORIES_DOWNLOADS}"
chmod -R o+rw "${ARDUINO_DIRECTORIES_DATA}" "${ARDUINO_DIRECTORIES_USER}" "${ARDUINO_DIRECTORIES_DOWNLOADS}"