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

Compare commits

..

4 commits

Author SHA1 Message Date
Fred Clausen
1c47b76be2
adsbx stats lower priority (#148) 2024-10-04 07:49:01 -06:00
Matthias Wirth
33472380bf dockerfile: one less apt call 2024-10-04 13:41:28 +02:00
Matthias Wirth
70ceb365bf lower priority for mlat-client
for mlat sync only the decoder talking to the SDR is important
2024-10-04 13:07:05 +02:00
Matthias Wirth
2d9e8fe1e1 adsbx stats lower priority 2024-10-04 12:29:17 +02:00
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