Skip to content

dkumarkaran/Java_Maven_counterapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CICD with TeamCity and CodeDeploy

Use the path as shown bellow to access the Application.

http://publicip:8080/CounterWebApp/

We can Manually Build and Deploy the application using the below given steps

To Manually Build and Deploy the application We require Maven and Tomcat9

Maven Installation steps:

sudo apt install openjdk-11-jdk
wget https://mirrors.estointernet.in/apache/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz
tar -xvf apache-maven-3.6.3-bin.tar.gz
sudo mv apache-maven-3.6.3 /opt/
M2_HOME='/opt/apache-maven-3.6.3'
PATH="$M2_HOME/bin:$PATH"
export PATH

Tomcat9 Installation steps:

sudo apt update
sudo apt install openjdk-11-jdk -y
sudo apt install tomcat9 tomcat9-admin -y
sudo ufw allow from any to any port 8080 proto tcp
sudo systemctl status tomcat9
Note: open port 8080 on the vm.

To Build and Deploy application follow the below steps

Build Steps:

mvn clean install compile package

To Deploy the application

Note: Since we have not added the tomcat plugin in the pom.xml we have to manually place the war file in the /var/lib/tomcat9/webapp directory.
Copy the Artifact war file which is created in the target folder to Tomcat webapp directory
sudo cp target/CounterWebApp.war /var/lib/tomcat9/webapp/
sudo systemctl restart tomcat9

For Docker or Kubernetes Implememtation of the Application Goto: https://github.com/dkumarkaran/Counter_Application

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •