1
0
Fork 0
mirror of https://github.com/sdr-enthusiasts/docker-adsb-ultrafeeder.git synced 2024-10-16 05:50:44 +00:00

adsbx stats lower priority (#148)

This commit is contained in:
Fred Clausen 2024-10-04 07:49:01 -06:00 committed by GitHub
commit 1c47b76be2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 2 deletions

View file

@ -45,8 +45,7 @@ RUN \
{ [[ "${VERSION_BRANCH:0:1}" == "#" ]] && VERSION_BRANCH="main" || true; } && \ { [[ "${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: # Clean up:
apt-get remove -q -y "${TEMP_PACKAGES[@]}" && \ apt-get autoremove -q -o APT::Autoremove::RecommendsImportant=0 -o APT::Autoremove::SuggestsImportant=0 -y "${TEMP_PACKAGES[@]}" && \
apt-get autoremove -q -o APT::Autoremove::RecommendsImportant=0 -o APT::Autoremove::SuggestsImportant=0 -y && \
apt-get clean -q -y && \ apt-get clean -q -y && \
# test mlat-client # test mlat-client
/usr/bin/mlat-client --help > /dev/null && \ /usr/bin/mlat-client --help > /dev/null && \

View file

@ -24,6 +24,9 @@ source /scripts/interpret_ultrafeeder_config
s6wrap=(s6wrap --quiet --timestamps --prepend="$SCRIPT_NAME") s6wrap=(s6wrap --quiet --timestamps --prepend="$SCRIPT_NAME")
# run with slightly lower priority
renice 5 $$ || true
"${s6wrap[@]}" --args echo "Started as an s6 service" "${s6wrap[@]}" --args echo "Started as an s6 service"
MLAT_CMD="/usr/bin/mlat-client" MLAT_CMD="/usr/bin/mlat-client"

View file

@ -7,6 +7,9 @@ REMOTE_URL="https://adsbexchange.com/api/receive/"
REMOTE_HOST=$( echo $REMOTE_URL | awk -F'/' '{print $3}' ) REMOTE_HOST=$( echo $REMOTE_URL | awk -F'/' '{print $3}' )
# run with lowest priority
renice 20 $$ || true
# Set this to '0' if you don't want this script to ever try to self-cache DNS. # Set this to '0' if you don't want this script to ever try to self-cache DNS.
# Default is on, but script will automatically not cache if resolver is localhost, or if curl version is too old. # Default is on, but script will automatically not cache if resolver is localhost, or if curl version is too old.
DNS_CACHE=1 DNS_CACHE=1