A demo application written in Java that runs on Tomcat
gradle docker
gradle dockerPush
docker run -p 8080:8080 -it nirmata/demo-java-tomcat:v1
Customize the image color and service name using the following environment variables:
- SERVICE_NAME
- SERVICE_COLOR
for example:
docker run -p 8080:8080 -it -e SERVICE_NAME="foo" -e SERVICE_COLOR="blue" nirmata/demo-java-tomcat:v1
docker run -p 8080:8080 -it -e SERVICE_NAME="foo" -e SERVICE_COLOR="green" nirmata/demo-java-tomcat:v1
App | Address |
---|---|
Tomcat | http://<host>:<port> |
Java service | http://:/service/ |