-
-
Notifications
You must be signed in to change notification settings - Fork 150
Docker
Note: radiosonde_auto_rx is not available through Docker Hub at this time, and must instead be built locally.
The RTL DVB kernel modules must be blacklisted on the Docker host. RTL-SDR itself is not required on the Docker host.
docker pull debian:buster-slim
docker build --rm --no-cache -t radiosonde_auto_rx https://github.com/projecthorus/radiosonde_auto_rx.git
After updating the container image, to use the new image, any existing radiosonde_auto_rx containers need to be stopped and removed, and a new container run.
docker run -d --name radiosonde_auto_rx --restart="unless-stopped" --device=/dev/bus/usb -v ~/radiosonde_auto_rx/station.cfg:/opt/auto_rx/station.cfg:ro -v ~/radiosonde_auto_rx/log:/opt/auto_rx/log -p 5000:5000 radiosonde_auto_rx
Alternatively, to launch the container directly in to an interactive shell rather than a daemonised auto_rx.py:
docker run --rm -it --name radiosonde_auto_rx --device=/dev/bus/usb -v ~/radiosonde_auto_rx/station.cfg:/opt/auto_rx/station.cfg:ro -v ~/radiosonde_auto_rx/log:/opt/auto_rx/log -p 5000:5000 radiosonde_auto_rx /bin/bash
Substitute ~/radiosonde_auto_rx/station.cfg and ~/radiosonde_auto_rx/log in the above commands with the relevant local paths, ensuring that station.cfg has been created as per Configuration-Settings
--restart="unless-stopped" will result in the container automatically restarting after a failure or host system reboot.
Once running, you can access the Web UI through http://<docker-host>:5000.
Restarting the container is useful for picking up changes to station.cfg.
docker restart radiosonde_auto_rx
docker stop radiosonde_auto_rx
docker rm radiosonde_auto_rx
docker logs radiosonde_auto_rx
docker logs --tail 50 radiosonde_auto_rx
docker logs --follow radiosonde_auto_rx
docker exec -it radiosonde_auto_rx /bin/bash