Putting hubot inside Docker.
Pre-requisites:
To build a docker image
docker build -t alpine-hubot .
To run the docker image
docker run -e HUBOT_SLACK_TOKEN=$slack_token -d alpine-hubot
To see your docker logs, run docker ps and grab the ID of your bot container then run docker logs $ID.
Assuming your hubot script is called hubot-foo
npm install --save hubot-foohubot-foo to hubot/external-scripts.jsonContent type
Image
Digest
Size
85.1 MB
Last updated
almost 8 years ago
docker pull noqcks/alpine-hubot