Created
July 22, 2015 17:45
-
-
Save andresriancho/b0c29cd44340120465a1 to your computer and use it in GitHub Desktop.
WAVSEP Dockerfile
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:14.04 | |
# Update Ubuntu | |
RUN apt-get update | |
RUN apt-get -y upgrade | |
# Add oracle java 7 repository | |
RUN apt-get -y install software-properties-common | |
RUN add-apt-repository ppa:webupd8team/java | |
RUN apt-get -y update | |
# Accept the Oracle Java license | |
RUN echo "oracle-java7-installer shared/accepted-oracle-license-v1-1 boolean true" | debconf-set-selections | |
# Install Oracle Java | |
RUN apt-get -y install oracle-java7-installer | |
# Install tomcat | |
RUN apt-get -y install tomcat7 | |
RUN echo "JAVA_HOME=/usr/lib/jvm/java-7-oracle" >> /etc/default/tomcat7 | |
# Download WAVSEP | |
WORKDIR /var/lib/tomcat7/webapps | |
RUN wget https://github.com/sectooladdict/wavsep/archive/wavsep-v1.5-war.zip | |
RUN mv wavsep-v1.5-war.zip wavsep.war | |
# We connect to this application on port 8080 | |
EXPOSE 8080 | |
# Start Tomcat, after starting Tomcat the container will stop. So use a 'trick' to keep it running. | |
CMD service tomcat7 start && tail -f /var/lib/tomcat7/logs/catalina.out |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment