minddocdev / hubot

Hubot 3 in docker
13 stars 17 forks source link
docker

Hubot docker image

Build Status

Lightweight alpine docker image that runs hubot 3.x+ with Slack.

Version specification

See full tags list.

Each docker image tag points to a specific Hubot 3.x version.

Git Tag NPM Tag Docker Tags
v3.3.2 3.3.2 3.3.2, latest
v3.3.1 3.3.1 3.3.1
v3.3.0 3.3.0 3.3.0
v3.2.0 3.2.0 3.2.0
v3.1.1 3.1.1 3.1.1, 0.1.9
v3.1.0 3.1.0 3.1.0
v3.0.1 3.0.1 3.0.1
v3.0.0 3.0.0 3.0.0

WARNING: The 0.1.9 tag is kept for compatibility reasons (especially a dependency with the Hubot Helm Chart), and does not come with the EXTRA_PACKAGES and external-scripts.json load functionality. It will be removed at some point!

Configuration

The following environment variables should be provided if you want to use Hubot.

Docker Hub

docker pull

You can pull the image from Docker Hub using the docker pull minddocdev/hubot command. We use automated build set up.

docker pull minddocdev/hubot

docker build

You can also build the image yourself. Checkout the repository

git clone https://github.com/minddocdev/hubot
cd hubot
docker build -t minddocdev/hubot .
docker images minddocdev/hubot

docker run

To jump into the container's bash shell

docker run -it minddocdev/hubot /bin/sh

With extra npm packages

Just define the EXTRA_PACKAGES environment variable.

docker run -ti -e EXTRA_PACKAGES=aws-sdk,cron minddocdev/hubot /bin/sh

With extra scripts

Mount external-scripts.json as a volume:

docker run -ti -v ${PWD}/external-scripts.json:/hubot/external-scripts.json minddocdev/hubot /bin/sh

Links