forked from project-chip/connectedhomeip
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add docker definition for nRF Connect SDK (project-chip#1529)
* Add docker definition for nRF Connect SDK * Restyled by whitespace Co-authored-by: Restyled.io <commits@restyled.io>
- Loading branch information
1 parent
0203bed
commit 4c8c053
Showing
4 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
integrations/docker/images/chip-build-nrfconnect-platform/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
ARG VERSION=latest | ||
FROM connectedhomeip/chip-build:${VERSION} | ||
|
||
RUN set -x \ | ||
# GCC ARM Embedded Toolchain | ||
&& wget -qO- https://developer.arm.com/-/media/Files/downloads/gnu-rm/9-2020q2/gcc-arm-none-eabi-9-2020-q2-update-x86_64-linux.tar.bz2 \ | ||
| tar xj -C /var \ | ||
# Device Tree Compiler 1.4.7 | ||
&& wget -qO/tmp/dtc.deb http://mirrors.edge.kernel.org/ubuntu/pool/main/d/device-tree-compiler/device-tree-compiler_1.4.7-3ubuntu2_amd64.deb \ | ||
&& dpkg -i /tmp/dtc.deb \ | ||
# nRF Tools for flashing software on Nordic devices, and accessing device logs | ||
&& wget -qO- https://www.nordicsemi.com/-/media/Software-and-other-downloads/Desktop-software/nRF-command-line-tools/sw/Versions-10-x-x/10-7-0/nRFCommandLineTools1070Linuxamd64tar.gz \ | ||
| tar xz -C /tmp \ | ||
&& dpkg -i /tmp/JLink_Linux_*.deb \ | ||
&& dpkg -i /tmp/nRF-Command-Line-Tools_*.deb \ | ||
# nRF Connect SDK dependencies | ||
&& pip3 install --no-cache-dir setuptools wheel cmake west pyyaml \ | ||
# nRF Connect SDK 1.3.0 sources & requirements | ||
&& (mkdir /var/ncs && cd /var/ncs \ | ||
&& west init -m https://github.com/nrfconnect/sdk-nrf --mr v1.3.0 \ | ||
&& west update \ | ||
&& pip3 install --no-cache-dir -r zephyr/scripts/requirements.txt \ | ||
&& pip3 install --no-cache-dir -r nrf/scripts/requirements.txt \ | ||
&& pip3 install --no-cache-dir -r bootloader/mcuboot/scripts/requirements.txt) \ | ||
# Configuration | ||
&& echo "source /var/ncs/zephyr/zephyr-env.sh" >> ~/.bashrc \ | ||
# Cleanup | ||
&& rm -rf /tmp/* ~/.cache/* \ | ||
&& : # last line | ||
|
||
ENV LC_ALL=C.UTF-8 | ||
ENV LANG=C.UTF-8 | ||
ENV ZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb | ||
ENV GNUARMEMB_TOOLCHAIN_PATH=/var/gcc-arm-none-eabi-9-2020-q2-update |
1 change: 1 addition & 0 deletions
1
integrations/docker/images/chip-build-nrfconnect-platform/build.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../build.sh |
1 change: 1 addition & 0 deletions
1
integrations/docker/images/chip-build-nrfconnect-platform/run.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../run.sh |
1 change: 1 addition & 0 deletions
1
integrations/docker/images/chip-build-nrfconnect-platform/version
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../chip-build/version |