Last active
August 29, 2015 14:08
-
-
Save victort/a9e094a85755af3d3e0e to your computer and use it in GitHub Desktop.
rbot Dockerfile goodness
This file contains hidden or 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
[supervisord] | |
nodaemon=true | |
[program:launch_here.rb] | |
command=/bin/bash -c "cd /Ben/rbot && ./launch_here.rb /Ben/brains" |
This file contains hidden or 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 dock.[REDACTED].net:5000/mprov/template_platform_lite:latest | |
MAINTAINER mprov@[REDACTED] | |
# first things first | |
RUN apt-get update && apt-get -y upgrade | |
# stuff we need. (and stuff we don't need) | |
RUN apt-get install -y --no-install-recommends \ | |
ruby \ | |
rubygems \ | |
ruby-tokyocabinet \ | |
tokyocabinet-bin \ | |
libtokyocabinet9 \ | |
gettext \ | |
git-core \ | |
ispell \ | |
fortune \ | |
fortunes-off \ | |
less && \ | |
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | |
# the breath of life! | |
ADD Ben.conf /etc/supervisor/conf.d/ | |
# now lets git that fool | |
WORKDIR /Ben/ | |
# original tree doesn't work with ruby >1.8 | |
#RUN git clone git://ruby-rbot.org/rbot.git | |
# fork that works with ruby >2.0 | |
RUN git clone https://github.com/4poc/rbot.git | |
# Preserve the braincells! (wait, what about --volumes-from?) | |
VOLUME ["/Ben/brains"] | |
ADD storage/brains/ /Ben/brains/ | |
# aaand, a little pre-supervisord hackery | |
CMD ["-c", "/etc/supervisor/conf.d/Ben.conf"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment