-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
83 lines (78 loc) · 2.67 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
FROM ghcr.io/sdr-enthusiasts/docker-baseimage:acars-decoder-soapy
ENV DEVICE_INDEX="" \
QUIET_LOGS="TRUE" \
FREQUENCIES="" \
FEED_ID="" \
PPM="0"\
GAIN_TYPE="" \
GAIN="" \
SERIAL="" \
SOAPYSDR="" \
SERVER_PORT="5556" \
MIN_MESSAGE_THRESHOLD="5" \
ENABLE_SYSTABLE="TRUE" \
ENABLE_BASESTATION="TRUE" \
BASESTATION_VERBOSE="TRUE" \
STATSD_SERVER=""
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
# hadolint ignore=DL3008,SC2086,SC2039
RUN set -x && \
TEMP_PACKAGES=() && \
KEPT_PACKAGES=() && \
# Required for building multiple packages.
TEMP_PACKAGES+=(build-essential) && \
TEMP_PACKAGES+=(pkg-config) && \
TEMP_PACKAGES+=(cmake) && \
TEMP_PACKAGES+=(git) && \
TEMP_PACKAGES+=(automake) && \
TEMP_PACKAGES+=(autoconf) && \
TEMP_PACKAGES+=(wget) && \
# packages for dumpvdl2
TEMP_PACKAGES+=(libglib2.0-dev) && \
KEPT_PACKAGES+=(libglib2.0-0) && \
TEMP_PACKAGES+=(libzmq3-dev) && \
KEPT_PACKAGES+=(libzmq5) && \
TEMP_PACKAGES+=(libconfig++-dev) && \
KEPT_PACKAGES+=(libconfig++9v5) && \
KEPT_PACKAGES+=(libfftw3-bin) && \
TEMP_PACKAGES+=(libfftw3-dev) && \
TEMP_PACKAGES+=(libliquid-dev) && \
KEPT_PACKAGES+=(libliquid1) && \
TEMP_PACKAGES+=(libusb-1.0-0-dev) && \
KEPT_PACKAGES+=(libusb-1.0-0) && \
TEMP_PACKAGES+=(libsqlite3-dev) && \
KEPT_PACKAGES+=(libsqlite3-0) && \
TEMP_PACKAGES+=(unzip) && \
# install packages
apt-get update && \
apt-get install -y --no-install-recommends \
"${KEPT_PACKAGES[@]}" \
"${TEMP_PACKAGES[@]}"\
&& \
# Install statsd-c-client library
git clone https://github.com/romanbsd/statsd-c-client.git /src/statsd-client && \
pushd /src/statsd-client && \
make -j "$(nproc)" && \
make install && \
ldconfig && \
popd && \
# Install dumphfdl
git clone https://github.com/szpajder/dumphfdl.git /src/dumphfdl && \
pushd /src/dumphfdl && \
mkdir -p /src/dumphfdl/build && \
pushd /src/dumphfdl/build && \
cmake ../ -DCMAKE_BUILD_TYPE=Release && \
make && \
make install && \
# grab the basestation database
curl --location --output /tmp/BaseStation.zip https://github.com/rikgale/VRSData/raw/main/BaseStation.zip && \
mkdir -p /usr/local/share/basestation/ && \
unzip /tmp/BaseStation.zip -d /usr/local/share/basestation/ && \
# grab the /etc/systable.conf file from the dumphfdl source tree
mkdir -p /opt/dumphfdl-data && \
cp /src/dumphfdl/etc/systable.conf /opt/dumphfdl-data && \
# Clean up
apt-get remove -y "${TEMP_PACKAGES[@]}" && \
apt-get autoremove -y && \
rm -rf /src/* /tmp/* /var/lib/apt/lists/*
COPY rootfs/ /