A Docker container to show a rainbow with the Blinkt! LED strip.
To run the app, type:
node bin/app.js
To start the container, type:
docker run --privileged -it stefanscherer/rainbow
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
docker service scale rainbow=3
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
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
To show debug messages, set the DEBUG
environment variable:
DEBUG=app:* node bin/app.js