tools/docker/README.md
To test the build on various distro, we are using docker containers and a Makefile for orchestration.
pros:
cons:
To get the help simply type:
make
note: you can also use from top directory
make --directory=tools/docker
For example to test inside an Alpine container:
make alpine-edge_test
Dockerfile is split in several stages.
Legend:
<platform>: amd64, arm64, riscv64.<distro>: alpine-edge, archlinux, centos, debian, fedora, opensuse, ubuntu.<lang>: cpp, dotnet, java, python.aarch64 on x86_64 machineYou can build and run aarch64 docker container on a x86_64 by enabling qemu
support:
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
To test:
docker run --platform linux/arm64 --rm --init -it ubuntu:latest bash -c "uname -a"
ref: