2019-01-21 16:40:36 +00:00
|
|
|
#!/bin/bash
|
2019-01-21 17:44:35 +00:00
|
|
|
set -euxo pipefail
|
2019-01-22 11:52:03 +00:00
|
|
|
|
|
|
|
ARCH=$(uname -m)
|
|
|
|
|
|
|
|
case $ARCH in
|
|
|
|
x86_64)
|
|
|
|
BASE_IMAGE=debian:stretch
|
|
|
|
;;
|
|
|
|
armv*)
|
2019-01-22 14:52:53 +00:00
|
|
|
BASE_IMAGE=arm32v6/alpine
|
2019-01-22 11:52:03 +00:00
|
|
|
esac
|
|
|
|
|
|
|
|
TAGS=$ARCH
|
|
|
|
|
|
|
|
docker build --build-arg BASE_IMAGE=$BASE_IMAGE -t openwebrx-base:$ARCH -f docker/Dockerfiles/Dockerfile-base .
|
2019-01-22 14:52:53 +00:00
|
|
|
docker build --build-arg ARCH=$ARCH -t jketterl/openwebrx-rtlsdr:$ARCH -t jketterl/openwebrx:$ARCH -f docker/Dockerfiles/Dockerfile-rtlsdr .
|
|
|
|
docker build --build-arg ARCH=$ARCH -t jketterl/openwebrx-sdrplay:$ARCH -f docker/Dockerfiles/Dockerfile-sdrplay .
|
2019-01-22 11:52:03 +00:00
|
|
|
|
|
|
|
if [ "$ARCH" == "armv7l" ]; then
|
|
|
|
for image in openwebrx openwebrx-rtlsdr openwebrx-sdrplay; do
|
|
|
|
docker tag jketterl/$image:$ARCH jketterl/$image:latest
|
|
|
|
done
|
|
|
|
fi
|