Sign inSign up

izdock/tomcat

By izdock

•Updated 6 months ago

Production ready Apache Tomcat Java Servlet Application Server

Image
0

10K+

izdock/tomcat repository overview

⁠Description

Production ready Apache Tomcat Java Servlet Application Server

⁠Supported tags

  • 8.5.X-BUILD, 8.5.X, 8.5, 8, latest
  • 7.0.X-BUILD, 7.0.X, 7.0, 7

Where X is the patch version number, and BUILD is the build number (look into project Tags⁠ page to discover the latest versions)

⁠Dockerfile

⁠Features

  • Small image footprint (based on Linux Debian⁠ image)
  • Using OpenJDK 1.8 for Tomcat 8.x and OpenJDK 1.7 for Tomcat 7.x
  • APR Native Libraries compiled
  • Many customizable variables to use
  • Included MySQL Connector 8.x
  • Included AS400 Connector 10.x
  • GCSFuse support to mount Google Cloud Bucket share
  • Using tini⁠ as init process

⁠What is Tomcat?

The Apache Tomcat® software is an open source implementation of the Java Servlet, JavaServer Pages, Java Expression Language and Java WebSocket technologies. The Java Servlet, JavaServer Pages, Java Expression Language and Java WebSocket specifications are developed under the Java Community Process.

The Apache Tomcat software is developed in an open and participatory environment and released under the Apache License version 2. The Apache Tomcat project is intended to be a collaboration of the best-of-breed developers from around the world. We invite you to participate in this open development project. To learn more about getting involved, click here.

Apache Tomcat software powers numerous large-scale, mission-critical web applications across a diverse range of industries and organizations. Some of these users and their stories are listed on the PoweredBy wiki page.

logo

⁠How to use this image

docker pull izdock/tomcat

docker run -it --rm izdock/tomcat

You can test it by visiting http://container-ip:8080⁠ in a browser

If you need access outside the host, on port 8888: docker run -it --rm -p 8888:8080 izdock/tomcat

You can then go to http://localhost:8888⁠ or http://host-ip:8888⁠ in a browser.

Ovverride Config Directory: docker run -it --rm -p 8080:8080 -e APP_ADMIN_USERNAME=tomcatadmin -e APP_ADMIN_PASSWORD=VeryStrong4ndSecurePWD -e APP_HOME=/data -v /tmp/tomcat:/data izdock/tomcat

⁠Environment variables

⁠generic app configuration variables

ENV APP_NAME              "tomcat"
ENV APP_DESCRIPTION       "Tomcat Web Application Server"
ENV APP_HOME              "/opt/tomcat"
ENV APP_CONF              ""
ENV APP_DATA              ""
ENV APP_LOGS              ""
ENV APP_TEMP              ""
ENV APP_WORK              ""
ENV APP_HTTP_PORT         8080
ENV APP_AJP_PORT          8009
ENV APP_SHUTDOWN_PORT     8005
ENV APP_REMOTE_MANAGEMENT 1
ENV APP_UID               91
ENV APP_GID               91
ENV APP_USR               "tomcat"
ENV APP_GRP               "tomcat"
ENV APP_ADMIN_USERNAME    "manager"
ENV APP_ADMIN_PASSWORD    ""

⁠default app configuration variables

ENV APP_RELINK            1
ENV APP_RECONFIG          1
ENV APP_CONF_DEFAULT      "${APP_HOME}/conf"
ENV APP_DATA_DEFAULT      "${APP_HOME}/webapps"
ENV APP_LOGS_DEFAULT      "${APP_HOME}/logs"
ENV APP_TEMP_DEFAULT      "${APP_HOME}/temp"
ENV APP_WORK_DEFAULT      "${APP_HOME}/work"
ENV APP_SHARED_DEFAULT    "${APP_HOME}/shared"

⁠specific app configuration variables

ENV JAVA_OPTS     "-Djava.awt.headless=true -XX:+UseG1GC -Dfile.encoding=UTF-8 -server -Xms128m -Xmx512m"
ENV CATALINA_HOME "${APP_HOME}"
ENV PATH          "${PATH}:/opt/jdk/bin:${CATALINA_HOME}/bin"
ENV UMASK         "0002"
⁠Configuration

To customize the configuration just COPY your custom configuration in /opt/tomcat/conf.

FROM izdock/tomcat
COPY ./conf /opt/tomcat/conf

⁠Build commands

docker build --rm=true -f Dockerfile --pull=true --build-arg IMAGE_FROM=tomcat:8.5.51-jdk8-openjdk-slim --build-arg APP_VER_MAJOR=8 --build-arg APP_VER_MINOR=5 --build-arg APP_VER_PATCH=51

⁠Quick reference

⁠License

View Apache license information⁠ and for the software contained in this image.

As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).

As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.

Tag summary

Content type

Image

Digest

sha256:0b95909bf…

Size

348.6 MB

Last updated

6 months ago

docker pull izdock/tomcat