forked from Xavier-Yin/nRF_emBuild
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
26 lines (22 loc) · 1.42 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
FROM ubuntu:20.04
ARG ARCH=v7em_fpv4_sp_d16_hard_t_le_eabi
ARG SES_VERSION=542a
ARG NCLT_MAJOR=10
ARG NCLT_MINOR=12
ARG NCLT_PATCH=1
RUN mkdir -p /_tmp /nordic && \
apt-get -qq update && \
apt-get install -y --no-install-recommends wget libx11-6 libfreetype6 libxrender1 libfontconfig1 libxext6 python3-pip && \
pip3 install nrfutil && \
wget --no-check-certificate -qO- https://www.nordicsemi.com/-/media/Software-and-other-downloads/Desktop-software/nRF-command-line-tools/sw/Versions-${NCLT_MAJOR}-x-x/${NCLT_MAJOR}-${NCLT_MINOR}-${NCLT_PATCH}/nRFCommandLineTools${NCLT_MAJOR}${NCLT_MINOR}${NCLT_PATCH}Linuxamd64.tar.gz | tar zxvfO - --wildcards *.tar | tar zxvf - --wildcards *mergehex/ -C /nordic && \
cd /_tmp && \
wget --no-check-certificate -qO- https://www.segger.com/downloads/embedded-studio/Setup_EmbeddedStudio_ARM_v${SES_VERSION}_linux_x64.tar.gz | tar zxvf - --wildcards */install_segger_embedded_studio && \
printf 'yes\n' | DISPLAY=:1 $(find . -name "install_segger_embedded_studio") --copy-files-to /ses && \
find /ses/lib/ ! -name "*${ARCH}.a" -type f -delete && \
find /ses/segger-rtl/libs/ ! -name "*${ARCH}.a" -type f -delete && \
find /ses/llvm/bin/ ! -name 'clang-tidy' -type f -delete && \
find /ses/bin/ -name 'segger*' -type f -delete && \
cd - && \
rm -rf /_tmp
ENV PATH="/ses/bin:/nordic/mergehex:$PATH"
CMD ["emBuild && nrfutil --help && mergehex --help]