mirror of
https://tvoygit.ru/Djam/r11-builder-agent.git
synced 2025-02-23 10:22:45 +00:00
55 lines
1.3 KiB
Markdown
55 lines
1.3 KiB
Markdown
![]() |
## Quickstart
|
||
|
|
||
|
Clone repository
|
||
|
|
||
|
```bash
|
||
|
git clone https://github.com/OpenMandrivaSoftware/docker-builder.git
|
||
|
```
|
||
|
Create builder image:
|
||
|
|
||
|
```bash
|
||
|
cd docker-builder
|
||
|
docker build --tag=openmandriva/builder --file $HOME/docker-builder/Dockerfile.builder .
|
||
|
```
|
||
|
|
||
|
## Remove stopped containers
|
||
|
```bash
|
||
|
docker rm -v $(docker ps -a -q -f status=exited)
|
||
|
```
|
||
|
|
||
|
## Run abf builder
|
||
|
```bash
|
||
|
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
|
||
|
|
||
|
```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:
|
||
|
|
||
|
[](https://asciinema.org/a/9c5mzq43h15kmeg4roiq8yvok?autoplay=1)
|