aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Grote2023-06-19 11:13:27 +0200
committerMichael Grote2023-06-19 11:13:27 +0200
commitf48be9b0af62543527329cdb856b968cbeb6ca02 (patch)
treecfec755fdbe7fbeb859d1235a0cb65b9a620d591
parentc64a78a15e4f128d1c149eb26f1a35dfb989c28f (diff)
housekeeping
-rw-r--r--README.md10
-rw-r--r--build_image.sh28
2 files changed, 0 insertions, 38 deletions
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
-