Code Monkey home page Code Monkey logo

devops_project2-tomcat-'s Introduction

Title: Deployment of war file on tomcat https://www.youtube.com/watch?v=nMLQgXf8tZ0&list=PLxzKY3wu0_FJdJd3IKdiM4Om1hGo2Hsdt&index=13 Step1 launch ec2 instance --open port 22 and 8080 Install tomcat on above ec2 instance

Step2 Install jenkins on seprate ec2

Step3 ##Creation of jenkins job: Source Code Management: Repository: https://github.com/Vijaygawate/Devops_project2-tomcat-.git Branches to build : */master Build: Root POM: pom.xml Goals and options : clean install package

Step4 ##Adding Deployment Steps in this port we are going to install 'deploy to container' plugin. this is need to deploy on tomcat server which we are using.

##Install maven plugin without restart Manage Jenkins > Jenkins Plugins > available > deploy to container

##To deploy our build artifacts on tomcat server our Jenkins server need access. For this we should setup credentials. This option is available in Jenkins home page setup credentials credentials > jenkins > Global credentials > add credentials Username : Vijay22 Password : XXXXXXX id : Tomcat_user Description: Tomcat user to deploy on tomcat server

##Modify the same job which created in part-01 and add deployment steps. Post Steps Deploy war/ear to container WAR/EAR files : **/*.war Containers : Tomcat 10.x Credentials: Tomcat_user (which created in above step) Tomcat URL : http://<PUBLIC_IP>:<PORT_NO>

Step5 ##Continuous Integration & Continuous Deployment (CI/CD) Now job is running fine but to make this as Continuous Integration and Continuous Deployment To do that go back and modify job as below.

Build Triggers Poll SCM schedule */2 * * * * Save the job and modify the code in GitHub. Then you could see your job get trigger a build without any manual intervention.

devops_project2-tomcat-'s People

Contributors

valaxytech avatar vijaygawate avatar

Forkers

vj0555

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.