-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
27 lines (22 loc) · 1.43 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM ubuntu:20.04
RUN apt-get -qq update && \
DEBIAN_FRONTEND="noninteractive" apt-get -qq install -y wget unzip build-essential cmake ninja-build git python3 python3-pip unzip xxd libarchive-zip-perl
RUN mkdir tools
# Install gcc_arm_none_eabi_10_2020_q4_major
RUN wget -q https://armkeil.blob.core.windows.net/developer/Files/downloads/gnu-rm/10-2020q4/gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2 && \
tar -xjf gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2 -C /tools && \
rm gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2
ENV PATH="/tools/gcc-arm-none-eabi-10-2020-q4-major/bin:$PATH"
ENV GNU_INSTALL_ROOT="/tools/gcc-arm-none-eabi-10-2020-q4-major/bin/"
# Install nRF command line tools for mergehex
RUN wget -q https://www.nordicsemi.com/-/media/Software-and-other-downloads/Desktop-software/nRF-command-line-tools/sw/Versions-10-x-x/10-13-0/nRF-Command-Line-Tools_10_13_0_Linux64.zip && \
unzip nRF-Command-Line-Tools_10_13_0_Linux64.zip -d /tools && \
rm nRF-Command-Line-Tools_10_13_0_Linux64.zip && \
cd /tools/nRF-Command-Line-Tools_10_13_0_Linux64 && \
tar -xf nRF-Command-Line-Tools_10_13_0_Linux-amd64.tar.gz && \
rm nRF-Command-Line-Tools_10_13_0_Linux-amd64.tar.gz && \
tar -xf nRF-Command-Line-Tools_10_13_0.tar && \
rm nRF-Command-Line-Tools_10_13_0.tar
ENV PATH="/tools/nRF-Command-Line-Tools_10_13_0_Linux64/mergehex:$PATH"
# Install nrfutil
RUN pip3 install nrfutil