From 7e20a750137aa0fcf4f97b50f7e5ea2fdb797d5e Mon Sep 17 00:00:00 2001 From: Mark Jessop Date: Sat, 12 Mar 2022 15:56:54 +1030 Subject: [PATCH] Add docker start script --- start_docker.sh | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 start_docker.sh diff --git a/start_docker.sh b/start_docker.sh new file mode 100644 index 0000000..c00dbe1 --- /dev/null +++ b/start_docker.sh @@ -0,0 +1,48 @@ +# /usr/bin/env bash +# +# Helper script to start up the Wenet Docker image. +# +# This script is intended to be downloaded using wget or otherwise, +# and modified prior to use. +# + +# Your station callsign, which will be shown on https://ssdv.habhub.org +# when receiving packets. +# Make sure there is no space between the = and your callsign. +MYCALL=CHANGEME + +# Receive Frequency (Hz) +# The normal receive frequency used by Project Horus is 443.5 MHz +RXFREQ=443500000 + +# Receiver Gain. Set this to 0 to use automatic gain control, otherwise if running a +# preamplifier, you may want to experiment with lower gain settings to optimize +# your receiver setup. +# You can find what gain range is valid for your RTLSDR by running: rtl_test +# A very rough figure that may work if you are running a preamp with ~20 dB gain is +# 32.8 - your performance may vary! +GAIN=0 + +# Bias Tee Enable (1) or Disable (0) +# Enable this is you are intending on powering a preamplifer via coax from your RTLSDR +BIAS=0 + + +# Stop and remove any existing wenet instances +echo "Stopping/Removing any existing Wenet instances..." +docker stop wenet || true && docker rm wenet || true + +# Start the container! +echo "Starting new Wenet instance..." +docker run -d \ + --name wenet \ + -e MYCALL=$MYCALL \ + -e RXFREQ=$RXFREQ \ + -e GAIN=$GAIN \ + -e BIAS=$BIAS \ + -v ~/wenet/rx_images/:/opt/wenet/rx_images/ \ + --device /dev/bus/usb \ + -p 5003:5003 \ + ghcr.io/projecthorus/wenet:latest + +echo "Navigate to http://localhost:5003/ in your web browser to see the Wenet interface!"