r11-builder-agent/README.md
2019-02-26 20:02:33 +01:00

1.4 KiB

Quickstart

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 .

Repo with mkimage-urpmi.sh

https://github.com/mikhailnov/docker-rosa/

Remove stopped containers

docker rm -v $(docker ps -a -q -f status=exited)

Run abf builder

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

Prepare Environment

ARMv7

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

ARM64 (aarch64)

/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:

demo