This repository has been archived by the owner on May 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
161 lines (147 loc) · 3.42 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
# Builder
FROM alpine:3.14 AS builder
# Packages
RUN apk add --no-cache build-base git librtlsdr-dev ncurses-dev zlib-dev argp-standalone
# Workdir
WORKDIR /app
# Get readsb
RUN git clone -b sid https://github.com/wiedehopf/readsb.git . && \
git -c advice.detachedHead=false checkout 82713b6655f58c4105e843fb504796afa82738c0 && \
mkdir patches
COPY patches/*.patch patches/
# Apply patches and compile
RUN git apply patches/*.patch && \
make readsb RTLSDR=yes
# Release
FROM alpine:3.14 AS release
LABEL maintainer="Dennis Neufeld <git@dneufeld.net>" \
org.opencontainers.image.authors="Dennis Neufeld <git@dneufeld.net>" \
org.opencontainers.image.url="https://github.com/Dennis14e/docker-flighttracker" \
org.opencontainers.image.source="https://github.com/Dennis14e/docker-flighttracker" \
org.opencontainers.image.licenses="MIT"
# Packages
RUN apk add --no-cache bash rtl-sdr ncurses zlib
# 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="" \
\
UUID="" \
UUID_FILE="/data/uuid.txt" \
\
DEVICE_TYPE="rtlsdr" \
DEVICE="" \
ENABLE_AGC="no" \
PPM="" \
GAIN="" \
FREQ="1090000000" \
PREAMBLE_THRESHOLD="" \
\
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="yes" \
\
STATS="" \
STATS_RANGE="" \
STATS_EVERY="" \
\
HEATMAP_DIR="" \
HEATMAP="" \
\
GNSS="no" \
SNIP="" \
WRITE_PROM="" \
WRITE_STATE="" \
WRITE_GLOBE_HISTORY="" \
WRITE_JSON="" \
WRITE_JSON_EVERY="" \
WRITE_JSON_GLOBE_INDEX="no" \
WRITE_JSON_GZIP="no" \
WRITE_JSON_BINCRAFT_ONLY="" \
WRITE_RECEIVER_ID_JSON="no" \
JSON_LOCATION_ACCURACY="2" \
JSON_TRACE_INTERVAL="" \
JSON_RELIABLE="" \
\
JAERO_TIMEOUT="" \
\
DB_FILE="" \
DB_FILE_LT="" \
\
RECEIVER_FOCUS="" \
CPR_FOCUS="" \
LEG_FOCUS="" \
TRACE_FOCUS="" \
\
NET="yes" \
NET_BUFFER="" \
NET_VERBATIM="" \
NET_HEARTBEAT="" \
NET_CONNECTOR="" \
NET_CONNECTOR_DELAY="" \
NET_ONLY="no" \
NET_BIND_ADDRESS="" \
NET_RECEIVER_ID="" \
NET_INGEST="" \
NET_GARBAGE="" \
NET_API_PORT="" \
NET_JSON_PORT="" \
NET_RO_SIZE="" \
NET_RO_INTERVAL="" \
NET_RO_PORT="" \
NET_RI_PORT="" \
NET_BO_PORT="" \
NET_BI_PORT="" \
NET_SBS_REDUCE="" \
NET_SBS_PORT="" \
NET_SBS_IN_PORT="" \
NET_SBS_JAERO_PORT="" \
NET_SBS_JAERO_IN_PORT="" \
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="" \
\
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" \
\
IFILE="" \
IFORMAT="" \
THROTTLE="no" \
CUSTOM=""
# Entrypoint
ENTRYPOINT [ "/entrypoint.sh" ]
# Command
CMD [ "sh", "-c", "/app/readsb" ]