Template of Hubot Docker container on Raspberry Pi
Install Hypriot Docker Image for Raspberry Pi on your Raspberry Pi.
See Getting started with Docker on your Raspberry Pi to setup your docker environment.
$ git clone https://github.com/knjcode/rpi-hubot-docker-template
$ cd rpi-hubot-docker-template
$ docker build -t rpi-hubot .
This Docker Image derived from hypriot/rpi-node.
$ docker run -i -t rpi-hubot
> [email protected] shell /data
> bin/hubot -a shell
[Tue Aug 11 2015 15:02:40 GMT+0000 (UTC)] INFO hubot-redis-brain: Using default redis on localhost:6379
hubot> hubot ping
hubot> PONG
First, set HUBOT_SLACK_TOKEN
environment variable.
$ export HUBOT_SLACK_TOKEN="your-hubot-slack-token"
Then run hubot on slack
$ docker run -d --env HUBOT_SLACK_TOKEN rpi-hubot slack