diff --git a/README.md b/README.md deleted file mode 100644 index 66762bf..0000000 --- a/README.md +++ /dev/null @@ -1,10 +0,0 @@ -# How to build the container -To build the container make the script executable `chmod +x ./build_image.sh` and run it with one of the desired architectures as first parameter -``` -sudo ./build_image.sh [x86|arm|arm64] -``` -If you want to build the container for a platform different to your current run this once before building -``` -sudo docker run --privileged --rm docker/binfmt:a7996909642ee92942dcd6cff44b9b95f08dad64 -``` -The final images are places in the `images` subfolder in the build directory. diff --git a/build_image.sh b/build_image.sh deleted file mode 100644 index d83ccc3..0000000 --- a/build_image.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/bash -usage(){ - echo -e "Usage:\n\t$0 [arm|arm64|x86]" - exit 1 -} -if [[ -z "$1" ]]; then - usage -fi -ARCH=${1,,} -[[ -d ./images ]] || mkdir ./images -case $ARCH in - arm) - sudo docker buildx build --no-cache --platform linux/arm/v6 -t mdns . - sudo docker save mdns -o ./images/mdns_arm32.tar - ;; - arm64) - sudo docker buildx build --no-cache --platform linux/arm64 -t mdns . - sudo docker save mdns -o ./images/mdns_arm64.tar - ;; - x86) - sudo docker buildx build --no-cache --platform linux/amd64 -t mdns . - sudo docker save mdns -o ./images/mdns_x86.tar - ;; - *) - usage - ;; -esac -