This docker image generates the proper toolchain environment for building and exporting binaries. Bare minimum to build an example project from the SDK.
This image will be pulling in the latest arm-gcc toolchain recommended by the SDK and attempt to build from source.
To update repository URLs, see docker file
- NRF52 17.0.0 SDK
- GNU ARM Toolchain 9.2019q4
- vim, git, wget, python, unzip, make, srecord
If you're feeling lazy, feel free to just replace hash
with
allesrebel/nrf52-dev-env:latest
. Note you'll need to first
pull the image with:
docker pull allesrebel/nrf52-dev-env:latest
Make sure Docker is installed, see Docker Install
In the directory of this repository, issue the docker build -t nrf52-builder .
command.
This will build the image for use. run docker images
to make sure you now have an image
called nordic-builder
This image assumes that there exists a 'project/armgcc' folder in the project's root directory. The environment variables will be automatically set up and will attempt to execute make
Running the image can be done with a standard run command with the
project to build with the -v
command. The container needs the
directory of the project makefile. Supply this with the MAKEFILE_DIR
enviroment variable.
docker run -v (Path to project):(mount_location) -e MAKEFILE_DIR=(mount_location) nrf52-builder
In situations where direct control of the toolchain is required
you can specify the -it
arg and run bash directly. (Works during
start of the container or exec on a existing container)
/tmp/nRF5_SDK_17.0.0
/tmp/gcc-arm-none-eabi-7-2018-q2-update