File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+
2+ FROM openjdk:11-jdk-slim-sid
3+
4+
5+ COPY target/*.jar /opt/
6+ EXPOSE 8080
7+ CMD java -jar /opt/spring-backend-v1.jar
Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ This guide provides step-by-step instructions for setting up and running a Sprin
66- Ubuntu operating system
77- Internet connection
88
9+
10+
911## Instructions
1012
11131 . ** Update apt package index:**
Original file line number Diff line number Diff line change 1+ pipeline {
2+
3+
4+ agent any
5+ stages{
6+ stage('pull'){
7+
8+
9+ steps{
10+ git branch: 'main', url: 'https://github.com/mayurmwagh/B5-B16-B14-combine-backend.git'
11+ }
12+ }
13+ stage('build'){
14+ steps{
15+ sh 'mvn clean package'
16+ }
17+ }
18+ stage('deploy'){
19+ steps{
20+ sh '''
21+ docker build . -t mayurwagh/combine-backend51416:latest
22+ docker push mayurwagh/combine-backend51416:latest
23+ docker rmi mayurwagh/combine-backend51416:latest
24+ kubectl apply -f ./yaml/
25+ '''
26+
27+ }
28+ }
29+ }
30+ }
Original file line number Diff line number Diff line change 1- spring.datasource.url =jdbc:mysql://localhost:3306 /springbackend?useSSL =false
2- spring.datasource.username =springbackend
3- spring.datasource.password =springbackend
1+ spring.datasource.url =jdbc:mysql://terraform-20250130044334621300000006.c1u46osm6b9i.ap-south-1.rds.amazonaws.com /springbackend?useSSL =false
2+ spring.datasource.username =admin
3+ spring.datasource.password =Redhat123
44
55spring.jpa.generate-ddl =true
You can’t perform that action at this time.
0 commit comments