From a6a211d3c9dd1959ffb1d4531810ce7401e44516 Mon Sep 17 00:00:00 2001 From: Ragesh | Team DevOps Date: Thu, 8 Feb 2024 09:20:28 +0530 Subject: [PATCH 01/12] jenkinsfile update --- Jenkinsfile | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index a03a124..657a26e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,14 +3,14 @@ pipeline { stages { stage('SCM Checkout'){ steps { - git branch: 'main', url: 'https://github.com/naresh26git/microservices.git' + git branch: 'main', url: 'https://github.com/rageshtamizharasu/microservices.git' sh 'ls' } } stage('SonarQube Analysis') { steps { parallel ( - 'node application': { + 'nodejs application': { script { dir('cart-microservice-nodejs') { def scannerHome = tool 'sonarscanner4' @@ -76,60 +76,60 @@ pipeline { parallel ( 'docker login': { withCredentials([string(credentialsId: 'dockerPass', variable: 'dockerPassword')]) { - sh "docker login -u comdevops -p ${dockerPassword}" + sh "docker login -u ragesh2u -p ${dockerPassword}" } }, 'ui-web-app-reactjs': { dir('ui-web-app-reactjs'){ sh """ - docker build -t comdevops/ui:v1 . - docker push comdevops/ui:v1 - docker rmi comdevops/ui:v1 + docker build -t ragesh2u/ui:v1 . + docker push ragesh2u/ui:v1 + docker rmi ragesh2u/ui:v1 """ } }, 'zuul-api-gateway' : { dir('zuul-api-gateway'){ sh """ - docker build -t comdevops/api:v1 . - docker push comdevops/api:v1 - docker rmi comdevops/api:v1 + docker build -t ragesh2u/api:v1 . + docker push ragesh2u/api:v1 + docker rmi ragesh2u/api:v1 """ } }, 'offers-microservice-spring-boot': { dir('offers-microservice-spring-boot'){ sh """ - docker build -t comdevops/spring:v1 . - docker push comdevops/spring:v1 - docker rmi comdevops/spring:v1 + docker build -t ragesh2u/spring:v1 . + docker push ragesh2u/spring:v1 + docker rmi ragesh2u/spring:v1 """ } }, 'shoes-microservice-spring-boot': { dir('shoes-microservice-spring-boot'){ sh """ - docker build -t comdevops/spring:v2 . - docker push comdevops/spring:v2 - docker rmi comdevops/spring:v2 + docker build -t ragesh2u/spring:v2 . + docker push ragesh2u/spring:v2 + docker rmi ragesh2u/spring:v2 """ } }, 'cart-microservice-nodejs': { dir('cart-microservice-nodejs'){ sh """ - docker build -t comdevops/ui:v2 . - docker push comdevops/ui:v2 - docker rmi comdevops/ui:v2 + docker build -t ragesh2u/ui:v2 . + docker push ragesh2u/ui:v2 + docker rmi ragesh2u/ui:v2 """ } }, 'wishlist-microservice-python': { dir('wishlist-microservice-python'){ sh """ - docker build -t comdevops/python:v1 . - docker push comdevops/python:v1 - docker rmi comdevops/python:v1 + docker build -t ragesh2u/python:v1 . + docker push ragesh2u/python:v1 + docker rmi ragesh2u/python:v1 """ } } From bc81ec413e7e7a60b427bd0d831439dc0496284b Mon Sep 17 00:00:00 2001 From: Ragesh | Team DevOps Date: Thu, 8 Feb 2024 09:47:34 +0530 Subject: [PATCH 02/12] update sonar --- cart-microservice-nodejs/sonar-project.properties | 4 ++-- offers-microservice-spring-boot/sonar-project.properties | 4 ++-- shoes-microservice-spring-boot/sonar-project.properties | 4 ++-- ui-web-app-reactjs/sonar-project.properties | 4 ++-- wishlist-microservice-python/sonar-project.properties | 4 ++-- zuul-api-gateway/sonar-project.properties | 4 ++-- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/cart-microservice-nodejs/sonar-project.properties b/cart-microservice-nodejs/sonar-project.properties index 37c5808..849b755 100644 --- a/cart-microservice-nodejs/sonar-project.properties +++ b/cart-microservice-nodejs/sonar-project.properties @@ -3,7 +3,7 @@ sonar.projectName=cart-nodejs sonar.projectVersion=1.0 sonar.sources=. sonar.sourceEncoding=UTF-8 -sonar.host.url=http://13.232.29.132:9000/ -sonar.login=sqa_c8bbd62d3cff72d97c520a1488aa4411d1fc43d0 +sonar.host.url=http://52.53.186.124:9000/ +sonar.login=sqa_f080afb3dc18b72152f4ef2fbe06a63b40b43532 sonar.exclusions=**/node_modules/**,/coverage/lcov-report/*,test/*.js sonar.javascript.lcov.reportPaths=coverage/lcov.info diff --git a/offers-microservice-spring-boot/sonar-project.properties b/offers-microservice-spring-boot/sonar-project.properties index b8cfad3..aab23da 100644 --- a/offers-microservice-spring-boot/sonar-project.properties +++ b/offers-microservice-spring-boot/sonar-project.properties @@ -3,7 +3,7 @@ sonar.projectName=offers-spring-boot sonar.projectVersion=1.0 sonar.sources=. sonar.sourceEncoding=UTF-8 -sonar.host.url=http://13.233.199.142:9000/ -sonar.login=sqa_e89ae5578b2355ebe83f42b11ecc77975b6234e1 +sonar.host.url=http://52.53.186.124:9000/ +sonar.login=sqa_f080afb3dc18b72152f4ef2fbe06a63b40b43532 sonar.exclusions=**/node_modules/**,/coverage/lcov-report/*,test/*.js sonar.javascript.lcov.reportPaths=coverage/lcov.info diff --git a/shoes-microservice-spring-boot/sonar-project.properties b/shoes-microservice-spring-boot/sonar-project.properties index 940f9ed..acbc287 100644 --- a/shoes-microservice-spring-boot/sonar-project.properties +++ b/shoes-microservice-spring-boot/sonar-project.properties @@ -3,7 +3,7 @@ sonar.projectName=shoe-spring-boot sonar.projectVersion=1.0 sonar.sources=. sonar.sourceEncoding=UTF-8 -sonar.host.url=http://13.233.199.142:9000/ -sonar.login=sqa_e89ae5578b2355ebe83f42b11ecc77975b6234e1 +sonar.host.url=http://52.53.186.124:9000/ +sonar.login=sqa_f080afb3dc18b72152f4ef2fbe06a63b40b43532 sonar.exclusions=**/node_modules/**,/coverage/lcov-report/*,test/*.js sonar.javascript.lcov.reportPaths=coverage/lcov.info diff --git a/ui-web-app-reactjs/sonar-project.properties b/ui-web-app-reactjs/sonar-project.properties index 9316c61..a4643b9 100644 --- a/ui-web-app-reactjs/sonar-project.properties +++ b/ui-web-app-reactjs/sonar-project.properties @@ -8,9 +8,9 @@ sonar.sources=. sonar.sourceEncoding=UTF-8 -sonar.host.url=http://13.232.29.132:9000/ +sonar.host.url=http://52.53.186.124:9000/ -sonar.login=sqa_c8bbd62d3cff72d97c520a1488aa4411d1fc43d0 +sonar.login=sqa_f080afb3dc18b72152f4ef2fbe06a63b40b43532 sonar.exclusions=**/node_modules/**,/coverage/lcov-report/*,test/*.js diff --git a/wishlist-microservice-python/sonar-project.properties b/wishlist-microservice-python/sonar-project.properties index 62b5f9b..115188e 100644 --- a/wishlist-microservice-python/sonar-project.properties +++ b/wishlist-microservice-python/sonar-project.properties @@ -3,7 +3,7 @@ sonar.projectName=wishlist-py sonar.projectVersion=1.0 sonar.sources=. sonar.sourceEncoding=UTF-8 -sonar.host.url=http://13.233.199.142:9000/ -sonar.login=sqa_e89ae5578b2355ebe83f42b11ecc77975b6234e1 +sonar.host.url=http://52.53.186.124:9000/ +sonar.login=sqa_f080afb3dc18b72152f4ef2fbe06a63b40b43532 sonar.coverage.exclusions=**/__index__.py sonar.javascript.lcov.reportPaths=coverage/lcov.info diff --git a/zuul-api-gateway/sonar-project.properties b/zuul-api-gateway/sonar-project.properties index 42f6429..d12bc79 100644 --- a/zuul-api-gateway/sonar-project.properties +++ b/zuul-api-gateway/sonar-project.properties @@ -3,7 +3,7 @@ sonar.projectName=zuul-api sonar.projectVersion=1.0 sonar.sources=. sonar.sourceEncoding=UTF-8 -sonar.host.url=http://13.233.199.142:9000/ -sonar.login=sqa_e89ae5578b2355ebe83f42b11ecc77975b6234e1 +sonar.host.url=http://52.53.186.124:9000/ +sonar.login=sqa_f080afb3dc18b72152f4ef2fbe06a63b40b43532 sonar.exclusions=**/node_modules/**,/coverage/lcov-report/*,test/*.js sonar.javascript.lcov.reportPaths=coverage/lcov.info From 4e570c2fcbb961cb9ef61d818c5200df4a97ac61 Mon Sep 17 00:00:00 2001 From: Ragesh | Team DevOps Date: Thu, 8 Feb 2024 10:34:54 +0530 Subject: [PATCH 03/12] updated the path nodejs --- Jenkinsfile | 2 +- cart-microservice-nodejs/sonar-project.properties | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 657a26e..a6058a4 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -63,7 +63,7 @@ pipeline { -D sonar.inclusions=index.py \ -D sonar.sourceEncoding=UTF-8 \ -D sonar.language=python \ - -D sonar.host.url=http://13.232.29.132:9000/""" + -D sonar.host.url=http://52.53.186.124:9000/""" } } } diff --git a/cart-microservice-nodejs/sonar-project.properties b/cart-microservice-nodejs/sonar-project.properties index 849b755..026bc66 100644 --- a/cart-microservice-nodejs/sonar-project.properties +++ b/cart-microservice-nodejs/sonar-project.properties @@ -5,5 +5,5 @@ sonar.sources=. sonar.sourceEncoding=UTF-8 sonar.host.url=http://52.53.186.124:9000/ sonar.login=sqa_f080afb3dc18b72152f4ef2fbe06a63b40b43532 -sonar.exclusions=**/node_modules/**,/coverage/lcov-report/*,test/*.js +sonar.exclusions=**/node_modules/**;**/coverage/lcov-report/**;**/test/*.js sonar.javascript.lcov.reportPaths=coverage/lcov.info From a2183d3d6a636d7aba5d930745e16b6e98ef10a0 Mon Sep 17 00:00:00 2001 From: Ragesh | Team DevOps Date: Thu, 8 Feb 2024 10:52:47 +0530 Subject: [PATCH 04/12] update local sonar --- cart-microservice-nodejs/sonar-project.properties | 4 ++-- offers-microservice-spring-boot/sonar-project.properties | 4 ++-- shoes-microservice-spring-boot/sonar-project.properties | 4 ++-- ui-web-app-reactjs/sonar-project.properties | 4 ++-- wishlist-microservice-python/sonar-project.properties | 9 +++++++-- zuul-api-gateway/sonar-project.properties | 4 ++-- 6 files changed, 17 insertions(+), 12 deletions(-) diff --git a/cart-microservice-nodejs/sonar-project.properties b/cart-microservice-nodejs/sonar-project.properties index 026bc66..11c82d5 100644 --- a/cart-microservice-nodejs/sonar-project.properties +++ b/cart-microservice-nodejs/sonar-project.properties @@ -3,7 +3,7 @@ sonar.projectName=cart-nodejs sonar.projectVersion=1.0 sonar.sources=. sonar.sourceEncoding=UTF-8 -sonar.host.url=http://52.53.186.124:9000/ -sonar.login=sqa_f080afb3dc18b72152f4ef2fbe06a63b40b43532 +sonar.host.url=http://localhost:9000/ +sonar.login=sqa_83be965a417e830eace5a45e0ee24d0bbf977a9b sonar.exclusions=**/node_modules/**;**/coverage/lcov-report/**;**/test/*.js sonar.javascript.lcov.reportPaths=coverage/lcov.info diff --git a/offers-microservice-spring-boot/sonar-project.properties b/offers-microservice-spring-boot/sonar-project.properties index aab23da..7a4be3b 100644 --- a/offers-microservice-spring-boot/sonar-project.properties +++ b/offers-microservice-spring-boot/sonar-project.properties @@ -3,7 +3,7 @@ sonar.projectName=offers-spring-boot sonar.projectVersion=1.0 sonar.sources=. sonar.sourceEncoding=UTF-8 -sonar.host.url=http://52.53.186.124:9000/ -sonar.login=sqa_f080afb3dc18b72152f4ef2fbe06a63b40b43532 +sonar.host.url=http://localhost:9000/ +sonar.login=sqa_83be965a417e830eace5a45e0ee24d0bbf977a9b sonar.exclusions=**/node_modules/**,/coverage/lcov-report/*,test/*.js sonar.javascript.lcov.reportPaths=coverage/lcov.info diff --git a/shoes-microservice-spring-boot/sonar-project.properties b/shoes-microservice-spring-boot/sonar-project.properties index acbc287..defabb6 100644 --- a/shoes-microservice-spring-boot/sonar-project.properties +++ b/shoes-microservice-spring-boot/sonar-project.properties @@ -3,7 +3,7 @@ sonar.projectName=shoe-spring-boot sonar.projectVersion=1.0 sonar.sources=. sonar.sourceEncoding=UTF-8 -sonar.host.url=http://52.53.186.124:9000/ -sonar.login=sqa_f080afb3dc18b72152f4ef2fbe06a63b40b43532 +sonar.host.url=http://localhost:9000/ +sonar.login=sqa_83be965a417e830eace5a45e0ee24d0bbf977a9b sonar.exclusions=**/node_modules/**,/coverage/lcov-report/*,test/*.js sonar.javascript.lcov.reportPaths=coverage/lcov.info diff --git a/ui-web-app-reactjs/sonar-project.properties b/ui-web-app-reactjs/sonar-project.properties index a4643b9..90a68c3 100644 --- a/ui-web-app-reactjs/sonar-project.properties +++ b/ui-web-app-reactjs/sonar-project.properties @@ -8,9 +8,9 @@ sonar.sources=. sonar.sourceEncoding=UTF-8 -sonar.host.url=http://52.53.186.124:9000/ +sonar.host.url=http://localhost:9000/ -sonar.login=sqa_f080afb3dc18b72152f4ef2fbe06a63b40b43532 +sonar.login=sqa_83be965a417e830eace5a45e0ee24d0bbf977a9b sonar.exclusions=**/node_modules/**,/coverage/lcov-report/*,test/*.js diff --git a/wishlist-microservice-python/sonar-project.properties b/wishlist-microservice-python/sonar-project.properties index 115188e..0e8cf17 100644 --- a/wishlist-microservice-python/sonar-project.properties +++ b/wishlist-microservice-python/sonar-project.properties @@ -1,9 +1,14 @@ sonar.projectKey=wishlist-py + sonar.projectName=wishlist-py + sonar.projectVersion=1.0 + sonar.sources=. + sonar.sourceEncoding=UTF-8 -sonar.host.url=http://52.53.186.124:9000/ -sonar.login=sqa_f080afb3dc18b72152f4ef2fbe06a63b40b43532 + +sonar.host.url=http://localhost:9000/ +sonar.login=sqa_83be965a417e830eace5a45e0ee24d0bbf977a9b sonar.coverage.exclusions=**/__index__.py sonar.javascript.lcov.reportPaths=coverage/lcov.info diff --git a/zuul-api-gateway/sonar-project.properties b/zuul-api-gateway/sonar-project.properties index d12bc79..7c2d58b 100644 --- a/zuul-api-gateway/sonar-project.properties +++ b/zuul-api-gateway/sonar-project.properties @@ -3,7 +3,7 @@ sonar.projectName=zuul-api sonar.projectVersion=1.0 sonar.sources=. sonar.sourceEncoding=UTF-8 -sonar.host.url=http://52.53.186.124:9000/ -sonar.login=sqa_f080afb3dc18b72152f4ef2fbe06a63b40b43532 +sonar.host.url=http://localhost:9000/ +sonar.login=sqa_83be965a417e830eace5a45e0ee24d0bbf977a9b sonar.exclusions=**/node_modules/**,/coverage/lcov-report/*,test/*.js sonar.javascript.lcov.reportPaths=coverage/lcov.info From af2c8fea05b652e52bc82d04e57ef3ee99207417 Mon Sep 17 00:00:00 2001 From: Ragesh | Team DevOps Date: Thu, 8 Feb 2024 11:01:37 +0530 Subject: [PATCH 05/12] updated python-sonar --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index a6058a4..9e0a33f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -57,13 +57,13 @@ pipeline { -D sonar.projectVersion=1.0-SNAPSHOT \ -D sonar.sources=. \ -D sonar.login=admin \ - -D sonar.password=admin123 \ + -D sonar.password=admin \ -D sonar.projectKey=project \ -D sonar.projectName=wishlist-py \ -D sonar.inclusions=index.py \ -D sonar.sourceEncoding=UTF-8 \ -D sonar.language=python \ - -D sonar.host.url=http://52.53.186.124:9000/""" + -D sonar.host.url=localhost:9000/""" } } } From dd5ffb024a569a3b56e2a8f9758209c334daefb6 Mon Sep 17 00:00:00 2001 From: Ragesh | Team DevOps Date: Thu, 8 Feb 2024 18:27:37 +0530 Subject: [PATCH 06/12] update docker-cart --- Jenkinsfile | 80 ++++++++++++++++------------- cart-microservice-nodejs/Dockerfile | 2 +- 2 files changed, 44 insertions(+), 38 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 9e0a33f..98c4712 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,12 +1,13 @@ pipeline { agent any stages { - stage('SCM Checkout'){ + stage('SCM Checkout') { steps { - git branch: 'main', url: 'https://github.com/rageshtamizharasu/microservices.git' - sh 'ls' + git branch: 'main', url: 'https://github.com/rageshtamizharasu/microservices.git' + sh 'ls' } } + stage('SonarQube Analysis') { steps { parallel ( @@ -14,12 +15,12 @@ pipeline { script { dir('cart-microservice-nodejs') { def scannerHome = tool 'sonarscanner4' - withSonarQubeEnv('sonar-pro') { - sh "${scannerHome}/bin/sonar-scanner -Dsonar.projectKey=cart-nodejs" - } + withSonarQubeEnv('sonar-pro') { + sh "${scannerHome}/bin/sonar-scanner -Dsonar.projectKey=cart-nodejs" + } } dir('ui-web-app-reactjs') { - def scannerHome = tool 'sonarscanner4'; + def scannerHome = tool 'sonarscanner4' withSonarQubeEnv('sonar-pro') { sh "${scannerHome}/bin/sonar-scanner -Dsonar.projectKey=ui-reactjs" } @@ -29,19 +30,19 @@ pipeline { 'spring boot application': { script { dir('offers-microservice-spring-boot') { - def mvn = tool 'maven3'; + def mvn = tool 'maven3' withSonarQubeEnv('sonar-pro') { sh "${mvn}/bin/mvn clean verify sonar:sonar -Dsonar.projectKey=offers-spring-boot -Dsonar.projectName=offers-spring-boot" } } dir('shoes-microservice-spring-boot') { - def mvn = tool 'maven3'; + def mvn = tool 'maven3' withSonarQubeEnv('sonar-pro') { sh "${mvn}/bin/mvn clean verify sonar:sonar -Dsonar.projectKey=shoe-spring-boot -Dsonar.projectName=shoes-spring-boot" } } dir('zuul-api-gateway') { - def mvn = tool 'maven3'; + def mvn = tool 'maven3' withSonarQubeEnv('sonar-pro') { sh "${mvn}/bin/mvn clean verify sonar:sonar -Dsonar.projectKey=zuul-api -Dsonar.projectName=zuul-api" } @@ -49,21 +50,21 @@ pipeline { } }, 'python app': { - script{ + script { dir('wishlist-microservice-python') { - def scannerHome = tool 'sonarscanner4'; + def scannerHome = tool 'sonarscanner4' withSonarQubeEnv('sonar-pro') { sh """/var/lib/jenkins/tools/hudson.plugins.sonar.SonarRunnerInstallation/sonarscanner4/bin/sonar-scanner \ - -D sonar.projectVersion=1.0-SNAPSHOT \ - -D sonar.sources=. \ - -D sonar.login=admin \ - -D sonar.password=admin \ - -D sonar.projectKey=project \ - -D sonar.projectName=wishlist-py \ - -D sonar.inclusions=index.py \ - -D sonar.sourceEncoding=UTF-8 \ - -D sonar.language=python \ - -D sonar.host.url=localhost:9000/""" + -D sonar.projectVersion=1.0-SNAPSHOT \ + -D sonar.sources=. \ + -D sonar.login=admin \ + -D sonar.password=admin123 \ + -D sonar.projectKey=project \ + -D sonar.projectName=wishlist-py \ + -D sonar.inclusions=index.py \ + -D sonar.sourceEncoding=UTF-8 \ + -D sonar.language=python \ + -D sonar.host.url=http://localhost:9000/""" } } } @@ -71,16 +72,20 @@ pipeline { ) } } - stage ('Build Docker Image and push'){ + + stage('Build Docker Image and push') { steps { parallel ( 'docker login': { - withCredentials([string(credentialsId: 'dockerPass', variable: 'dockerPassword')]) { - sh "docker login -u ragesh2u -p ${dockerPassword}" + script { + // Directly assign Docker ID and password + def dockerId = 'ragesh2u' + + sh "docker login -u ${dockerId} -p ${dockerPassword}" } }, 'ui-web-app-reactjs': { - dir('ui-web-app-reactjs'){ + dir('ui-web-app-reactjs') { sh """ docker build -t ragesh2u/ui:v1 . docker push ragesh2u/ui:v1 @@ -88,8 +93,8 @@ pipeline { """ } }, - 'zuul-api-gateway' : { - dir('zuul-api-gateway'){ + 'zuul-api-gateway': { + dir('zuul-api-gateway') { sh """ docker build -t ragesh2u/api:v1 . docker push ragesh2u/api:v1 @@ -98,7 +103,7 @@ pipeline { } }, 'offers-microservice-spring-boot': { - dir('offers-microservice-spring-boot'){ + dir('offers-microservice-spring-boot') { sh """ docker build -t ragesh2u/spring:v1 . docker push ragesh2u/spring:v1 @@ -107,16 +112,16 @@ pipeline { } }, 'shoes-microservice-spring-boot': { - dir('shoes-microservice-spring-boot'){ + dir('shoes-microservice-spring-boot') { sh """ - docker build -t ragesh2u/spring:v2 . - docker push ragesh2u/spring:v2 - docker rmi ragesh2u/spring:v2 + docker build -t ragesh2u/springs:v2 . + docker push ragesh2u/springs:v2 + docker rmi ragesh2u/springs:v2 """ } }, 'cart-microservice-nodejs': { - dir('cart-microservice-nodejs'){ + dir('cart-microservice-nodejs') { sh """ docker build -t ragesh2u/ui:v2 . docker push ragesh2u/ui:v2 @@ -125,7 +130,7 @@ pipeline { } }, 'wishlist-microservice-python': { - dir('wishlist-microservice-python'){ + dir('wishlist-microservice-python') { sh """ docker build -t ragesh2u/python:v1 . docker push ragesh2u/python:v1 @@ -136,8 +141,9 @@ pipeline { ) } } - stage ('Deploy on k8s'){ - steps{ + + stage('Deploy on k8s') { + steps { parallel ( 'deploy on k8s': { script { diff --git a/cart-microservice-nodejs/Dockerfile b/cart-microservice-nodejs/Dockerfile index 68eb439..3dea0f1 100644 --- a/cart-microservice-nodejs/Dockerfile +++ b/cart-microservice-nodejs/Dockerfile @@ -1,7 +1,7 @@ FROM node:14 COPY . /var/www WORKDIR /var/www -#RUN npm install +RUN npm install EXPOSE 1004 From ffaa61284d6d0754373da9e482a487fcc45970d5 Mon Sep 17 00:00:00 2001 From: Ragesh | Team DevOps Date: Thu, 8 Feb 2024 19:08:54 +0530 Subject: [PATCH 07/12] nodejs #RUN npm removed --- offers-microservice-spring-boot/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/offers-microservice-spring-boot/Dockerfile b/offers-microservice-spring-boot/Dockerfile index d20bf2f..ce9039d 100644 --- a/offers-microservice-spring-boot/Dockerfile +++ b/offers-microservice-spring-boot/Dockerfile @@ -2,7 +2,7 @@ FROM maven as build USER root WORKDIR /app COPY . . -RUN mvn install +#RUN mvn install FROM openjdk:11.0.10-jre WORKDIR /app From 4f9c91d49a8cf727af389d53c63dc016f74c0b8b Mon Sep 17 00:00:00 2001 From: Ragesh | Team DevOps Date: Thu, 8 Feb 2024 19:11:21 +0530 Subject: [PATCH 08/12] update Dockerfile on cart and ui --- ui-web-app-reactjs/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui-web-app-reactjs/Dockerfile b/ui-web-app-reactjs/Dockerfile index e70adfd..2669cfa 100644 --- a/ui-web-app-reactjs/Dockerfile +++ b/ui-web-app-reactjs/Dockerfile @@ -2,7 +2,7 @@ FROM node:8 RUN echo " Try to build my application" COPY . /var/www WORKDIR /var/www -#RUN npm install +RUN npm install EXPOSE 3000 # EXPOSE 31448 ENTRYPOINT ["npm","start"] From e91ba779bb817e91bff46b0a9740a6310ea27cd1 Mon Sep 17 00:00:00 2001 From: Ragesh | Team DevOps Date: Thu, 8 Feb 2024 19:18:32 +0530 Subject: [PATCH 09/12] Exposed port --- ui-web-app-reactjs/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui-web-app-reactjs/Dockerfile b/ui-web-app-reactjs/Dockerfile index 2669cfa..75d2d0b 100644 --- a/ui-web-app-reactjs/Dockerfile +++ b/ui-web-app-reactjs/Dockerfile @@ -4,5 +4,5 @@ COPY . /var/www WORKDIR /var/www RUN npm install EXPOSE 3000 -# EXPOSE 31448 +EXPOSE 31448 ENTRYPOINT ["npm","start"] From 050511e7f793fe310cd1e11a8990cdcd43d4e8cc Mon Sep 17 00:00:00 2001 From: Ragesh | Team DevOps Date: Thu, 8 Feb 2024 19:27:39 +0530 Subject: [PATCH 10/12] nodejs npm stopped --- cart-microservice-nodejs/Dockerfile | 2 +- ui-web-app-reactjs/Dockerfile | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cart-microservice-nodejs/Dockerfile b/cart-microservice-nodejs/Dockerfile index 3dea0f1..68eb439 100644 --- a/cart-microservice-nodejs/Dockerfile +++ b/cart-microservice-nodejs/Dockerfile @@ -1,7 +1,7 @@ FROM node:14 COPY . /var/www WORKDIR /var/www -RUN npm install +#RUN npm install EXPOSE 1004 diff --git a/ui-web-app-reactjs/Dockerfile b/ui-web-app-reactjs/Dockerfile index 75d2d0b..6122929 100644 --- a/ui-web-app-reactjs/Dockerfile +++ b/ui-web-app-reactjs/Dockerfile @@ -1,8 +1,8 @@ -FROM node:8 +FROM node:14 RUN echo " Try to build my application" COPY . /var/www WORKDIR /var/www -RUN npm install +#RUN npm install EXPOSE 3000 EXPOSE 31448 ENTRYPOINT ["npm","start"] From 4dac553bfd5434c63bca82336ebc13a72c4b729e Mon Sep 17 00:00:00 2001 From: Ragesh | Team DevOps Date: Thu, 8 Feb 2024 21:59:32 +0530 Subject: [PATCH 11/12] update Success 100% local 9999 --- ui-web-app-reactjs/src/components/App.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui-web-app-reactjs/src/components/App.jsx b/ui-web-app-reactjs/src/components/App.jsx index 5c732ae..fff79b1 100644 --- a/ui-web-app-reactjs/src/components/App.jsx +++ b/ui-web-app-reactjs/src/components/App.jsx @@ -23,8 +23,8 @@ const App = () => { },[]) const handleApiCall = async (e) => { - // const url = 'http://localhost:9999/'+e.target.name; - let url = 'http://13.232.78.19:32470/'+e.target.name + const url = 'http://localhost:9999/'+e.target.name; + //let url = 'http://13.232.78.19:32470/'+e.target.name displayData.url=url let options = {} From 1b9bad64bd92b683d4cd49dec3ff655d64786cef Mon Sep 17 00:00:00 2001 From: Ragesh Tamizharasu <39893176+rageshtamizharasu@users.noreply.github.com> Date: Sat, 15 Feb 2025 19:00:39 +0530 Subject: [PATCH 12/12] Create vpc.py --- vpc.py | 1 + 1 file changed, 1 insertion(+) create mode 100644 vpc.py diff --git a/vpc.py b/vpc.py new file mode 100644 index 0000000..26abfa2 --- /dev/null +++ b/vpc.py @@ -0,0 +1 @@ +import boto3