Public | Automated Build

Last pushed: 6 months ago
Short Description
Apache Tomcat 7/8 using Oracle Java 7/8
Full Description

Centos Docker image with Tomcat 7/8,

with different versions of java 7/8

Versions

Tomcat 8 Version: 8.5.3
Tomcat 7 Version: 7.0.72
JRE8/JDK8 Version: 1.8.0_121-b13
JRE7/JDK7 Version: 1.7.0_80-b15

Tags

Tomcat version Java version tags Size
Tomcat 7 Oracle Java 7 JRE latest / tomcat7 / jre7tomcat7
Tomcat 7 Oracle Java 7 JDK jdk7tomcat7
Tomcat 7 Oracle Java 8 JRE jre8tomcat7
Tomcat 7 Oracle Java 8 JDK jdk8tomcat7
Tomcat 8 Oracle Java 7 JRE jre7tomcat8
Tomcat 8 Oracle Java 7 JDK jdk7tomcat8
Tomcat 8 Oracle Java 8 JRE tomcat8 / jre8tomcat8
Tomcat 8 Oracle Java 8 JDK jdk8tomcat8

Usage

Some indications:

  • Tomcat installation directory is /opt/tomcat ($TOMCAT_HOME/$CATALINA_HOME). Executable scripts are found in directory $TOMCAT_HOME/bin and the application base (appBase) directory is $TOMCAT_HOME/webapps.
  • The path of file catalina.out is managed by the variable $CATALINA_OUT, and its value by default is /dev/null (disabled).
  • Apache logs are written into directory /logs/.

There are two ways to use this image:

  1. Use it as base image for other images. For example:

    FROM chenmins/tomcat-centos:tomcat7
    
  2. Use the image directly, and copy the .war files directly into the appBase directory. For example:

    docker run -d --name tomcat7 -p 8080:8080 chenmins/tomcat-centos /opt/tomcat/bin/catalina.sh run
    docker cp ./ROOT.war tomcat7:/opt/tomcat/webapps/
    curl http://ip:8080/
    
Docker Pull Command
Owner
chenmins
Source Repository