Generic tomcat base image that:
-
Separates CATALINA_BASE
-
Prepares for a proxy server that arranges https, and more customized tomcat configuration.
-
contains some custom scripts
-
'aptime': command line utility to show what’s running
-
/usr/local/catalina-base/bin/start.sh custom start up script. Arranging gracefull shutdown.
-
/usr/local/catalina-base/bin/setenv.sh picked up by tomcat
-
/usr/local/catalina-base/bin/jmx.sh included by setenv.sh, but can also be used remotely for easy figuring out what the relevant ports to forward are
-
has eu-central certificates in cacerts
-
It is built and released using github actions, and available via github packages
You can build this locally like so:
docker build -t vpro/tomcat:latest .
Use e.g. with a Dockerfile like this:
ARG NAME=media-server FROM ghcr.io/vpro/tomcat:latest RUN apt-get -y install openssh-client sshpass
which then can be build this way:
~/npo/media/trunk$ docker build —-build-arg PROJECT_VERSION=`mvn help:evaluate -Dexpression=project.version -q -DforceStdout` -t media-server media-server
~/npo/api/trunk$ docker build --build-arg PROJECT_VERSION=`mvn help:evaluate -Dexpression=project.version -q -DforceStdout` -t api-server api-server
version |
tomcat |
java |
remarks |
>= 10.18 |
10.x |
21 |
using jre rather than jdk, which makes the image smaller. |
>= 10.10 |
10.x |
21 |
available as ghcr.io/vpro/tomcat:10.x |
>= 10.7 |
10.x |
21 |
versions for cph5 |
>= 10.6.2 |
10.x |
21 |
chp4 version available as ghcr.io/vpro/tomcat:10.6.x |
10.6.* |
10.x |
21 |
running for chp4, mainly related to chown-settings for certain directories |
10.x |
10.x |
21 |
|
9.x |
>= 9.0.81 |
21 |
|
4.x |
9.x |
21 |
|
3.x |
9.x |
17 |
first one named vpro/tomcat? |
2.x |
9.x |
17 |
|
1.x |
9.x |
8 |