mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-02-03 13:21:49 +02:00
add hubot-arm
This commit is contained in:
parent
02d675bd5f
commit
2517affc26
@ -22,4 +22,4 @@ hubot:
|
||||
|
||||
[1]: https://hubot.github.com/
|
||||
[2]: https://my.slack.com/services/new/hubot
|
||||
[3]: https://github.com/github/hubot/blob/master/docs/scripting.md
|
||||
[3]: https://hubot.github.com/docs/scripting/
|
||||
|
32
hubot/arm/Dockerfile
Normal file
32
hubot/arm/Dockerfile
Normal file
@ -0,0 +1,32 @@
|
||||
#
|
||||
# Dockerfile for hubot-arm
|
||||
#
|
||||
|
||||
FROM easypi/alpine-arm:edge
|
||||
MAINTAINER EasyPi Software Foundation
|
||||
|
||||
ENV HUBOT_NAME=Hubot
|
||||
ENV HUBOT_ADAPTER=slack
|
||||
ENV HUBOT_DESCRIPTION=$HUBOT_NAME-$HUBOT_ADAPTER
|
||||
ENV HUBOT_SLACK_TOKEN=
|
||||
|
||||
RUN set -xe \
|
||||
&& apk add --update ca-certificates nodejs \
|
||||
&& npm install -g yo generator-hubot \
|
||||
&& adduser -s /bin/sh -D hubot
|
||||
|
||||
USER hubot
|
||||
WORKDIR /home/hubot
|
||||
|
||||
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/scripts
|
||||
EXPOSE 8080
|
||||
|
||||
CMD ["./bin/hubot", "--adapter", "slack"]
|
7
hubot/arm/docker-compose.yml
Normal file
7
hubot/arm/docker-compose.yml
Normal file
@ -0,0 +1,7 @@
|
||||
hubot:
|
||||
image: easypi/hubot-arm
|
||||
volumes:
|
||||
- ./data:/home/hubot/scripts
|
||||
environment:
|
||||
- HUBOT_SLACK_TOKEN=xoxb-xxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxx
|
||||
restart: always
|
Loading…
x
Reference in New Issue
Block a user