Skip to content

Commit

Permalink
Updating nrf-command-line-tools path in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesportwoodii committed Apr 3, 2022
1 parent e7f6ede commit 60c40d3
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ LABEL maintainer="Charles R. Portwood II <[email protected]>"

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
Expand All @@ -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 && \
Expand All @@ -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 && \
Expand Down

0 comments on commit 60c40d3

Please sign in to comment.