/srv-tomcat

srv-tomcat - simple tomcat server container dev environment to create webapps

Primary LanguageShell

Tomcat Container

Purpose

Provide a flexible way to create a tomcat container

Usage

Clone the repo

cd $HOME
git clone https://github.com/wagnermarques/srv-tomcat.git

Starts the server

cd $HOME/srv-tomcat/bin
./docker-compose-up.sh 

Create a webapp with maven

cd $HOME/srv-tomcat/apps
mvn archetype:genereate #choose a web archetype or

this repo brings a hellow world web app inside apps dir. You can deploy this web app and skip the creation of the project.

build webapp as a war file

cd $HOME/srv-tomcat/apps/appweb
mvn package

deplploy any war file $HOME/srv-tomcat/apps/appweb dir in tomcat

cd $HOME/srv-tomcat/bin
./deploy-all.sh

Acess http://localhost:8080/appweb