mirror of
https://github.com/smittix/intercept.git
synced 2026-04-24 06:40:00 -07:00
Docker containers crash on startup when shell scripts have CRLF line endings (from Windows git checkout with core.autocrlf=true). The start.sh gunicorn entrypoint fails with "$'\r': command not found". Add .gitattributes forcing eol=lf for *.sh and Dockerfile so Docker builds work regardless of the developer's git line ending config. Also normalizes two scripts that were committed with CRLF. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
31 lines
1015 B
Bash
Executable File
31 lines
1015 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Download sample NOAA APT recordings for testing the weather satellite
|
|
# test-decode feature. These are FM-demodulated audio WAV files.
|
|
#
|
|
# Usage:
|
|
# ./download-weather-sat-samples.sh
|
|
# docker exec intercept /app/download-weather-sat-samples.sh
|
|
|
|
set -euo pipefail
|
|
|
|
SAMPLE_DIR="$(dirname "$0")/data/weather_sat/samples"
|
|
mkdir -p "$SAMPLE_DIR"
|
|
|
|
echo "Downloading NOAA APT sample files to $SAMPLE_DIR ..."
|
|
|
|
# Full satellite pass recorded over Argentina (NOAA, 11025 Hz mono WAV)
|
|
# Source: https://github.com/martinber/noaa-apt
|
|
if [ ! -f "$SAMPLE_DIR/noaa_apt_argentina.wav" ]; then
|
|
echo " -> noaa_apt_argentina.wav (18 MB) ..."
|
|
curl -fSL -o "$SAMPLE_DIR/noaa_apt_argentina.wav" \
|
|
"https://noaa-apt.mbernardi.com.ar/examples/argentina.wav"
|
|
else
|
|
echo " -> noaa_apt_argentina.wav (already exists)"
|
|
fi
|
|
|
|
echo ""
|
|
echo "Done. Test decode with:"
|
|
echo " Satellite: NOAA-18"
|
|
echo " File path: data/weather_sat/samples/noaa_apt_argentina.wav"
|
|
echo " Sample rate: 11025 Hz"
|