Created
November 1, 2022 17:29
-
-
Save aeroevan/39723380ecfec20a78e0313f111707ce to your computer and use it in GitHub Desktop.
fedora-based acarsdec image
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM registry.fedoraproject.org/fedora-minimal:37 as builder | |
RUN curl -k https://copr.fedorainfracloud.org/coprs/rezso/SDR/repo/fedora-37/rezso-SDR-fedora-37.repo > /etc/yum.repos.d/rezso-SDR-fedora-37.repo | |
RUN microdnf update -y && microdnf install -y git gcc libxml2-devel zlib-devel cmake && \ | |
microdnf install -y airspyone_host-devel && \ | |
microdnf clean all | |
RUN git clone https://github.com/szpajder/libacars.git && \ | |
cd libacars && mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release .. && \ | |
make && make install | |
RUN git clone https://github.com/TLeconte/acarsdec.git && \ | |
cd acarsdec && \ | |
sed -i 's/AIRINRATE==5000000/AIRINRATE==10000000/' air.c && \ | |
mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release .. -Dairspy=ON && \ | |
make && make install && strip /usr/local/bin/acarsdec | |
FROM registry.fedoraproject.org/fedora-minimal:37 as runner | |
RUN curl -k https://copr.fedorainfracloud.org/coprs/rezso/SDR/repo/fedora-37/rezso-SDR-fedora-37.repo > /etc/yum.repos.d/rezso-SDR-fedora-37.repo | |
RUN microdnf update -y && microdnf install -y libxml2 zlib psmisc && \ | |
microdnf install -y airspyone_host && \ | |
microdnf clean all | |
COPY --from=builder /usr/local/lib64/libacars* /usr/local/lib64/ | |
RUN echo /usr/local/lib64 > /etc/ld.so.conf.d/local64.conf && ldconfig | |
COPY --from=builder /usr/local/bin/acarsdec /usr/local/bin/acarsdec |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment