Ubuntu 14.04.2 LTS / Apache tomcat 8.0.29 (Oracle Java 1.8.0_66)
2.3K
FROM keks/java-base
MAINTAINER Jan M. <[email protected]>
# karaf from website site
ENV TOMCAT_MAJOR_VERSION=8
ENV TOMCAT_VERSION=8.0.29
RUN wget http://www.eu.apache.org/dist/tomcat/tomcat-${TOMCAT_MAJOR_VERSION}/v${TOMCAT_VERSION}/bin/apache-tomcat-${TOMCAT_VERSION}.tar.gz && \
mkdir /opt/tomcat && \
tar --strip-components=1 -C /opt/tomcat -xzf apache-tomcat-${TOMCAT_VERSION}.tar.gz && \
rm apache-tomcat-${TOMCAT_VERSION}.tar.gz
# default ports AJP and HTTP
EXPOSE 8009 8080
ENTRYPOINT ["/opt/tomcat/bin/catalina.sh", "run"]
VOLUME ["/webapps", "/cert"]
RUN adduser --system --group --gecos "tomcat user" tomcat && \
chown -R tomcat:tomcat /opt/tomcat
ENV CATALINA_HOME=/opt/tomcat
#ENV CATALINA_BASE=
#ENV CATALINA_OPTS=
#ENV CATALINA_PID=
USER tomcat
After install from the tomcat project site a user is added (with a low userid like it would be generated when installing a service - makes mounting folders easier since the user and group will be identical across all my docker images and i only have to chown messagebus:fuse), the /webapps folder is generated and the entrypoint is set to catalina.sh run. The install is made to /opt/tomcat and $JAVA_HOME is already set in the base image.
The /webapps folder is meant for your web archives (war files) and /cert is meant as a convenient way to store my certificates to use as login credentials to databases)
there's also older versions tagged 8.0.22, 8.0.23, 8.0.24, 8.0.26 & 8.0.29
Content type
Image
Digest
sha256:b025df6df…
Size
335.2 MB
Last updated
almost 11 years ago
docker pull keks/tomcat