/rainbow

Blinkt! LED's showing rainbow colors

Primary LanguageShellMIT LicenseMIT

rainbow on Raspberry Pi

Build Status This image on DockerHub

A Docker container to show a rainbow with the Blinkt! LED strip.

Start locally

To run the app, type:

node bin/app.js

Start the Docker container

To start the container, type:

docker run --privileged -it stefanscherer/rainbow

Swarm mode

Start service

To start it in a Docker swarm, type:

docker service create --name rainbow --mount type=bind,src=/sys,dst=/sys  sealsystems/rainbow:1.0.0

Scale service

docker service scale rainbow=3

Rolling updates

Rolling updates are configured at start time by setting --update-delay:

docker service create --name rainbow --update-delay 10s --mount type=bind,src=/sys,dst=/sys sealsystems/rainbow:0.2.0
docker service update --image sealsystems/rainbow:1.0.0 rainbow

Global service

To run it on all nodes in a swarm cluster, type:

docker service create --name rainbow --mount type=bind,src=/sys,dst=/sys --mode global sealsystems/rainbow:1.0.0

Debugging

To show debug messages, set the DEBUG environment variable:

DEBUG=app:* node bin/app.js