diff --git a/hubot/README.md b/hubot/README.md index 218d817..e33a746 100644 --- a/hubot/README.md +++ b/hubot/README.md @@ -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/ diff --git a/hubot/arm/Dockerfile b/hubot/arm/Dockerfile new file mode 100644 index 0000000..3e0d92a --- /dev/null +++ b/hubot/arm/Dockerfile @@ -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"] diff --git a/hubot/arm/docker-compose.yml b/hubot/arm/docker-compose.yml new file mode 100644 index 0000000..e0cca97 --- /dev/null +++ b/hubot/arm/docker-compose.yml @@ -0,0 +1,7 @@ +hubot: + image: easypi/hubot-arm + volumes: + - ./data:/home/hubot/scripts + environment: + - HUBOT_SLACK_TOKEN=xoxb-xxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxx + restart: always