Public Repository

Last pushed: 2 years ago
Short Description
Tomcat8 configured for oneHippo
Full Description

The Dockerfile:
FROM ubuntu:15.04
MAINTAINER Jesus Redon jesusrrm@gmail.com
RUN apt-get update && apt-get install
RUN apt-get install -y wget --force-yes

RUN wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u65-b17/jdk-8u65-linux-x64.tar.gz
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y wget
RUN wget http://www.eu.apache.org/dist/tomcat/tomcat-8/v8.0.30/bin/apache-tomcat-8.0.30.tar.gz -O apache-tomcat-8.0.30.tar.gz
RUN tar -zxvf apache-tomcat-8.0.30.tar.gz
RUN tar -zxvf jdk-8u65-linux-x64.tar.gz
ENV CATALINA_HOME /apache-tomcat-8.0.30
ENV JRE_HOME /jdk1.8.0_65/jre
ENV JAVA_HOME /jdk1.8.0_65
ENV PATH /jdk1.8.0_65/bin/:$PATH

RUN wget http://search.maven.org/remotecontent?filepath=org/apache/geronimo/specs/geronimo-jta_1.1_spec/1.1/geronimo-jta_1.1_spec-1.1.jar -O geronimo-jta_1.1_spec-1.1.jar
RUN wget http://search.maven.org/remotecontent?filepath=javax/mail/mail/1.4.7/mail-1.4.7.jar -O mail-1.4.7.jar
RUN wget http://search.maven.org/remotecontent?filepath=javax/jcr/jcr/2.0/jcr-2.0.jar -O jcr-2.0.jar
RUN wget http://search.maven.org/remotecontent?filepath=mysql/mysql-connector-java/5.1.36/mysql-connector-java-5.1.36.jar -O mysql-connector-java-5.1.36.jar

RUN mkdir $CATALINA_HOME/common
RUN mkdir $CATALINA_HOME/common/lib
RUN mv *.jar $CATALINA_HOME/common/lib/

ADD catalina.policy $CATALINA_HOME/conf/
ADD catalina.properties $CATALINA_HOME/conf/
ADD context.xml $CATALINA_HOME/conf/

#ADD server.xml $CATALINA_HOME/conf/

ADD shared.tar $CATALINA_HOME/common/lib

ADD essentials.war /apache-tomcat-8.0.30/webapps
ADD site.war /apache-tomcat-8.0.30/webapps
ADD cms.war /apache-tomcat-8.0.30/webapps

CMD ["/bin/bash"]

EXPOSE 8080

WORKDIR $CATALINA_HOME/bin/
CMD ["/apache-tomcat-8.0.30/bin/catalina.sh","run"]


To build the docker:
docker build -t jesusrrm/tomcat8onehippo .


To run it:
docker run -i -t jesusrrm/tomcat8onehippo


To use the bash:
docker run -i -t jesusrrm/tomcat8onehippo /bin/bash


To push:
docker login
docker push jesusrrm/tomcat8onehippo

Good luck!!!

Docker Pull Command
Owner
jesusrrm