-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
198 lines (183 loc) · 4.12 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
# Builder
FROM alpine:3.21.0 AS builder
ARG UPSTREAM_REMOTE
ARG UPSTREAM_BRANCH
ARG UPSTREAM_COMMIT
# Packages
RUN apk add --no-cache build-base git ncurses-dev zstd-dev zlib-dev \
librtlsdr-dev bladerf-dev hackrf-dev soapy-sdr-dev
# Workdir
WORKDIR /app
# Get readsb
RUN git clone -b ${UPSTREAM_BRANCH} ${UPSTREAM_REMOTE} . && \
git -c advice.detachedHead=false checkout ${UPSTREAM_COMMIT} && \
mkdir patches
# Apply patches
COPY patches/* patches/
RUN if [ $(ls patches/*.patch > /dev/null) ]; then git apply patches/*.patch; fi
# Compile
RUN make readsb RTLSDR=yes BLADERF=yes HACKRF=yes SOAPYSDR=yes
# Release
FROM alpine:3.21.0 AS release
# Packages
RUN apk add --no-cache bash ncurses-libs zstd-libs zlib \
rtl-sdr bladerf-libs hackrf-libs soapy-sdr-libs
# Workdir
WORKDIR /app
COPY --from=builder /app/readsb /app/readsb
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh /app/readsb && \
mkdir /data
# Environment
ENV LAT="" \
LON="" \
MAX_RANGE="360" \
METRIC="no" \
INTERACTIVE="no" \
NO_INTERACTIVE="yes" \
INTERACTIVE_TTL="" \
ENABLE_BIASTEE="no" \
QUIET="yes" \
DEBUG="" \
DEVEL="" \
\
UUID="" \
UUID_FILE="/data/uuid.txt" \
\
DEVICE_TYPE="rtlsdr" \
DEVICE="" \
GAIN="-10" \
FREQ="1090000000" \
PREAMBLE_THRESHOLD="" \
SDR_BUFFER_SIZE="" \
\
FIX="yes" \
NO_FIX="no" \
FILTER_DF="" \
DCFILTER="no" \
AGGRESSIVE="no" \
\
SHOW_ONLY="" \
RAW="" \
ONLYADDR="no" \
\
MODEAC="yes" \
MODEAC_AUTO="no" \
\
MLAT="yes" \
FORWARD_MLAT_BEAST="yes" \
FORWARD_MLAT_SBS="yes" \
\
STATS="" \
STATS_RANGE="" \
STATS_EVERY="" \
\
HEATMAP_DIR="" \
HEATMAP="" \
\
GNSS="no" \
SNIP="" \
WRITE_PROM="" \
WRITE_STATE="" \
WRITE_STATE_EVERY="" \
WRITE_STATE_ONLY_ON_EXIT="no" \
WRITE_GLOBE_HISTORY="" \
WRITE_JSON="" \
WRITE_JSON_EVERY="" \
WRITE_JSON_GLOBE_INDEX="no" \
WRITE_JSON_GZIP="no" \
WRITE_JSON_BINCRAFT_ONLY="" \
WRITE_BINCRAFT_OLD="no" \
WRITE_RECEIVER_ID_JSON="no" \
JSON_LOCATION_ACCURACY="2" \
JSON_TRACE_INTERVAL="" \
JSON_RELIABLE="" \
AUTO_EXIT="" \
RANGE_OUTLINE_HOURS="" \
\
JAERO_TIMEOUT="" \
\
DB_FILE="" \
DB_FILE_LT="" \
\
RECEIVER_FOCUS="" \
CPR_FOCUS="" \
LEG_FOCUS="" \
TRACE_FOCUS="" \
\
NET="yes" \
NET_BUFFER="" \
NET_VERBATIM="" \
NET_HEARTBEAT="60" \
NET_CONNECTOR="" \
NET_CONNECTOR_DELAY="" \
NET_ONLY="no" \
NET_BIND_ADDRESS="" \
NET_RECEIVER_ID="" \
NET_INGEST="" \
NET_GARBAGE="" \
NET_API_PORT="" \
API_SHUTDOWN_DELAY="" \
NET_JSON_PORT="" \
NET_JSON_PORT_INTERVAL="" \
NET_JSON_PORT_INCLUDE_NOPOSITION="no" \
NET_RO_SIZE="" \
NET_RO_INTERVAL="0.05" \
NET_RO_INTERVAL_BEAST_REDUCE="" \
NET_BO_PORT="" \
NET_BI_PORT="" \
NET_RO_PORT="" \
NET_RI_PORT="" \
NET_UAT_REPLAY_PORT="" \
NET_UAT_IN_PORT="" \
NET_SBS_REDUCE="" \
NET_SBS_PORT="" \
NET_SBS_IN_PORT="" \
NET_SBS_JAERO_PORT="" \
NET_SBS_JAERO_IN_PORT="" \
NET_ASTERIX_OUT_PORT="" \
NET_ASTERIX_IN_PORT="" \
NET_ASTERIX_REDUCE="" \
NET_VRS_INTERVAL="" \
NET_VRS_PORT="" \
NET_BEAST_REDUCE_INTERVAL="" \
NET_BEAST_REDUCE_FILTER_DIST="" \
NET_BEAST_REDUCE_FILTER_ALL="" \
NET_BEAST_REDUCE_OUT_PORT="" \
TAR1090_USE_API="no" \
\
ENABLE_AGC="no" \
PPM="0" \
\
BLADERF_FPGA="" \
BLADERF_DECIMATION="" \
BLADERF_BANDWIDTH="" \
\
HACKRF_ENABLE_AMPGAIN="" \
HACKRF_VGAGAIN="" \
\
DUMP_BEAST="" \
BEAST_SERIAL="" \
BEAST_DF1117_ON="no" \
BEAST_MLAT_OFF="no" \
BEAST_CRC_OFF="no" \
BEAST_DF045_ON="no" \
BEAST_FEC_OFF="no" \
BEAST_MODEAC="no" \
BEAST_BAUDRATE="" \
\
IFILE="" \
IFORMAT="" \
THROTTLE="no" \
\
SOAPY_DEVICE="" \
SOAPY_ANTENNA="" \
SOAPY_BANDWIDTH="" \
SOAPY_ENABLE_AGC="no" \
SOAPY_GAIN_ELEMENT="" \
\
CUSTOM=""
# Entrypoint
ENTRYPOINT [ "/entrypoint.sh" ]
# Command
CMD [ "sh", "-c", "/app/readsb" ]