Install nrfjprog and nrfutil in docker image
@@ -36,6 +36,7 @@ RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E03280
python-dev \
python-pip \
python3-pip \
+ python3-setuptools \
python-serial \
rlwrap \
sudo \
@@ -43,6 +44,7 @@ RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E03280
srecord \
uml-utilities \
unzip \
+ libusb-1.0-0 \
valgrind \
wget \
smitools \
@@ -85,6 +87,15 @@ RUN wget -nv https://developer.nordicsemi.com/nRF5_IoT_SDK/nRF5_IoT_SDK_v0.9.x/n
ENV NRF52_SDK_ROOT /usr/nrf52-sdk
+# Install nRF Command Line tools
+RUN wget -nv https://www.nordicsemi.com/-/media/Software-and-other-downloads/Desktop-software/nRF-command-line-tools/sw/Versions-10-x-x/10-12-1/nRFCommandLineTools10121Linuxi386.tar.gz && \
+ mkdir /tmp/nrf-cli-tools && \
+ tar xzf nRFCommandLineTools10121Linuxi386.tar.gz -C /tmp/nrf-cli-tools && \
+ dpkg -i /tmp/nrf-cli-tools/JLink_Linux_V688a_i386.deb && \
+ dpkg -i /tmp/nrf-cli-tools/nRF-Command-Line-Tools_10_12_1_Linux-i386.deb && \
+ ln -s /opt/SEGGER/JLink_V688a/libjlinkarm.so /opt/SEGGER/JLink_V688a/libjlinkarm_x86.so && \
+ rm -rf nRFCommandLineTools10121Linuxi386.tar.gz /tmp/nrf-cli-tools
+
# Install sphinx and sphinx_rtd_theme, required for building and testing the
# readthedocs API documentation
RUN pip -q install --upgrade pip
@@ -93,6 +104,10 @@ RUN pip -q install setuptools && pip -q install sphinx_rtd_theme sphinx
RUN pip3 -q install --upgrade pip
RUN pip3 -q install matplotlib
+# Install nrfutil and work around broken pc_ble_driver_py dependency
+RUN pip3 -q install nrfutil && \
+ pip3 -q install --no-deps -t /usr/local/lib/python3.6/dist-packages --python-version 3.6 --ignore-requires-python --upgrade nrfutil
+
# Create user, enable X forwarding, add to group dialout
# -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix
RUN export uid=1000 gid=1000 && \
@@ -112,6 +127,8 @@ ENV HOME /home/user
ENV CONTIKI_NG ${HOME}/contiki-ng
ENV COOJA ${CONTIKI_NG}/tools/cooja
ENV PATH="${HOME}:${PATH}"
+ENV LC_ALL=C.UTF-8
+ENV LANG=C.UTF-8
WORKDIR ${HOME}
# Create Cooja shortcut
