Skip to content

Latest commit

 

History

History
59 lines (36 loc) · 2.29 KB

README.md

File metadata and controls

59 lines (36 loc) · 2.29 KB

HARDWARIO Logo

nrf-connect-sdk-build-docker

Build Environment for nRF Connect SDK

CI

This repository contains Dockerfile for the nRF Connect SDK (NCS) version v2.9.0 (this release uses Zephyr SDK `v0.17.0 as the validated toolchain). The Docker image is helpful for CI/CD pipelines or quick setup of the development environment on any desktop machine.

The environment is based on Ubuntu 24.04 LTS and follows the instructions for manual installation provided by Nordic Semiconductor.

The pre-built Docker image is available on Docker Hub:
https://hub.docker.com/r/hardwario/nrf-connect-sdk-build

Build Docker Image

Clone this Git repository:

git clone https://github.com/hardwario/nrf-connect-sdk-build-docker.git

Go to the Git repository:

cd nrf-connect-sdk-build-docker

Build the Docker image using this command:

docker build -t hardwario/nrf-connect-sdk-build:v2.9.0-1 .

Test Docker Image

Run this command to print the West tool version:

docker run --rm -it hardwario/nrf-connect-sdk-build:v2.9.0-1 west --version

Build Firmware

Run this command to build firmware using the Docker image:

sh -c 'docker run --rm -it -u $(id -u):$(id -g) -v $(pwd):/build -w /build/zephyr/samples/basic/blinky hardwario/nrf-connect-sdk-build:v2.9.0-1 west build -b <BOARD_NAME>'

This command must be run from the root directory of your West workspace. Note that the docker command is encapsulated under the sh command, so the users of the Fish shell can evaluate this example seamlessly. Do not forget to replace the <BOARD_NAME> parameter with the real board.

License

This project is licensed under the MIT License - see the LICENSE file for details.


Made with ❤️ by HARDWARIO a.s. in the heart of Europe.