1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-24 07:48:38 +00:00

update hubot

This commit is contained in:
kev 2016-04-24 13:30:48 +08:00
parent 1bd64c9f7c
commit be2562a05f
2 changed files with 14 additions and 7 deletions

@ -10,19 +10,24 @@ 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 \
RUN set -xe \
&& npm install -g coffee-script \
generator-hubot \
hubot \
yo \
&& useradd -m -s /bin/bash hubot
USER hubot
WORKDIR /home/hubot
RUN yo hubot --name $HUBOT_NAME \
--description $HUBOT_DESCRIPTION \
--adapter $HUBOT_ADAPTER \
--defaults \
RUN set -xe \
&& 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"]
CMD ["./bin/hubot", "--adapter", "slack"]

@ -1,11 +1,13 @@
hubot
=====
![](https://badge.imagelayers.io/vimagick/hubot:latest.svg)
[hubot][1] is a customizable, life embetterment robot commissioned by github.
## docker-compse.yml
```
```yaml
hubot:
image: vimagick/hubot
environment: