No description
Find a file
2024-10-11 17:48:13 +03:00
docker-brew-rosa change to r11, clean 2024-10-11 17:10:22 +03:00
build-rpm.sh Add deps error to grep 2020-02-12 11:03:17 +03:00
builder.conf change builder conffile 2024-10-11 17:48:13 +03:00
cachedchroot.sh add rosa-builder 2019-02-24 10:07:31 +01:00
check_arch.py lint 2019-06-04 23:45:07 +03:00
check_newer_versions.py put distepoch in the right place 2019-04-14 21:01:40 +00:00
config-generator.sh disable fastunsafe 2019-09-11 23:31:31 +03:00
Dockerfile.builder change to r11, clean 2024-10-11 17:10:22 +03:00
download_sources.sh fix path to fstore 2019-02-24 19:07:02 +03:00
enable_all_repos.py enable all repos 2019-04-14 15:56:53 +03:00
README.md change to r11, clean 2024-10-11 17:10:22 +03:00

Quickstart

Clone repository

git clone https://tvoygit.ru/Djam/r11-builder-agent.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>.r11.org.ru -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