Clone repository
git clone https://github.com/OpenMandrivaSoftware/rosa-builder.git
Create builder image:
cd rosa-builder
docker build --tag=rosalab/builder:2016 --file Dockerfile.builder .
https://github.com/mikhailnov/docker-rosa/
docker rm -v $(docker ps -a -q -f status=exited)
docker run -ti --rm --privileged=true -h <yourname>.openmandriva.org -e BUILD_TOKEN="your_token" \
-e BUILD_ARCH="x86_64 armv7hl i586 i686 aarch64" \
-e BUILD_PLATFORM="cooker" openmandriva/builder
Add file
/etc/binfmt.d/arm.conf
:arm:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin/qemu-arm-binfmt:P
and this file
/etc/binfmt.d/aarch64.conf
:aarch64:M::\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xb7\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin/qemu-aarch64-binfmt:P
Then you need to restart binfmt service
systemctl restart systemd-binfmt.service
screencast: