Created
November 1, 2022 17:30
-
-
Save aeroevan/3480652c6bd5e3fc85d41107a016bb4e to your computer and use it in GitHub Desktop.
fedora-based dumpvdl2 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 microdnf update -y && microdnf install -y git gcc libxml2-devel rtl-sdr-devel zlib-devel cmake protobuf-c-devel czmq-devel cppzmq-devel glib2-devel sqlite-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/szpajder/dumpvdl2.git && \ | |
cd dumpvdl2 && mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release .. -Drtl=ON && \ | |
make && make install && strip /usr/local/bin/dumpvdl2 | |
FROM registry.fedoraproject.org/fedora-minimal:37 as runner | |
RUN microdnf update -y && microdnf install -y rtl-sdr libxml2 zlib protobuf-c czmq glib2 sqlite-libs && 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/dumpvdl2 /usr/local/bin/dumpvdl2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment