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*)
|
|
|
|
BASE_IMAGE=raspbian/stretch
|
|
|
|
esac
|
|
|
|
|
|
|
|
TAGS=$ARCH
|
|
|
|
|
|
|
|
docker build --build-arg BASE_IMAGE=$BASE_IMAGE -t openwebrx-base:$ARCH -f docker/Dockerfiles/Dockerfile-base .
|
|
|
|
docker build -t jketterl/openwebrx-rtlsdr:$ARCH -t jketterl/openwebrx:$ARCH -f docker/Dockerfiles/Dockerfile-rtlsdr .
|
|
|
|
docker build -t jketterl/openwebrx-sdrplay:$ARCH -f docker/Dockerfiles/Dockerfile-sdrplay .
|
|
|
|
|
|
|
|
if [ "$ARCH" == "armv7l" ]; then
|
|
|
|
for image in openwebrx openwebrx-rtlsdr openwebrx-sdrplay; do
|
|
|
|
docker tag jketterl/$image:$ARCH jketterl/$image:latest
|
|
|
|
done
|
|
|
|
fi
|