From bfaa0a9a9379edb34ce0b8a059bde4f9504ef78c Mon Sep 17 00:00:00 2001 From: Umachitra Date: Wed, 21 Aug 2024 18:33:35 +0530 Subject: [PATCH 1/9] Update values.yaml --- Helm/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Helm/values.yaml b/Helm/values.yaml index c778ef9..cea50f6 100644 --- a/Helm/values.yaml +++ b/Helm/values.yaml @@ -2,7 +2,7 @@ #namespace: devops replicaCount: 1 image: - repository: naresh2603/helmrocket + repository: umachitra/helmrocket tag: v1 containerPort: 80 # service.yaml From 62091995d4d334bb27a7328803f1abedf518a412 Mon Sep 17 00:00:00 2001 From: Umachitra Date: Wed, 21 Aug 2024 19:05:47 +0530 Subject: [PATCH 2/9] Update Dockerfile --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index c7e41c1..8fefb2d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM node:16 WORKDIR /usr/src/app COPY package*.json ./ -RUN npm install -COPY . . -EXPOSE 80 +#RUN npm install +#COPY . . +#EXPOSE 80 CMD [ "npm", "start" ] From ca8d6c431afdcc3f9d7dd7e929f4c49cbeead53d Mon Sep 17 00:00:00 2001 From: Umachitra Date: Wed, 21 Aug 2024 19:06:34 +0530 Subject: [PATCH 3/9] Update values.yaml From 659b6777e6ecb1195fb3963e5716698d38785a05 Mon Sep 17 00:00:00 2001 From: Umachitra Date: Wed, 21 Aug 2024 19:07:56 +0530 Subject: [PATCH 4/9] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index b3920ea..700375f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -38,7 +38,7 @@ pipeline { script { withCredentials([string(credentialsId: 'dockerPass', variable: 'dockerPassword')]) { sh "docker login -u naresh2603 -p ${dockerPassword}" - sh 'docker push naresh2603/helm-rockets:v1' + sh 'docker push umachitra/helm-rockets:v1' } } } From 41fbf3baa62be79acfc4cf0601b0daf2ecc0adc2 Mon Sep 17 00:00:00 2001 From: Umachitra Date: Wed, 21 Aug 2024 19:21:34 +0530 Subject: [PATCH 5/9] Update Jenkinsfile --- Jenkinsfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 700375f..485329e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,7 +4,7 @@ pipeline { stage ('SCM checkout') { steps { script{ - git credentialsId: 'git-cred', url: 'https://github.com/naresh26git/helm-node.git' + git credentialsId: 'git-cred', url: 'https://github.com/Umachitra/helm-chart.git' } } } @@ -28,7 +28,7 @@ pipeline { stage('Docker Build Images') { steps { script { - sh 'docker build -t naresh2603/helm-rockets:v1 .' + sh 'docker build -t umachitra/helm-rocket:v1 .' sh 'docker images' } } @@ -37,8 +37,8 @@ pipeline { steps { script { withCredentials([string(credentialsId: 'dockerPass', variable: 'dockerPassword')]) { - sh "docker login -u naresh2603 -p ${dockerPassword}" - sh 'docker push umachitra/helm-rockets:v1' + sh "docker login -u umachitra -p ${dockerPassword}" + sh 'docker push umachitra/helm-rocket:v1' } } } @@ -46,7 +46,7 @@ pipeline { stage('Trivy Docker-scan') { steps { script { - sh 'trivy image naresh2603/helm-rockets:v1 > scan.txt' + sh 'trivy image umachitra/helm-rocket:v1 > scan.txt' } } } From 36fc5bb66b12525a302ded0661c52e8dcb70a516 Mon Sep 17 00:00:00 2001 From: Umachitra Date: Wed, 21 Aug 2024 19:35:38 +0530 Subject: [PATCH 6/9] Update Chart.yaml --- Helm/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Helm/Chart.yaml b/Helm/Chart.yaml index e4f578c..2541ac2 100644 --- a/Helm/Chart.yaml +++ b/Helm/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v2 +apiVersion: v1 name: myrocketapp # Set the name of your Helm chart version: 0.1.0 # Set the version of your Helm chart appVersion: 1.0.0 # Set the version of your application (optional) From f7e0037c1a130a73165d9ff94f8dfd52dd0fd3b6 Mon Sep 17 00:00:00 2001 From: Umachitra Date: Wed, 21 Aug 2024 19:37:20 +0530 Subject: [PATCH 7/9] Update Dockerfile --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8fefb2d..c7e41c1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM node:16 WORKDIR /usr/src/app COPY package*.json ./ -#RUN npm install -#COPY . . -#EXPOSE 80 +RUN npm install +COPY . . +EXPOSE 80 CMD [ "npm", "start" ] From b3d3746c873f42b26918431333404d020c38c60d Mon Sep 17 00:00:00 2001 From: Umachitra Date: Wed, 21 Aug 2024 20:00:46 +0530 Subject: [PATCH 8/9] Update values.yaml --- Helm/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Helm/values.yaml b/Helm/values.yaml index cea50f6..2faec33 100644 --- a/Helm/values.yaml +++ b/Helm/values.yaml @@ -2,7 +2,7 @@ #namespace: devops replicaCount: 1 image: - repository: umachitra/helmrocket + repository: umachitra/helm-rocket tag: v1 containerPort: 80 # service.yaml From a010f6afc96c416886c4c69d61d7c90f129f3649 Mon Sep 17 00:00:00 2001 From: Umachitra Date: Wed, 21 Aug 2024 20:01:16 +0530 Subject: [PATCH 9/9] Update Chart.yaml --- Helm/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Helm/Chart.yaml b/Helm/Chart.yaml index 2541ac2..e4f578c 100644 --- a/Helm/Chart.yaml +++ b/Helm/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: myrocketapp # Set the name of your Helm chart version: 0.1.0 # Set the version of your Helm chart appVersion: 1.0.0 # Set the version of your application (optional)