Public | Automated Build

Last pushed: 2 years ago
Short Description
https://www.raspbian.org/RaspbianMate
Full Description

Docker+QEMU on X86 for ARM

Raspberry.Taipei Meetup on 2016-01-24

Demo 1 - Run Raspbian by QEMU

Use docker volume the qemu-static file to run ARM docker image.

Golang

GOARCH=arm go build ./hello.go

Java

javac HelloWorld.java

docker run -it --rm -v $(pwd)/qemu-arm-static:/usr/bin/qemu-arm-static -v $(pwd)/demo1:/app philipz/rpi-raspbian bash

Demo 2 - Autobuild ARM docker image

Use Resin blog to build ARM docker image, then upload Github repo to Docker Hub. Docker Hub to autobuild ARM images on itself X86 machine.

Demo 3 - Use Docker to simulate MQTT IoT scenario

Use mosquitto to send mqtt message on ARM device. MQTT broker also runs on ARM, all device are running on X86 platform by Docker and QEMU.

Broker

mosquitto

Sub client

mosquitto_sub -h broker -t rpi/mqtt

Pub client

mosquitto_pub -h broker -t rpi/mqtt-m "Hello World, RPi"

Docker Pull Command
Owner
philipz