add install-geschichte script
add install-geschichte script

FROM ubuntu:latest

# Update the APT cache
RUN apt-get   update

# Install and setup project dependencies
RUN apt-get install -y curl git wget unzip

# prepare for Java download
RUN apt-get install -y software-properties-common
RUN apt-get -y install openjdk-7-jre-headless
RUN apt-get install -y mongodb-clients
ENV JAVA_HOME /usr/lib/jvm/java-7-openjdk-amd64

# fix wget
RUN export HTTP_CLIENT="wget --no-check-certificate -O"

# grab leiningen
RUN wget https://raw.github.com/technomancy/leiningen/stable/bin/lein -O /usr/local/bin/lein
RUN chmod +x /usr/local/bin/lein
ENV LEIN_ROOT yes
RUN lein

# grab geschichte

# add scripts
ADD ./resources /opt

# grab project
RUN git clone https://github.com/kordano/ceres-geschichte.git /opt/ceres-geschichte

# retrieve dependencies
RUN /opt/retrieve-deps

CMD ["/opt/start-ceres"]
