-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
67 lines (64 loc) · 1.85 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
FROM ghcr.io/sdr-enthusiasts/docker-baseimage:base
ENV AR_LISTEN_UDP_ACARS=5550 \
AR_LISTEN_TCP_ACARS=5550 \
AR_LISTEN_UDP_VDLM2=5555 \
AR_LISTEN_TCP_VDLM2=5555 \
AR_LISTEN_UDP_HFDL=5556 \
AR_LISTEN_TCP_HFDL=5556 \
AR_LISTEN_UDP_IMSL=5557 \
AR_LISTEN_TCP_IMSL=5557 \
AR_LISTEN_UDP_IRDM=5558 \
AR_LISTEN_TCP_IRDM=5558 \
AR_LISTEN_ZMQ_ACARS=35550 \
AR_LISTEN_ZMQ_VDLM2=35555 \
AR_LISTEN_ZMQ_HFDL=35556 \
AR_LISTEN_ZMQ_IMSL=35557 \
AR_LISTEN_ZMQ_IRDM=35558 \
AR_SERVE_TCP_ACARS=15550 \
AR_SERVE_TCP_VDLM2=15555 \
AR_SERVE_TCP_HFDL=15556 \
AR_SERVE_TCP_IMSL=15557 \
AR_SERVE_TCP_IRDM=15558 \
AR_SERVE_ZMQ_ACARS=45550 \
AR_SERVE_ZMQ_VDLM2=45555 \
AR_SERVE_ZMQ_HFDL=45556 \
AR_SERVE_ZMQ_IMSL=45557 \
AR_SERVE_ZMQ_IRDM=45558 \
AR_ADD_PROXY_ID=true \
AR_DISABLE_ACARS=false \
AR_DISABLE_VDLM2=false \
AR_DISABLE_HFDL=false \
AR_DISABLE_IMSL=false \
AR_DISABLE_IRDM=false
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
COPY ./rootfs /
COPY ./bin/acars_router.armv7/acars_router /opt/acars_router.armv7
COPY ./bin/acars_router.arm64/acars_router /opt/acars_router.arm64
COPY ./bin/acars_router.amd64/acars_router /opt/acars_router.amd64
# hadolint ignore=DL3008,DL3003,SC1091
RUN set -x && \
KEPT_PACKAGES=() && \
TEMP_PACKAGES=() && \
KEPT_PACKAGES+=(libzmq5) && \
apt-get update && \
apt-get install -y --no-install-recommends \
"${KEPT_PACKAGES[@]}" \
"${TEMP_PACKAGES[@]}"\
&& \
# ensure binaries are executable
chmod -v a+x \
/opt/acars_router.armv7 \
/opt/acars_router.arm64 \
/opt/acars_router.amd64 \
&& \
# remove foreign architecture binaries
/rename_current_arch_binary.sh && \
rm -fv \
/opt/acars_router.* \
&& \
# clean up
apt-get remove -y "${TEMP_PACKAGES[@]}" && \
apt-get autoremove -y && \
rm -rf /src/* /tmp/* /var/lib/apt/lists/* && \
# test
/opt/acars_router --version