You've already forked dockerfiles
mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-07-17 01:22:25 +02:00
add hubot
This commit is contained in:
@ -11,7 +11,6 @@ dockerfiles
|
|||||||
- [ ] freegeoip
|
- [ ] freegeoip
|
||||||
- [ ] gitolite
|
- [ ] gitolite
|
||||||
- [ ] hashcat
|
- [ ] hashcat
|
||||||
- [ ] hubot
|
|
||||||
- [ ] iptables
|
- [ ] iptables
|
||||||
- [ ] irc
|
- [ ] irc
|
||||||
- [ ] tshark
|
- [ ] tshark
|
||||||
@ -36,6 +35,7 @@ dockerfiles
|
|||||||
- [x] fteproxy-arm :+1:
|
- [x] fteproxy-arm :+1:
|
||||||
- [x] grafana
|
- [x] grafana
|
||||||
- [x] h2o
|
- [x] h2o
|
||||||
|
- [x] hubot
|
||||||
- [x] hydra
|
- [x] hydra
|
||||||
- [x] influxdb
|
- [x] influxdb
|
||||||
- [x] joomla
|
- [x] joomla
|
||||||
|
28
hubot/Dockerfile
Normal file
28
hubot/Dockerfile
Normal 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
19
hubot/README.md
Normal 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
5
hubot/docker-compose.yml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
hubot:
|
||||||
|
image: vimagick/hubot
|
||||||
|
environment:
|
||||||
|
- HUBOT_SLACK_TOKEN=xoxb-xxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxx
|
||||||
|
restart: always
|
Reference in New Issue
Block a user