From 93800058ac38248357e7ebdeb91863f93791aa5d Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Sat, 24 Oct 2020 17:58:31 -0700 Subject: [PATCH] do less work to install a duplicate arduino cli when running docker-simulator-tests. --- Makefile | 2 +- etc/Dockerfile | 8 +------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index 876b9280..989b6674 100644 --- a/Makefile +++ b/Makefile @@ -94,7 +94,7 @@ prepare-virtual: $(MAKE) -C $(BOARD_HARDWARE_PATH)/keyboardio prepare-virtual -simulator-tests: install-arduino-cli configure-arduino-cli install-arduino-core-avr prepare-virtual +simulator-tests: configure-arduino-cli prepare-virtual $(MAKE) -C tests all docker-simulator-tests: diff --git a/etc/Dockerfile b/etc/Dockerfile index 2f587e4a..718125be 100644 --- a/etc/Dockerfile +++ b/etc/Dockerfile @@ -8,15 +8,9 @@ RUN apt-get -qq update && \ RUN ccache --set-config=cache_dir=/kaleidoscope-persist/ccache/cache -ENV ARDUINO_VERSION "1.8.13" - -WORKDIR /usr/local -RUN curl https://downloads.arduino.cc/arduino-${ARDUINO_VERSION}-linux64.tar.xz | \ - xzcat | tar xf - && \ - ln -s arduino-${ARDUINO_VERSION} arduino RUN curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | \ sh -RUN /usr/local/bin/arduino-cli core install arduino:avr +RUN /bin/arduino-cli core install arduino:avr COPY docker-entrypoint.sh /usr/local/bin/entrypoint