Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 641 Bytes

README-Docker.md

File metadata and controls

24 lines (18 loc) · 641 Bytes

Christmas-Lights-Controller Docker Container

Containerized xmaslights.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/xmaslights:$VERSION -t jdallen/xmaslights:latest .
  1. Run the Container.
docker run -d --restart=always \
  --name=xmaslights \
  --volume /root/Docker/XmasLights:/mqtt/config \
  --volume /etc/locatime:/etc/localtime:ro |
  jdallen/xmaslights:latest