add paragraph for qemu_build on README

This commit is contained in:
Alessandro Chitolina
2021-01-22 19:53:00 +01:00
parent 1b01af719b
commit 980da68068
+18
View File
@@ -63,6 +63,24 @@ To test the resulting image:
$ sudo make test-stretch
```
## Building Minideb for foreign architecture
Make commands shown above will build an image for the architecture you are currently working on.
To build an image for a foreign architecture (for example to build a multiarch image), we provide a
simple script which run a QEMU instance for the target architecture and build the image inside it.
To build and test a buster image for arm64:
```
$ ./qemu_build buster arm64
```
The image will be then imported locally through the docker cli with `$distribution-$architecture` tag
(example: `bitnami/minideb:buster-arm64`)
Current limitations of `qemu_build` script:
- Can be run only on debian-based distributions
- Support `AMD64` and `ARM64` target architectures only
# Contributing
We'd love for you to contribute to this image. You can request new features by creating an [issue](https://github.com/bitnami/minideb/issues), or submit a [pull request](https://github.com/bitnami/minideb/pulls) with your contribution.