Sign inSign up

minddocdev/hubot

By minddocdev

Updated about 7 years ago

Lightweight alpine hubot image with slack adapter

Image
2

50K+

minddocdev/hubot repository overview

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.

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

Tag summary

Content type

Image

Digest

Size

53.9 MB

Last updated

about 7 years ago

docker pull minddocdev/hubot