/pysqm-cdf

Container Dockerfile and configuration for PySQM

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

pysqm-cdf

Dockerfile and configuration for the PySQM software to manage a SQM-LE device.

Usage

Install the latest version of Docker Engine for the wanted Linux distribution. Then, build it and run it with docker compose:

docker compose up -d

Upload images

Images are uploaded with the included PHP script, which can be run with

docker exec -it --user pysqm pysqm-cdf-pysqm-1 bash /home/pysqm/upload_sqm_images.sh

Periodically upload with a systemd timer

Modify upload-pysqm-images.service by inserting the correct name of the container. Once done so, install the systemd timer with:

cp upload-pysqm-images.* /etc/systemd/system
systemctl daemon-reload
systemctl --now enable upload-pysqm-images.timer

This will upload the SQM images once every 10 minutes.