From 980da6806865eb8f0dadecd9cbad44fc20d52d0b Mon Sep 17 00:00:00 2001 From: Alessandro Chitolina Date: Fri, 22 Jan 2021 19:53:00 +0100 Subject: [PATCH] add paragraph for qemu_build on README --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index 20ea508..e6e85f4 100644 --- a/README.md +++ b/README.md @@ -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.