Skip to content

This is a docker image with Tomcat 8 that ships a hello world java application. Useful for demo and labs.

Notifications You must be signed in to change notification settings

eduardolmedeiros/tomcat-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Apache Tomcat 10 with OpenJDK 11

This is a docker image with Tomcat 8 that ships a hello world java application. Useful for demo and labs.

Building stage

A description of the variables for the building stage

| Variables       | Description    |
|----------------------------------|
| TOMCAT_BASE_DIR | base dir       |
| TOMCAT_RELEASE  | release        |
| TOMCAT_VERSION  | version        |
| TOMCAT_USER     | user           |
| DEPLOY_URL      | deploy src url |
| DEPLOY_FILE     | deploy file    |

Building a docker image

git clone https://github.com/eduardolmedeiros/tomcat-docker.git
docker build -t emedeiros/tomcat:<tag> .

Building a docker image using variables

docker build --build-arg "TOMCAT_RELEASE=10.0.14" -t emedeiros/tomcat:<tag> .

1. Starting Apache Tomcat

1.1 via docker cli

docker run -it -p 8080:8080 emedeiros/tomcat

1.2 via docker-compose

docker-compose up -d

2. Deploy default

About

This is a docker image with Tomcat 8 that ships a hello world java application. Useful for demo and labs.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published