From 60c40d35282a76243f8c1ddf9cc95f099712effa Mon Sep 17 00:00:00 2001 From: "Charles R. Portwood II" Date: Sun, 3 Apr 2022 11:01:34 -0500 Subject: [PATCH] Updating nrf-command-line-tools path in Dockerfile --- Dockerfile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 39c6bf2..f6bbee6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ LABEL maintainer="Charles R. Portwood II " ENV GNU_INSTALL_ROOT="/root/gcc-arm-none-eabi-10.3-2021.10/bin/" ENV NORDIC_SDK_PATH="/root/nrf_sdk/16.0.0" -ENV PATH="$PATH:/root/gcc-arm-none-eabi-10.3-2021.10/bin:/root/nrf-command-line-tools:/root/.local/bin" +ENV PATH="$PATH:/root/gcc-arm-none-eabi-10.3-2021.10/bin:/root/nrf-command-line-tools/bin:/root/.local/bin" ENV BOARD="" ENV DEBUG=0 @@ -28,6 +28,12 @@ RUN cd $HOME && \ tar -xf ${GCC_ARM_NAME_BZ} && \ rm -rf ${GCC_ARM_NAME_BZ} +# Install NRF Command Line Tools +RUN cd $HOME && \ + curl -L https://www.nordicsemi.com/-/media/Software-and-other-downloads/Desktop-software/nRF-command-line-tools/sw/Versions-10-x-x/10-15-4/nrf-command-line-tools-10.15.4_Linux-amd64.tar.gz -o cli-tools.tar.gz && \ + tar -xf cli-tools.tar.gz + +# Install NRF SDK RUN cd $HOME && \ mkdir -p $HOME/nrf_sdk/16.0.0 && \ wget https://www.nordicsemi.com/-/media/Software-and-other-downloads/SDKs/nRF5/Binaries/nRF5SDK160098a08e2.zip -O nRF5_SDK_16.0.0_98a08e2.zip && \ @@ -36,6 +42,7 @@ RUN cd $HOME && \ unzip nRF5_SDK_16.0.0_98a08e2.zip > /dev/null 2>&1 && \ rm -rf nRF5_SDK_16.0.0_98a08e2.zip +# Install micro-ecc RUN cd $HOME/nrf_sdk/16.0.0/external/micro-ecc && \ git clone https://github.com/kmackay/micro-ecc && \ chmod +x $HOME/nrf_sdk/16.0.0/external/micro-ecc/build_all.sh && \