Created
February 26, 2014 16:50
-
-
Save cap10morgan/9233432 to your computer and use it in GitHub Desktop.
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 democracyworks/clojure-api:latest | |
MAINTAINER Democracy Works, Inc. <dev@turbovote.org> | |
# This will be clobbered by a config volume on the servers, | |
# but allows a dev deployment to spin up with in-memory Datomic. | |
ADD ./docker-dev-resources/ /nixon/resources/ | |
ADD ./target/nixon.jar /nixon/ | |
# install serf (TODO: move this into a parent container) | |
RUN apt-get install -qy unzip | |
ADD https://dl.bintray.com/mitchellh/serf/0.4.1_linux_amd64.zip serf.zip | |
RUN unzip serf.zip | |
RUN mv serf /usr/local/bin/ | |
RUN rm *.zip | |
ADD ./docker/start-nixon.sh / | |
ADD ./docker/start-serf.sh / | |
ADD ./docker/serf-join.sh / | |
RUN chmod 755 /*.sh | |
ADD ./docker/supervisord-nixon.conf /etc/supervisor/conf.d/ | |
ADD ./docker/supervisord-serf.conf /etc/supervisor/conf.d/ | |
EXPOSE 80 | |
WORKDIR /nixon | |
CMD ["/usr/bin/supervisord", "-n"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment