Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 638 Bytes

README-Docker.md

File metadata and controls

26 lines (18 loc) · 638 Bytes

HVACmon Docker Container

Containerized hvacmon.js program.

  1. Buld the Container. I have included my own build script, but use what works for you.
# Bump version number & build
VERSION=$(cat VERSION | perl -pe 's/^((\d+\.)*)(\d+)(.*)$/$1.($3+1).$4/e' | tee VERSION)
docker build -t jdallen/hvacmon:$VERSION -t jdallen/hvacmon:latest .
  1. Run the Container.
docker run -d --restart=always \
  --name=hvacmon \
  --volume /root/Docker/HVACmon:/app/config \
  jdallen/hvacmon:latest

Make sure your 'config.json' is in your volume directory before starting the container.