-
Notifications
You must be signed in to change notification settings - Fork 1
Use Docker to build RIOT
Docker is a platform that allows packaging software into containers that can easily be run on any Linux that has Docker installed.
You can use the included Dockerfile (in dist/Dockerfile) to build a RIOT Docker container and then use that to build your project making use of all toolchains that we've preinstalled in the container.
First, install Docker. Probably sudo apt-get install docker
(or equivalent) will be all you need.
Second, make sure your user can execute Docker containers. You probably have to add yourself to the docker group and relogin.
Then, enter the dist
-directory and build the RIOT Docker container:
dist/ # docker build -t riotbuild .
This will take a while. If it finishes correctly, you can then use the toolchains contained in the Docker container: (from the riot root):
# docker run -i -t -u $UID -v $(pwd):/data/riotbuild riotbuild ./dist/tools/compile_test/compile_test.py
The Docker container has it's working directory set to (the container's virtual) /data/riotbuild
.
If you want to build the default example for the chronos board, try something like this:
# docker run -i -t -u $UID -v /path/to/your/riot/rootdir:/data/riotbuild --env BOARD=chronos riotbuild make -C examples/default clean all
RIOT - The friendly Operating System for the Internet of Things
Homepage | [GitHub] (https://github.com/RIOT-OS/) | Developers Mailing List | Users Mailing List | Twitter @RIOT_OS
- Family: ARM
- Board: Airfy Beacon
- Board: Arduino Due
- Board: CC2538DK
- Board: CC2650STK
- Board: HikoB Fox
- Board: IoT LAB M3
- Board: LimiFrog-v1
- Board: mbed_lpc1768
- Board: MSB-IoT
- Board: MSBA2
- Board: Nucleo-L1
- Board: Nucleo-F334
- Board: Nucleo-F303
- Board: Nucleo-F091
- Board: Mulle
- Board: OpenMote
- Board: PCA1000x (nRF51822 Development Kit)
- Board: Phytec phyWAVE-KW22
- Board: RFduino
- Board: SAMR21-xpro
- Board: SAML21-xpro
- Board: Spark Core
- Board: STM32F0discovery
- Board: STM32F3discovery
- Board: STM32F4discovery
- Board: UDOO
- Board: yunjia-nrf51822
- Board: Zolertia remote
- Family: ATmega
- Board: Arduino Mega2560
- Family: MSP430
- Board: MSB-430H
- Board: TelosB
- Board: WSN430
- Board: Zolertia Z1
- Board: eZ430-Chronos
- Family: native
- Board: native
- Family: x86
- Board: Intel Galileo