mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-04-13 11:40:39 +02:00
update hubot
This commit is contained in:
parent
1bd64c9f7c
commit
be2562a05f
@ -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
|
||||
=====
|
||||
|
||||

|
||||
|
||||
[hubot][1] is a customizable, life embetterment robot commissioned by github.
|
||||
|
||||
## docker-compse.yml
|
||||
|
||||
```
|
||||
```yaml
|
||||
hubot:
|
||||
image: vimagick/hubot
|
||||
environment:
|
||||
|
Loading…
x
Reference in New Issue
Block a user