Skip to content

hardwario/nrf-connect-sdk-build-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.5.0 (this release uses Zephyr SDK v0.16.1 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 22.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 nrf-connect-sdk-build:v2.5.0 .

Test Docker Image

Run this command to print the West tool version:

docker run --rm -it nrf-connect-sdk-build:v2.5.0 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 nrf-connect-sdk-build:v2.5.0 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.