Created
August 28, 2014 08:46
-
-
Save anarcher/576aafddda1f47be88a4 to your computer and use it in GitHub Desktop.
hubot dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM dockerfile/nodejs | |
# Install Redis. | |
RUN \ | |
cd /tmp && \ | |
wget http://download.redis.io/redis-stable.tar.gz && \ | |
tar xvzf redis-stable.tar.gz && \ | |
cd redis-stable && \ | |
make && \ | |
make install && \ | |
cp -f src/redis-sentinel /usr/local/bin && \ | |
mkdir -p /etc/redis && \ | |
cp -f *.conf /etc/redis && \ | |
rm -rf /tmp/redis-stable* && \ | |
sed -i 's/^\(bind .*\)$/# \1/' /etc/redis/redis.conf && \ | |
sed -i 's/^\(daemonize .*\)$/# \1/' /etc/redis/redis.conf && \ | |
sed -i 's/^\(dir .*\)$/# \1\ndir \/data/' /etc/redis/redis.conf && \ | |
sed -i 's/^\(logfile .*\)$/# \1/' /etc/redis/redis.conf | |
RUN pip install honcho | |
WORKDIR /root | |
RUN npm install -g hubot coffee-script | |
ADD . /root/ | |
RUN npm install | |
VOLUME /data | |
#ENV HUBOT_IRC_SERVER irc.server | |
ENV HUBOT_IRC_PORT 6666 | |
ENV HUBOT_LOGS_FOLDER /data/logs | |
ENV HUBOT_LOGS_PORT 8086 | |
ENV PORT 8085 | |
ENV PYTHONIOENCODING utf8 | |
ENV TZ Asia/Seoul | |
EXPOSE 8086 | |
EXPOSE 8085 | |
CMD ["honcho","start"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment