Skip to content

Commit

Permalink
Merge pull request #89 from wiedehopf/main
Browse files Browse the repository at this point in the history
use wreadsb baseimage which now includes mlat-client
  • Loading branch information
fredclausen authored Jan 12, 2025
2 parents b1e87ed + d1d907e commit d0970cc
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM ghcr.io/sdr-enthusiasts/docker-baseimage:mlatclient AS downloader
RUN --mount=type=bind,source=/source/,target=/source/ \
gcc -static /source/anfeeder.c -o /ANfeeder -lm -Ofast -W

FROM ghcr.io/sdr-enthusiasts/docker-baseimage:base
FROM ghcr.io/sdr-enthusiasts/docker-baseimage:wreadsb

ENV PRIVATE_MLAT="false" \
MLAT_INPUT_TYPE="dump1090"
Expand All @@ -17,31 +17,21 @@ RUN --mount=type=bind,from=downloader,source=/,target=/downloader/ \
KEPT_PACKAGES=() && \
KEPT_PACKAGES+=(procps) && \
KEPT_PACKAGES+=(psmisc) && \
# Needed to run the mlat_client:
KEPT_PACKAGES+=(python3-minimal) && \
KEPT_PACKAGES+=(python3-pkg-resources) && \
# Needed for the new ImAlive:
KEPT_PACKAGES+=(tcpdump) && \
#
# Install all these packages:
apt-get update -q -y && \
apt-get install -o APT::Autoremove::RecommendsImportant=0 -o APT::Autoremove::SuggestsImportant=0 -o Dpkg::Options::="--force-confold" -y --no-install-recommends --no-install-suggests \
${KEPT_PACKAGES[@]} \
${TEMP_PACKAGES[@]} && \
#
# Install mlatclient that was copied in from downloader image
tar zxf /downloader/mlatclient.tgz -C / && \
# test mlat-client
/usr/local/bin/mlat-client --help > /dev/null && \
"${KEPT_PACKAGES[@]}" \
"${TEMP_PACKAGES[@]}" && \
#
# Copy anfeeder:
mkdir -p /home/py/ && \
cp /downloader/ANfeeder /home/py/ANfeeder && \
# remove pycache introduced by testing mlat-client
{ find /usr | grep -E "/__pycache__$" | xargs rm -rf || true; } && \
# Add Container Version
{ [[ "${VERSION_BRANCH:0:1}" == "#" ]] && VERSION_BRANCH="main" || true; } && \
echo "$(TZ=UTC date +%Y%m%d-%H%M%S)_$(curl -ssL https://api.github.com/repos/$VERSION_REPO/commits/$VERSION_BRANCH | awk '{if ($1=="\"sha\":") {print substr($2,2,7); exit}}')_$VERSION_BRANCH" > /.CONTAINER_VERSION && \
echo "$(TZ=UTC date +%Y%m%d-%H%M%S)_$(curl -ssL "https://api.github.com/repos/$VERSION_REPO/commits/$VERSION_BRANCH" | awk '{if ($1=="\"sha\":") {print substr($2,2,7); exit}}')_$VERSION_BRANCH" > /.CONTAINER_VERSION && \
#
# Clean up
# apt-get remove -q -y ${TEMP_PACKAGES[@]} && \
Expand Down

0 comments on commit d0970cc

Please sign in to comment.