Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
Dockerfile 1.22 KiB
FROM ubuntu:15.10
MAINTAINER Eike Cochu <eike@cochu.com>
ENV ES_VERSION 2.3.1
ENV TOMCAT_MAJOR 8
ENV TOMCAT_VERSION 8.0.33
RUN echo "deb http://ppa.launchpad.net/nginx/stable/ubuntu wily main" >> /etc/apt/sources.list && \
		apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C300EE8C && \
		apt-get update && \
    apt-get install -y --no-install-recommends wget nano openjdk-8-jdk mongodb supervisor nginx && \
    apt-get clean && \
    rm -rf /var/lib/apt/lists/* && \
    mkdir -p /webroot /var/log/supervisor /data/db && \
    wget --no-check-certificate -O- https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/tar/elasticsearch/$ES_VERSION/elasticsearch-$ES_VERSION.tar.gz | tar xvfz - && \
    mv elasticsearch-$ES_VERSION elasticsearch && \
    wget -O- http://apache.openmirror.de/tomcat/tomcat-$TOMCAT_MAJOR/v$TOMCAT_VERSION/bin/apache-tomcat-$TOMCAT_VERSION.tar.gz | tar xvfz - && \
    mv apache-tomcat-$TOMCAT_VERSION tomcat
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
COPY tomcat-users.xml /tomcat/conf/tomcat-users.xml
COPY elasticsearch.yml /elasticsearch/config/elasticsearch.yml
COPY nginx.conf /etc/nginx/nginx.conf
EXPOSE 80 8080 9200 9300 27017
CMD ["/usr/bin/supervisord"]