Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Understanding Devops

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Build and Deploy on Tomcat Server. Setup CI/CD with GitHub, Jenkins, Maven & Tomcat.

• Setup
Jenkins • Setup & Configure Maven , Git. • Setup Tomcat Server. • Integrating GitHub,Maven ,Tomcat
Server with Jenkins • Create a CI and CD Job. • Test the Deployment. 1. Deploy Artifacts on a Tomcat
Server Fig. Deploy Artifacts on a Tomcat Server Build and Deploy on Container. Setup CI/CD with
GitHub, Jenkins, Maven & Docker. • Setting up the docker Environment. • Write DockerFile. • Create
an Image and Container on Docker Host. • Integrate Docker Host with Jenkins. • Create CI/CD Job on
Jenkins to build and deploy on container. 2. Deploy Artifacts on a Container Fig. Deploy Artifacts on a
Docker Container Build and Deploy on Container. CI/CD with GitHub, Jenkins, Maven, Ansible &
Docker. • Setting up the Ansible Server • Integrate Docker Host with Ansible. • Ansible playbook to
create Image. • Ansible playbook to create Container. • Integrate Ansible with Jenkins. • CI/CD Job to
build code on Ansible & Deploy it on docker container. 3. Deploy Artifacts on a Container Fig. Deploy
Artifacts on a Ansible Container. Build and Deploy on Container. CI/CD with GitHub, Jenkins, Maven,
Ansible & Kubernetes. • Setting up the Kubernetes (EKS). • Write pod service and deployment
manifest file. • Integrate Kubernetes with Ansible. • Ansible playbook to create deployment &
service. • CI/CD Job to build code on Ansible & Deploy it on Kubernetes. 4. Deploy Artifacts on a
Kubernetes. Fig. Deploy Artifacts on Kubernetes. What is CI and CD • Continuous Integration. •
Continuous Delivery. • Continuous Deployment. How Does CI and CD Works on AWS? Fig. CI and CD
Works on AWS. How Does CI and CD Working on Devops? Fig. CI and CD Works on Devops. Note: For
Continuous Deployment we need multiple environments (With Manual Interventions). Resources to
Setup CI and CD pipeline. • Free Tier AWS account. • GitHub account (for source code and
documentation). • MobaXterm – enhanced terminal for windows with X11 Server tabbed SSH clients,
network tool and much more. • Git – local version control system. CI and CD pipeline using Git,
Jenkins & Maven. Fig. Build Code Jenkins on Maven Setup Jenkins Server • Setup a Linux EC2
instance • Install Java • Install Jenkins • Start Jenkins • Access Web UI on port 8080 Setup a Linux EC2
instance Fig.EC2 Instance for Jenkins Server Installation of Jenkins First Step: Connecting MobaXterm
May 01 19:02:02 ip-172-31-31-201.ec2.internal jenkins[6549]:
************************************************************* May 01 19:02:02 ip-172-
31-31-201.ec2.internal jenkins[6549]:
************************************************************* May 01 19:02:31 ip-172-
31-31-201.ec2.internal jenkins[6549]: 2022-05-01 19:02:31.729+0000 [id=30] INFO
jenkins.InitReactorRunner$1#onAttained...lization May 01 19:02:31 ip-172-31-31-201.ec2.internal
jenkins[6549]: 2022-05-01 19:02:31.755+0000 [id=23] INFO hudson.lifecycle.Lifecycle#onReady: Je...
running May 01 19:02:31 ip-172-31-31-201.ec2.internal systemd[1]: Started Jenkins Continuous
Integration Server. May 01 19:02:31 ip-172-31-31-201.ec2.internal jenkins[6549]: 2022-05-01
19:02:31.868+0000 [id=45] INFO h.m.DownloadService$Downloadable#load:...nstaller May 01
19:02:31 ip-172-31-31-201.ec2.internal jenkins[6549]: 2022-05-01 19:02:31.869+0000 [id=45] INFO
hudson.util.Retrier#start: Performed t...tempt #1 May 01 19:02:31 ip-172-31-31-201.ec2.internal
jenkins[6549]: 2022-05-01 19:02:31.878+0000 [id=45] INFO
hudson.model.AsyncPeriodicWork#lambda$...0,935 ms Hint: Some lines were ellipsized, use -l to
show in full. Access Web UI on port 8080: Fig. Access Web UI on port 8080 Run First Jenkins Job: Fig.
Run First Jenkins Job Integrate Git with Jenkins • Install Git on Jenkins Instances • Install GitHub plug
in on Jenkins GUI • Configure Git on Jenkins GUI Install Git on Jenkins Instances: yum install git
[root@Jenkins_Server ~]# git --version git version 2.32.0 Install GitHub plug in on Jenkins GUI Fig.
Plugin Integrates git with Jenkins. Fig. Success Plugin Integrates git with Jenkins. Configure Git on
Jenkins GUI Fig. Configure Git on Jenkins GUI Run Jenkins Job to pull code from GitHub Fig Run
Jenkins Job to pull code from GitHub [root@Jenkins_Server ~]# cd
/var/lib/jenkins/workspace/PullGitHubCode [root@Jenkins_Server PullGitHubCode]# ll total 24 -rw-
r--r-- 1 jenkins jenkins 130 May 1 20:20 Dockerfile -rw-r--r-- 1 jenkins jenkins 5970 May 1 20:20
pom.xml -rw-r--r-- 1 jenkins jenkins 271 May 1 20:20 README.md -rw-r--r-- 1 jenkins jenkins 479 May
1 20:20 regapp-deploy.yml -rw-r--r-- 1 jenkins jenkins 195 May 1 20:20 regapp-service.yml drwxr-xr-x
3 jenkins jenkins 32 May 1 20:20 server drwxr-xr-x 3 jenkins jenkins 32 May 1 20:20 webapp
[root@Jenkins_Server PullGitHubCode]# . Integrate Maven with Jenkins • Setup Maven on Jenkins
Server • Setup Environment Variables ▪ JAVA_HOME, M2, M2_HOME • Install Maven Plugin •
Configure Maven and Java Setup Maven on Jenkins Server [root@Jenkins_Server opt]# wget
https://dlcdn.apache.org/maven/maven3/3.8.5/binaries/apache-maven-3.8.5-bin.tar.gz
[root@Jenkins_Server opt]# ll [root@Jenkins_Server opt]# mv apache-maven-3.8.5 maven
[root@Jenkins_Server opt]# cd maven [root@Jenkins_Server ~]# cd /opt [root@Jenkins_Server opt]#
ll [root@Jenkins_Server maven]# cd bin [root@Jenkins_Server bin]# ll [root@Jenkins_Server bin]#
./mvn -v Apache Maven 3.8.5 (3599d3414f046de2324203b78ddcf9b5e4388aa0) Maven home:
/opt/maven Java version: 11.0.13, vendor: Red Hat, Inc., runtime: /usr/lib/jvm/java-11- openjdk-
11.0.13.0.8-1.amzn2.0.3.x86_6

You might also like