1.0 KiB
1.0 KiB
Docker build (for arm nodes using qemu)
- Install docker CLI https://daniel.es/blog/how-to-install-docker-in-wsl-without-docker-desktop/
- For reference: Guide for setting up multiarch build support: https://docs.docker.com/build/building/multi-platform/
- Configure qemu emulation for arm on x86_64:
- docker buildx create --name multi-arch-builder --use
- docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
- docker buildx inspect --bootstrap
- Before building and pushing: Copy the .env-example file to .env and enter auth info inside it
- run ./build.sh (executes docker buildx build command to build an image on a x86 host that can run on an arm node, e.g.: docker buildx build --platform linux/arm64 --load -t $IMAGE . --build-arg http_proxy=$http_proxy --build-arg https_proxy=$https_proxy --build-arg no_proxy=$no_proxy) Multiarch images cannot be loaded into the deamon using --load but need to be pushed into a registry directly using --push or be exported to a file
Docker push image to OCI
- run .