r11-builder-agent/README.md

58 lines
1.4 KiB
Markdown
Raw Permalink Normal View History

2019-02-24 10:07:31 +01:00
## Quickstart
Clone repository
```bash
2024-10-11 17:10:22 +03:00
git clone https://tvoygit.ru/Djam/r11-builder-agent.git
2019-02-24 10:07:31 +01:00
```
Create builder image:
```bash
2019-02-26 20:02:33 +01:00
cd rosa-builder
docker build --tag=rosalab/builder:2016 --file Dockerfile.builder .
2019-02-24 10:07:31 +01:00
```
2019-02-25 19:21:59 +03:00
## Repo with mkimage-urpmi.sh
https://github.com/mikhailnov/docker-rosa/
2019-02-24 10:07:31 +01:00
## Remove stopped containers
```bash
docker rm -v $(docker ps -a -q -f status=exited)
```
## Run abf builder
```bash
2024-10-11 17:10:22 +03:00
docker run -ti --rm --privileged=true -h <yourname>.r11.org.ru -e BUILD_TOKEN="your_token" \
2019-02-24 10:07:31 +01:00
-e BUILD_ARCH="x86_64 armv7hl i586 i686 aarch64" \
-e BUILD_PLATFORM="cooker" openmandriva/builder
```
## Prepare Environment
## ARMv7
Add file
```bash
/etc/binfmt.d/arm.conf
```
```bash
: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)
```bash
/etc/binfmt.d/aarch64.conf
```
```bash
: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
```bash
systemctl restart systemd-binfmt.service
```
screencast:
[![demo](https://asciinema.org/a/9c5mzq43h15kmeg4roiq8yvok.png)](https://asciinema.org/a/9c5mzq43h15kmeg4roiq8yvok?autoplay=1)