-
Notifications
You must be signed in to change notification settings - Fork 10
/
Dockerfile
38 lines (31 loc) · 1003 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
FROM dockerfile/nodejs
# Install base packages
RUN npm install -g [email protected] coffee-script redis
# Create new hubot and setup for irc.
RUN cd /root && \
hubot --create myhubot && \
cd myhubot && \
npm install hubot-irc --save && \
npm install nodepie underscore xml2js cron emailjs sugar --save && \
npm install
# Set environment variables
ENV TZ Asia/Seoul
ENV HUBOT_IRC_NICK hubot
ENV HUBOT_IRC_PORT 6667
ENV HUBOT_IRC_ROOMS #general,#random,#sandbox,#d7
ENV HUBOT_IRC_SERVER castisdev.irc.slack.com
ENV HUBOT_IRC_UNFLOOD 500
ENV HUBOT_IRC_USESSL 1
ENV HUBOT_JENKINS_URL http://110.35.173.15/jenkins
ENV HUBOT_JIRA_URL http://110.35.173.15/jira
ENV REDISTOGO_URL redis://172.17.42.1:6379/hubot
# HTTP Listener port 9009
ENV PORT 9009
EXPOSE 9009
# Add custum scripts
ADD hubot-scripts.json /root/myhubot/hubot-scripts.json
ADD scripts/*.coffee /root/myhubot/scripts/
# Run hubot("-a irc")
WORKDIR /root/myhubot
ENTRYPOINT ["/root/myhubot/bin/hubot", "-a", "irc"]
CMD ["-n", "hubot"]