fugreat / nrf52-dev-env

Allows a CI building of NRF52 binaries with just the bare toolchain

Home Page:https://hub.docker.com/r/allesrebel/nrf52-dev-env

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nordic Toolchain Docker Environment

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

Image Contents

Pulling a Prebuilt image

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

Building the Docker Image

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

Usage of Container

Project requirements

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

Building a Specified Project

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

Interactively using the container

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)

Location of Components

  • /tmp/nRF5_SDK_17.0.0
  • /tmp/gcc-arm-none-eabi-7-2018-q2-update

About

Allows a CI building of NRF52 binaries with just the bare toolchain

https://hub.docker.com/r/allesrebel/nrf52-dev-env


Languages

Language:Dockerfile 100.0%