emonhub docker image
1.5K
Relevant Dockerfile
to run emonhub in container :
sudo docker run --rm -it alexjunk/emonhub /opt/openenergymonitor/emonhub/src/./emonhub.py
download a emonhub.conf file on the host
wget https://raw.githubusercontent.com/openenergymonitor/emonhub/master/conf/emonhub.conf
then run emonhub :
ttyAMA0bios2-themis-1 running emoncms standalone imagesudo docker run --rm -it --device=/dev/ttyAMA0 -v $(pwd)/emonhub.conf:/opt/openenergymonitor/emonhub/conf/emonhub.conf --network=container:bios2-themis-1 alexjunk/emonhub /opt/openenergymonitor/emonhub/src/./emonhub.py
ls -al /dev/tty*
This gives the major number of ttyAMA0 :
crw-rw---- 1 root dialout 204, 64 Apr 7 22:17 /dev/ttyAMA0
You can now run the emonhub container :
sudo docker run --rm -it -v /dev:/dev --device-cgroup-rule='c 204:* rmw' -v /opt/OBM/BIOS2/conf/emonhub.conf:/opt/openenergymonitor/emonhub/conf/emonhub.conf --network=container:bios2-themis-1 alexjunk/emonhub /opt/openenergymonitor/emonhub/src/./emonhub.py
Content type
Image
Digest
sha256:5f1ffe374…
Size
66.4 MB
Last updated
8 months ago
docker pull alexjunk/emonhub