Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
2e499c8
Update jenkinsfile
Kadarlasanthosh Oct 3, 2024
616f06a
Update index.jsp
Kadarlasanthosh Oct 3, 2024
4c86038
Update index.jsp
Kadarlasanthosh Oct 11, 2024
7cceff3
Update pom.xml
Kadarlasanthosh Oct 13, 2024
fc4024f
Update pom.xml
Kadarlasanthosh Oct 13, 2024
ca20288
Update pom.xml
Kadarlasanthosh Oct 13, 2024
da0b845
Update pom.xml
Kadarlasanthosh Oct 13, 2024
e5c4f33
Update README.md
Kadarlasanthosh Oct 22, 2024
acf5925
Update index.jsp
Kadarlasanthosh Oct 22, 2024
dcb0645
Delete target directory
Kadarlasanthosh Oct 22, 2024
bfd84aa
Update jenkinsfile
Kadarlasanthosh Oct 22, 2024
7e57826
Update jenkinsfile
Kadarlasanthosh Oct 22, 2024
96ce0c4
Update index.jsp
Kadarlasanthosh Oct 22, 2024
880b839
Update index.jsp
Kadarlasanthosh Oct 22, 2024
639784f
Update index.jsp
Kadarlasanthosh Oct 22, 2024
0489c5e
Merge branch 'main' into main
Kadarlasanthosh Oct 26, 2024
98e45d8
Update pom.xml
Kadarlasanthosh Oct 26, 2024
80da670
Update pom.xml
Kadarlasanthosh Oct 26, 2024
cbc5ac5
Update pom.xml
Kadarlasanthosh Oct 26, 2024
dc3174b
Update pom.xml
Kadarlasanthosh Oct 26, 2024
dcbd19d
Create deploymentac_1.yaml
Kadarlasanthosh Nov 12, 2024
809c720
Create Service.yaml
Kadarlasanthosh Nov 12, 2024
5f7f1df
Update Service.yaml
Kadarlasanthosh Nov 14, 2024
529c21d
Create service.yml
Kadarlasanthosh Nov 14, 2024
5ca54d0
Create deployment.yml
Kadarlasanthosh Nov 14, 2024
3eb2452
Update deployment.yml
Kadarlasanthosh Nov 14, 2024
c5f4216
Update deployment.yml
Kadarlasanthosh Nov 14, 2024
1c79e7a
Update deployment.yml
Kadarlasanthosh Nov 14, 2024
2fecc4f
Update deployment image to version 8
Kadarlasanthosh Nov 18, 2024
28780d8
Update deployment image to version 9
Kadarlasanthosh Nov 18, 2024
f27937a
Update deployment image to version 10
Kadarlasanthosh Nov 18, 2024
487e4b4
Update deployment image to version 11
Kadarlasanthosh Nov 18, 2024
30bfffc
Update index.jsp
Kadarlasanthosh Nov 18, 2024
312f441
Update deployment image to version 12
Kadarlasanthosh Nov 18, 2024
122b003
Update index.jsp
Kadarlasanthosh Nov 18, 2024
4e2cb6d
Update index.jsp
Kadarlasanthosh Nov 18, 2024
800ea75
Update deployment image to version 13
Kadarlasanthosh Nov 18, 2024
a4fcbc8
Update deployment image to version 14
Kadarlasanthosh Nov 18, 2024
01696f7
Update deployment image to version 15
Kadarlasanthosh Nov 18, 2024
233154c
Update deployment image to version 16
Kadarlasanthosh Nov 18, 2024
949ded6
Update deployment image to version 17
Kadarlasanthosh Nov 18, 2024
8722c2d
Update deployment image to version 18
Kadarlasanthosh Nov 18, 2024
04f362f
Update deployment image to version 19
Kadarlasanthosh Nov 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# mindcircuit13 - SAMPLE APP

Installed tomcat, jenkins, Git in a single container and serving an application
18 changes: 18 additions & 0 deletions Service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
apiVersion: v1
kind: Service
metadata:
name: fb-svc
labels:
app: facebook

spec:
type: LoadBalancer
ports:
- port: 80
targetPort: 8080
protocol: TCP

selector:
app: facebook

26 changes: 26 additions & 0 deletions deploymentac_1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: fbdeploy
labels:
app: facebook
env: sbox
spec:
selector:
matchLabels:
app: facebook
replicas: 3
template:
metadata:
name: fbpod
labels:
app: facebook
env: sbox
version: AC_V1
spec:
containers:
- name: fbcont
image: devopshubg333/batch14:mcappimag
ports:
- containerPort: 8080
24 changes: 24 additions & 0 deletions deploymentfiles/deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: fbdeploy
labels:
app: facebook
spec:
selector:
matchLabels:
app: facebook
replicas: 2
template:
metadata:
name: fbpod
labels:
app: facebook
spec:
containers:
- name: fbcont
image: kadarlasanthosh/santhosh_repo:19
ports:
- containerPort: 8080

17 changes: 17 additions & 0 deletions deploymentfiles/service.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
apiVersion: v1
kind: Service
metadata:
name: fb-svc
labels:
app: facebook

spec:
type: LoadBalancer
ports:
- port: 80
targetPort: 8080
protocol: TCP

selector:
app: facebook
27 changes: 17 additions & 10 deletions jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,28 +1,35 @@
pipeline {
agent any

tools {
maven 'maven_3.9.9'
}

stages {
stage('GIT CLONE SCM') {
stage('CLONE SCM') {
steps {
echo "CLONING code from Github repo"
git branch: 'main', url: 'https://github.com/devopstraininghub/mindcircuit14.git'
echo 'Cloning code from Github'
git branch: 'main', url: 'https://github.com/Kadarlasanthosh/mindcircuit14.git'
}
}

stage('BUILD ') {
stage('BUILD ARTIFACT') {
steps {
echo "Building code "
echo 'Building project with Maven'

sh 'mvn clean install'

}
}

stage('TOMCAT DEPLOY') {
stage('DEPLOY to TOMCAT') {
steps {
echo "Deploying war file to tomcat"
deploy adapters: [tomcat9(credentialsId: 'tomcat', path: '', url: 'http://ec2-54-173-89-134.compute-1.amazonaws.com:8091/')], contextPath: 'facebook', war: '**/*.war'
echo 'Deploy artifacts to TOMCAT web server'
deploy adapters: [tomcat9(credentialsId: 'tomcat', path: '', url: 'http://54.227.47.119:8091/')], contextPath: 'mcfbapp', war: '**/*.war'

}
}
}

}

}
1 change: 0 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,3 @@
</plugins>
</build>
</project>

Empty file added results.json
Empty file.
35 changes: 5 additions & 30 deletions src/main/webapp/index.jsp

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions target/maven-archiver/pom.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
artifactId=mindcircuitbatch14
groupId=com.example
version=8.3.0
Binary file added target/mindcircuitbatch14-8.3.0.war
Binary file not shown.
7 changes: 7 additions & 0 deletions target/mindcircuitbatch14-8.3.0/WEB-INF/web.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd" >

<web-app>
<display-name>Archetype Created Web Application</display-name>
</web-app>
7 changes: 7 additions & 0 deletions target/mindcircuitbatch14-8.3.0/index.jsp
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

<html>
<body>
<h1 style="color: green; font-size: 40px;" align="left">Kadarlasanthosh - End to End CICD Pipeline using GIT Webhook-Jenkins-Maven-sonarqube-Docker-Docker Hub-GitOps-argo CD-K8s Pods test-AWS DEVOPS TRAINING - We don't just train people; we COACH, MENTOR, and BUILD PEOPLE !! </h1>
</body>
</html>