Skip to content

Build

Building of the container images need to be done from the root directory of the repository so that the app files, such as entrypoint.sh, can be properly copied into the image.

Docker Buildx

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

Task may be used to semi-automate the building and loading of a container image.

The 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 task -l.

Manual

The container images can be built and loaded manually by using the Docker cli from the repository root directory.

Build

docker buildx build --build-arg VERSION=$(cat ./apps/<app name>/VERSION) --platform $(cat ./apps/<app name>/PLATFORM) -f ./apps/<app name>/Dockerfile .

Load

docker buildx build -t <app name>:test --build-arg VERSION=$(cat ./apps/<app name>/VERSION) -f ./apps/<app name>/Dockerfile . --load