/
Tomcat container
Tomcat container
Here we are going to focus on the Tomcat server and Java services.
Go to /opt/zw-vmmc-docker/tomcat/conf and create log4j2.json config.json file:
vim/opt/zw-vmmc-docker/tomcat/conf/log4j2.json
And paste the next content:
{ "configuration": { "status": "warn", "name": "connectDWS", "packages": "psi.dws", "ThresholdFilter": { "level": "debug" }, "appenders": { "Console": { "name": "Console", "PatternLayout": { "pattern": "%d{HH:mm:ss.SSS} %-5level %X{request.id} %logger{36} - %msg%n" } } }, "loggers": { "root": { "level": "warn", "AppenderRef": { "ref": "Console" } } } } }
In the same folder create config.json file:
vim /opt/zw-vmmc-docker/tomcat/conf/config.json
Copy the next lines on the file you are creating:
After that, we will need to get the services. To get the resources you need to access to GitHub and download the war files of the next releases:
All these war files have to be moved to /opt/zw-vmmc-docker/tomcat/webapps
The last step in the tomcat folder is to create the dockerfile in /opt/zw-vmmc-docker/tomcat :
With the next content: