Skip to content

Instantly share code, notes, and snippets.

@PieterScheffers
Created May 30, 2017 12:49
Show Gist options
  • Save PieterScheffers/d50f609d9628383e4c9d8d7d269b7643 to your computer and use it in GitHub Desktop.
Save PieterScheffers/d50f609d9628383e4c9d8d7d269b7643 to your computer and use it in GitHub Desktop.
Build ARM docker images for Raspberry Pi with QEMU
# https://blog.hypriot.com/post/setup-simple-ci-pipeline-for-arm-images/
### Choose a base image with QEMU binary
# FROM hypriot/rpi-alpine
# FROM resin/rpi-raspbian
# FROM resin/raspberry-pi-alpine-node:slim
### Register QEMU in the build agent
docker run --rm --privileged multiarch/qemu-user-static:register --reset
### Build ARM app
docker build -t rpi-myapp .
@svanscho
Copy link

This doesn't work for node based apps as they require armhf (arm v7 architecture.) How can we force the qemu emulator into v7 (armhf) only?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment