Skip to content

Commit

Permalink
Fix ci-qemu Arduino install dir (apache#8766)
Browse files Browse the repository at this point in the history
  • Loading branch information
guberti authored and ylc committed Jan 13, 2022
1 parent 25716cf commit d407f5a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
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}"

0 comments on commit d407f5a

Please sign in to comment.