housekeeping

This commit is contained in:
Michael Grote 2023-06-19 11:13:27 +02:00
parent c64a78a15e
commit f48be9b0af
2 changed files with 0 additions and 38 deletions

View file

@ -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.

View file

@ -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