Dockerfile to build two standalone Tomcat servers on CentOS 7
Please adapt cmd scripts to shell scripts to run on Linux.
- download jdk-8u191-linux-x64.tar.gz and copy it to binaries/jdk
- apache-tomcat-8.5.34.tar.gz and copy it to binaries/tomcat
Different versions of jdk or tomcat can be used. Just modify the build.cmd accordingly.
To build the image
build.cmd <name>
Create in current directory the two following directories:
- mount/user1/tomcat/logs
- mount/user1/tomcat/logs
run.cmd <name>
Tomcat servers will run on port 8080 and 18080.
Run the following to connect to the container:
exec.cmd <name>