#RUN sed -i 's/\([[:space:]]*\)\("dependencies": {\)/\1\2\n\1 "url": "",/' hubot/package.json
#RUN sed -i 's/\([[:space:]]*\)\("dependencies": {\)/\1\2\n\1 "querystring": "",/' hubot/package.json
+RUN sed -i 's/\]$/,\n "logger.coffee"]/' hubot/hubot-scripts.json
+#RUN sed -i 's/\([[:space:]]*\)\("dependencies": {\)/\1\2\n\1 "redis": ">=0.7.2",/' hubot/package.json
+RUN sed -i 's/\([[:space:]]*\)\("dependencies": {\)/\1\2\n\1 "moment": ">=1.7.0",/' hubot/package.json
+RUN sed -i 's/\([[:space:]]*\)\("dependencies": {\)/\1\2\n\1 "connect": ">=2.4.5",/' hubot/package.json
+RUN sed -i 's/\([[:space:]]*\)\("dependencies": {\)/\1\2\n\1 "connect_router": "*",/' hubot/package.json
+
RUN cd hubot && npm install
+RUN git clone git://github.com/jenrzzz/hubot-logger.git && cp hubot-logger/logger.coffee hubot/node_modules/hubot-scripts/src/scripts/
# Container networking happens automatically
RUN sed -i 's/need net$/use net/' /etc/init.d/*
-CMD cd hubot && REDISCLOUD_URL="${REDIS_PORT}" exec bin/hubot --name "${HUBOT_IRC_NICK:-hubot}" -a irc
+CMD cd hubot && REDISCLOUD_URL="${REDIS_PORT}" LOG_REDIS_URL="${REDIS_PORT}" PORT=80 exec bin/hubot --name "${HUBOT_IRC_NICK:-hubot}" -a irc
+EXPOSE 80
+EXPOSE 8000
* [github-issue-link][]
* [github-issues][]
* [github-pull-request-notifier][]
+* [github-logger][]
It's also easy to [write your own scripts][scripting].
> -e HUBOT_IRC_UNFLOOD="200" \
> -e HUBOT_GITHUB_USER="github" \
> -e HUBOT_GITHUB_REPO="github/hubot" \
+ > -e LOG_HTTP_USER="logs" \
+ > -e LOG_HTTP_PASS="changme" \
+ > -e LOG_HTTP_PORT=8000" \
> --link redis-0:redis \
+ > -p 80:80 \
+ > -p 8000:8000 \
> wking/hubot
If your IRC server requires a server-wide password, you can set
[github-issue-link]: https://github.com/github/hubot-scripts/blob/master/src/scripts/github-issue-link.coffee
[github-issues]: https://github.com/github/hubot-scripts/blob/master/src/scripts/github-issues.coffee
[github-pull-request-notifier]: https://github.com/github/hubot-scripts/blob/master/src/scripts/github-pull-request-notifier.coffee
+[github-logger]: https://github.com/jenrzzz/hubot-logger
[scripting]: https://github.com/github/hubot/blob/master/docs/scripting.md
[link]: http://docs.docker.io/en/latest/use/port_redirection/#linking-a-container
[redis-brain]: https://github.com/github/hubot-scripts/blob/master/src/scripts/redis-brain.coffee