1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-24 08:52:31 +02:00

add hubot

This commit is contained in:
kev 2015-09-26 16:52:43 +08:00
parent 20058e20cc
commit 0c7e9ec536
4 changed files with 53 additions and 1 deletions

View File

@ -11,7 +11,6 @@ dockerfiles
- [ ] freegeoip
- [ ] gitolite
- [ ] hashcat
- [ ] hubot
- [ ] iptables
- [ ] irc
- [ ] tshark
@ -36,6 +35,7 @@ dockerfiles
- [x] fteproxy-arm :+1:
- [x] grafana
- [x] h2o
- [x] hubot
- [x] hydra
- [x] influxdb
- [x] joomla

28
hubot/Dockerfile Normal file
View File

@ -0,0 +1,28 @@
#
# Dockerfile for hubot
#
FROM node
MAINTAINER kev <noreply@datageek.info>
ENV HUBOT_NAME=hubot
ENV HUBOT_ADAPTER=slack
ENV HUBOT_DESCRIPTION=$HUBOT_NAME-$HUBOT_ADAPTER
ENV HUBOT_SLACK_TOKEN=
RUN npm install -g hubot coffee-script yo generator-hubot \
&& useradd -m -s /bin/bash hubot
USER hubot
WORKDIR /home/hubot
RUN yo hubot --name $HUBOT_NAME \
--description $HUBOT_DESCRIPTION \
--adapter $HUBOT_ADAPTER \
--defaults \
&& npm install hubot-$HUBOT_ADAPTER --save \
&& sed -i -r 's/^\s+#//' scripts/example.coffee
VOLUME /home/hobot
CMD ["bin/hubot", "--adapter", "slack"]

19
hubot/README.md Normal file
View File

@ -0,0 +1,19 @@
hubot
=====
[hubot][1] is a customizable, life embetterment robot commissioned by github.
## docker-compse.yml
```
hubot:
image: vimagick/hubot
environment:
- HUBOT_SLACK_TOKEN=xoxb-xxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxx
restart: always
```
> Goto [here][2] to generate `HUBOT_SLACK_TOKEN`.
[1]: https://hubot.github.com/
[2]: https://my.slack.com/services/new/hubot

5
hubot/docker-compose.yml Normal file
View File

@ -0,0 +1,5 @@
hubot:
image: vimagick/hubot
environment:
- HUBOT_SLACK_TOKEN=xoxb-xxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxx
restart: always