add docker build for eb200 devices
This commit is contained in:
parent
2022c53fad
commit
b380187453
@ -2,7 +2,7 @@
|
|||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
ARCH=$(uname -m)
|
ARCH=$(uname -m)
|
||||||
IMAGES="openwebrx-rtlsdr openwebrx-sdrplay openwebrx-hackrf openwebrx-airspy openwebrx-rtlsdr-soapy openwebrx-plutosdr openwebrx-limesdr openwebrx-soapyremote openwebrx-perseus openwebrx-fcdpp openwebrx-radioberry openwebrx-uhd openwebrx-redpitaya openwebrx-rtltcp openwebrx-full openwebrx"
|
IMAGES="openwebrx-rtlsdr openwebrx-sdrplay openwebrx-hackrf openwebrx-airspy openwebrx-rtlsdr-soapy openwebrx-plutosdr openwebrx-limesdr openwebrx-soapyremote openwebrx-perseus openwebrx-fcdpp openwebrx-radioberry openwebrx-uhd openwebrx-redpitaya openwebrx-rtltcp openwebrx-eb200 openwebrx-full openwebrx"
|
||||||
ALL_ARCHS="x86_64 armv7l aarch64"
|
ALL_ARCHS="x86_64 armv7l aarch64"
|
||||||
TAG=${TAG:-"latest"}
|
TAG=${TAG:-"latest"}
|
||||||
ARCHTAG="$TAG-$ARCH"
|
ARCHTAG="$TAG-$ARCH"
|
||||||
|
12
docker/Dockerfiles/Dockerfile-eb200
Normal file
12
docker/Dockerfiles/Dockerfile-eb200
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
ARG ARCHTAG
|
||||||
|
FROM openwebrx-base:$ARCHTAG
|
||||||
|
|
||||||
|
COPY docker/scripts/install-connectors.sh \
|
||||||
|
docker/scripts/install-dependencies-eb200.sh /
|
||||||
|
|
||||||
|
RUN /install-connectors.sh &&\
|
||||||
|
rm /install-connectors.sh && \
|
||||||
|
/install-dependencies-eb200.sh && \
|
||||||
|
rm /install-dependencies-eb200.sh
|
||||||
|
|
||||||
|
COPY . /opt/openwebrx
|
@ -24,8 +24,8 @@ apt-get update
|
|||||||
apt-get -y install --no-install-recommends $BUILD_PACKAGES
|
apt-get -y install --no-install-recommends $BUILD_PACKAGES
|
||||||
|
|
||||||
git clone https://github.com/jketterl/owrx_connector.git
|
git clone https://github.com/jketterl/owrx_connector.git
|
||||||
# latest develop as of 2020-11-28 (c++ refactoring)
|
# latest develop as of 2020-11-28 (int32 samples; debhelper)
|
||||||
cmakebuild owrx_connector 8c7982f1f91bb38f359126725de64a5875221898
|
cmakebuild owrx_connector 87a2fcc54e221aad71ec0700737ca7f385c388de
|
||||||
|
|
||||||
apt-get -y purge --autoremove $BUILD_PACKAGES
|
apt-get -y purge --autoremove $BUILD_PACKAGES
|
||||||
apt-get clean
|
apt-get clean
|
||||||
|
33
docker/scripts/install-dependencies-eb200.sh
Executable file
33
docker/scripts/install-dependencies-eb200.sh
Executable file
@ -0,0 +1,33 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -euxo pipefail
|
||||||
|
export MAKEFLAGS="-j4"
|
||||||
|
|
||||||
|
function cmakebuild() {
|
||||||
|
cd $1
|
||||||
|
if [[ ! -z "${2:-}" ]]; then
|
||||||
|
git checkout $2
|
||||||
|
fi
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
cmake ..
|
||||||
|
make
|
||||||
|
make install
|
||||||
|
cd ../..
|
||||||
|
rm -rf $1
|
||||||
|
}
|
||||||
|
|
||||||
|
cd /tmp
|
||||||
|
|
||||||
|
STATIC_PACKAGES=""
|
||||||
|
BUILD_PACKAGES="git cmake make gcc g++ pkg-config"
|
||||||
|
|
||||||
|
apt-get update
|
||||||
|
apt-get -y install --no-install-recommends $STATIC_PACKAGES $BUILD_PACKAGES
|
||||||
|
|
||||||
|
git clone https://github.com/jketterl/eb200_connector.git
|
||||||
|
# latest from develop as of 2020-12-01
|
||||||
|
cmakebuild eb200_connector 9c8313770c1072df72d2fdb85307ca206c29c60a
|
||||||
|
|
||||||
|
apt-get -y purge --autoremove $BUILD_PACKAGES
|
||||||
|
apt-get clean
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
Loading…
Reference in New Issue
Block a user