Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix libairspyhf issue #58

Merged
merged 2 commits into from
Oct 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ echo "TARGETARCH $TARGETARCH" && \
#KEPT_PACKAGES+=(librtlsdr0) && \
KEPT_PACKAGES+=(libairspy0) && \
KEPT_PACKAGES+=(libhackrf0) && \
KEPT_PACKAGES+=(libairspyhf1) && \
KEPT_PACKAGES+=(libzmq5) && \
KEPT_PACKAGES+=(libsoxr0) && \
# KEPT_PACKAGES+=(libcurl4) && \
Expand Down Expand Up @@ -74,12 +73,17 @@ echo "TARGETARCH $TARGETARCH" && \
apt-get remove -y "${TEMP_PACKAGES[@]}"; \
fi && \
apt-get autoremove -y && \
# delete unnecessary qemu binaries to save lots of space
{ find /usr/bin -regex '/usr/bin/qemu-.*-static' | grep -v qemu-arm-static | xargs rm -vf {} || true; } && \
rm -rf /src/* /tmp/* /var/lib/apt/lists/*

COPY rootfs/ /

# add AIS-catcher
COPY --from=build /usr/local/bin/AIS-catcher /usr/local/bin/AIS-catcher
# add AIS-catcher and libairspyhf
RUN \
--mount=type=bind,from=build,source=/,target=/build/ \
set -x && \
cp -v /build/usr/local/bin/AIS-catcher /usr/local/bin/AIS-catcher && \
find /build | grep libairspyhf | cut -d/ --complement -f1,2 | xargs --replace echo cp -v /build/'{}' /'{}' && \
true

# Add Container Version
RUN set -x && \
Expand All @@ -92,5 +96,7 @@ pushd /tmp && \
popd && \
rm -rf /tmp/*

COPY rootfs/ /

# Add healthcheck
HEALTHCHECK --start-period=60s --interval=120s --timeout=100s CMD /healthcheck/healthcheck.sh