Build and Test Environment based on Ubuntu 14.04 LTS for the STM32F4-Discovery board.
- examples have the following status:
- build-ARM-toolchain
- freertos library
- mbed library
- mbed-project-wizard
- STM32F4-Discovery_FW_V1.1.0 library library
- test
docker --version
Docker version 1.1.0 # Issues with version < 1.1.0
# Install Docker by following instructions at https://docs.docker.com
sudo docker pull istarc/stm32
An alternative is to build the image from scratch. See the Dockerfile for details.
CONTAINER_ID=$(sudo docker run -P -d --privileged=true istarc/stm32)
# Other run options:
# CONTAINER_ID=$(sudo docker run -P -d istarc/stm32) # /wo deploy capability
# sudo docker run -P -i -t istarc/stm32 /bin/bash # Interactive mode
sudo docker stop $CONTAINER_ID
# Stop and remove all containers:
# sudo docker stop $(sudo docker ps -a -q)
# sudo docker rm $(sudo docker ps -a -q)
# Remove all untagged images:
# sudo docker rmi $(sudo docker images | grep "^<none>" | awk '{print $3}')
ssh -p $(sudo docker port $CONTAINER_ID 22 | cut -d ':' -f2) admin@localhost
# Enter password: admin
cd ~/stm32/
make clean
make -j4
cd ~/stm32/examples/Template.mbed
make clean
make -j4
sudo make deploy
firefox http://localhost:$(sudo docker port $CONTAINER_ID 8010 | cut -d ':' -f2)
Login U: admin P: admin (Upper right corner)
Click: Waterfall -> test-build-local -> [Use default options] -> Force Build
# Test builds examples in /home/admin/stm32/examples
Click: Waterfall -> test-build-repo -> [Use default options] -> Force Build
# Test builds examples from the https://github.com/istarc/stm32.git repository
Check: Waterfall -> F5 to Refresh