Last active
January 4, 2016 07:49
-
-
Save nmcclain/8591285 to your computer and use it in GitHub Desktop.
Dockerfile for flapjack. 1. save as "Dockerfile" 2. run "docker build" 3. run "docker run -i -d -p 3080:3080 IMAGEID" 4. profit
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 ubuntu:12.04 | |
RUN apt-get install -y software-properties-common | |
RUN echo "deb http://packages.flapjack.io/deb precise main" >> /etc/apt/sources.list | |
RUN apt-get update | |
RUN apt-get install -y --force-yes flapjack | |
RUN apt-get install -y wget curl vim git | |
# customized flapjack config files | |
ADD assets/flapjack_config.yaml /etc/flapjack/flapjack_config.yaml | |
ADD assets/redis-flapjack.conf /opt/flapjack/embedded/etc/redis/redis-flapjack.conf | |
# a very simple startup script - should be using systemd or supervisord | |
RUN echo "#!/bin/bash" > /root/start | |
RUN echo "/etc/init.d/redis-flapjack start" >> /root/start | |
RUN echo "/etc/init.d/flapjack start" >> /root/start | |
RUN echo "/bin/bash" >> /root/start | |
RUN chmod 700 /root/start | |
# hacky patchy - for testing - remove me | |
RUN wget -q https://github.com/flpjck/flapjack/blob/18557af834463c3fa37e9f3760c235e62e949aca/lib/flapjack/data/event.rb -O https://raw.github.com/flpjck/flapjack/18557af834463c3fa37e9f3760c235e62e949aca/lib/flapjack/data/event.rb | |
CMD ["/root/start"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment