From 18a1a7cfb53c5cea75f7da4dcd0dddcef5ccd613 Mon Sep 17 00:00:00 2001 From: Corentin Le Molgat Date: Wed, 25 May 2022 13:05:48 +0200 Subject: [PATCH] tools/docker: Update README.md --- tools/docker/README.md | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/tools/docker/README.md b/tools/docker/README.md index 5b0954c8c7..984d390278 100644 --- a/tools/docker/README.md +++ b/tools/docker/README.md @@ -5,15 +5,15 @@ Makefile for orchestration. pros: * You are independent of third party CI runner config (e.g. github actions - runners or Travis-CI VM images). + runners). * You can run it locally on any unix system. * Most CI provide runner with docker and Makefile installed. cons: * Only GNU/Linux distro supported. -* Could take few GiB (~30 GiB for all distro and all languages) +* Could take few GiB (~50 GiB for all distro and all languages) * ~500MiB OS + C++/CMake tools, - * ~150 MiB Python, wheel, + * ~150 MiB Python, wheel. ## Usage @@ -40,13 +40,21 @@ Dockerfile is split in several stages. ![docker](docs/deps.svg) -### Docker aarch64 on x86_64 machine +### Docker `aarch64` on `x86_64` machine -You can build and run aarch64 docker container on a x86_64 by enabling qemu +You can build and run aarch64 docker container on a `x86_64` by enabling qemu support: ```sh docker run --rm --privileged multiarch/qemu-user-static --reset -p yes ``` -ref: https://github.com/multiarch/qemu-user-static#getting-started +To test: + +```sh +docker run --platform linux/arm64 --rm --init -it ubuntu:latest bash -c "uname -a" +``` + +ref: +* https://github.com/docker-library/official-images#architectures-other-than-amd64 +* https://github.com/multiarch/qemu-user-static#getting-started