2019-02-24 10:07:31 +01:00
|
|
|
## Quickstart
|
|
|
|
|
|
|
|
Clone repository
|
|
|
|
|
|
|
|
```bash
|
2019-02-25 19:21:59 +03:00
|
|
|
git clone https://github.com/OpenMandrivaSoftware/rosa-builder.git
|
2019-02-24 10:07:31 +01:00
|
|
|
```
|
|
|
|
Create builder image:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
cd docker-builder
|
|
|
|
docker build --tag=openmandriva/builder --file $HOME/docker-builder/Dockerfile.builder .
|
|
|
|
```
|
|
|
|
|
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
|
|
|
|
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)
|