https://github.com/imranity/hubot-hipchat-docker
A docker container to start hubot hipchat with redis using supervisord
https://github.com/imranity/hubot-hipchat-docker
hipchat hubot hubot-docker hubot-hipchat-docker
Last synced: 5 months ago
JSON representation
A docker container to start hubot hipchat with redis using supervisord
- Host: GitHub
- URL: https://github.com/imranity/hubot-hipchat-docker
- Owner: imranity
- Created: 2017-02-04T20:02:34.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-06T05:43:54.000Z (over 9 years ago)
- Last Synced: 2025-06-24T17:04:16.662Z (about 1 year ago)
- Topics: hipchat, hubot, hubot-docker, hubot-hipchat-docker
- Homepage:
- Size: 7.81 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Hubot-hipchat-docker image
Hubot-hipchat-docker is a docker image to start hubot hipchat with redis as backend.
Only requirement is to pass the hipchat credentials as environment variables during runtime.
The container starts with two services when run:
* redis-server
* hubot (with hipchat as adapter)
## Building the image
The image is built with following command:
docker build -t hubot-hipchat .
## Running the container
An easy way to run the container is to first create a file that credentials for your hipchat bot account and later pass it as env during container
run.
1. First create a file lets say `creds.list` that looks like following:
```bash
cat < creds.list
HUBOT_HIPCHAT_TOKEN="AUTH TOKEN OF BOT USERS HIPCHAT ACCOUNT"
HUBOT_HIPCHAT_JID="JABBER ID OF BOT USER"
HUBOT_HIPCHAT_PASSWORD="ACTUAL PASSWORD"
HUBOT_HIPCHAT_ROOMS="ROOM URL TO CONNECT WHEN HUBOT STARTS"
EOF
```
The details of these credentials can be found here [official-hubot-hipchat-plugin](https://github.com/hipchat/hubot-hipchat).
2. After setting the credentials in creds.list, start the container:
```bash
docker run -d --env-file creds.list --name hubot-hipchat hubot-hipchat
```
3. Confirm services are running:
`docker logs hubot-hipchat`
```
2017-02-04 05:28:51,010 INFO success: hubot entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2017-02-04 05:28:51,010 INFO success: redis entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
```