4 Steps to build arm-based docker image on Mac OS
To build an arm image, we need the qemu emulator to emulate those arm executions in the image. First, extract the static linked qemu emulator from linux.
To not mess with Mac, we do it in an Ubuntu Docker:
//On Ubuntu Docker
SCP the qemu-arm-static out from docker Ubuntu Docker machine to host Mac
//On Ubuntu Docker
Register QEMU as the build agent in Mac:
Don’t understand, but it works… //On Mac
Create the Dockerfile with ubuntu-arm from Mac:
//On Mac
ref:
- https://blog.hypriot.com/post/setup-simple-ci-pipeline-for-arm-images/
- https://resin.io/blog/building-arm-containers-on-any-x86-machine-even-dockerhub/
Comments