Skip to content

Instantly share code, notes, and snippets.

@barata0
Created November 6, 2013 16:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save barata0/7339657 to your computer and use it in GitHub Desktop.
Save barata0/7339657 to your computer and use it in GitHub Desktop.
lxc-docker ubuntu tomcat7 apt-get install with oracle-java7-jdk
#
# Apache Tomcat7 installation
#
FROM danieltribeiro/oracle-java7-jdk
MAINTAINER Daniel Ribeiro <danieltribeiro@gmail.com>
RUN apt-get update
RUN apt-get -y install tomcat7
RUN echo "JAVA_HOME=\"/usr/lib/jvm/java-7-oracle\"" >> /etc/default/tomcat7
ENV CATALINA_BASE /var/lib/tomcat7
ENV CATALINA_HOME /usr/share/tomcat7
EXPOSE 8080
VOLUME ["/etc/tomcat7/", "/var/log/tomcat7/"]
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