Created
May 30, 2017 12:49
-
-
Save PieterScheffers/d50f609d9628383e4c9d8d7d269b7643 to your computer and use it in GitHub Desktop.
Build ARM docker images for Raspberry Pi with QEMU
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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?