aboutsummaryrefslogtreecommitdiffstats
path: root/build_image.sh
diff options
context:
space:
mode:
authorMichael Grote2023-06-19 11:13:27 +0200
committerMichael Grote2023-06-19 11:13:27 +0200
commitf48be9b0af62543527329cdb856b968cbeb6ca02 (patch)
treecfec755fdbe7fbeb859d1235a0cb65b9a620d591 /build_image.sh
parentc64a78a15e4f128d1c149eb26f1a35dfb989c28f (diff)
housekeeping
Diffstat (limited to 'build_image.sh')
-rw-r--r--build_image.sh28
1 files changed, 0 insertions, 28 deletions
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
-