Skip to content

minddocdev/hubot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

  • HUBOT_SLACK_TOKEN - Required Slack hubot integration API token. See hubot-slack documentation.
  • HUBOT_NAME - Optional bot name. Defaults to robot.
  • HUBOT_OWNER - Optional bot owner name. Defaults to MindDoc <[email protected]>.
  • HUBOT_DESCRIPTION - Optional bot description. Defaults to A robot may not harm humanity, or, by inaction, allow humanity to come to harm.
  • EXTRA_PACKAGES - Optional comma-separated list of NPM packages, required by your scripts.

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