Docker Buildx is required to build multi-platform images.
qemu-user-static may be used to enable an execution of different multi-architecture containers by QEMU and binfmt_misc.
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
Task may be used to semi-automate the building and loading of a container image.
APP parameter will need to be set in order to tell Task which app needs to be processed.
Run the following command from the root directory of the repository.
task build APP=<app name>
Other tasks can be listed by running
The container images can be built and loaded manually by using the Docker cli from the repository root directory.
docker buildx build --build-arg VERSION=$(cat ./apps/<app name>/VERSION) --platform $(cat ./apps/<app name>/PLATFORM) -f ./apps/<app name>/Dockerfile .
docker buildx build -t <app name>:test --build-arg VERSION=$(cat ./apps/<app name>/VERSION) -f ./apps/<app name>/Dockerfile . --load