From 581387774c4518788570dc85ce63b3259f9d7c80 Mon Sep 17 00:00:00 2001 From: Francesco Cesareo Date: Tue, 2 Apr 2024 17:00:28 +0200 Subject: [PATCH 01/54] fix secret --- helm/values-dev.yaml | 4 ++-- helm/values-prod.yaml | 4 ++-- helm/values-uat.yaml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml index af2f464..763d943 100644 --- a/helm/values-dev.yaml +++ b/helm/values-dev.yaml @@ -102,9 +102,9 @@ microservice-chart: DB_NEXI_POSTGRES_PASSWORD: "db-nexi-cfg-password" DB_NEXI_ORACLE_PASSWORD: "oracle-db-cfg-password" API_CONFIG_CACHE_RX_CONNECTION_STRING: "nodo-dei-pagamenti-cache-sync-rx-connection-string-key" - API_CONFIG_CACHE_SA_CONNECTION_STRING: "nodo-dei-pagamenti-cache-sync-sa-connection-string-key" + API_CONFIG_CACHE_SA_CONNECTION_STRING: "node-cfg-sync-re-sa-connection-string-key" STAND_IN_MANAGER_RX_CONNECTION_STRING: "nodo-dei-pagamenti-stand-in-sync-rx-connection-string-key" - STAND_IN_MANAGER_SA_CONNECTION_STRING: "nodo-dei-pagamenti-stand-in-sync-sa-connection-string-key" + STAND_IN_MANAGER_SA_CONNECTION_STRING: "node-cfg-sync-re-sa-connection-string-key" API_CONFIG_CACHE_SUBSCRIPTION_KEY: "cfg-for-node-subscription-key" STAND_IN_MANAGER_SUBSCRIPTION_KEY: "cfg-for-node-subscription-key" OTEL_EXPORTER_OTLP_HEADERS: "elastic-apm-secret-token" diff --git a/helm/values-prod.yaml b/helm/values-prod.yaml index 427ae02..8d9ebeb 100644 --- a/helm/values-prod.yaml +++ b/helm/values-prod.yaml @@ -102,9 +102,9 @@ microservice-chart: DB_NEXI_POSTGRES_PASSWORD: "db-nexi-cfg-password" DB_NEXI_ORACLE_PASSWORD: "oracle-db-cfg-password" API_CONFIG_CACHE_RX_CONNECTION_STRING: "nodo-dei-pagamenti-cache-sync-rx-connection-string-key" - API_CONFIG_CACHE_SA_CONNECTION_STRING: "nodo-dei-pagamenti-cache-sync-sa-connection-string-key" + API_CONFIG_CACHE_SA_CONNECTION_STRING: "node-cfg-sync-re-sa-connection-string-key" STAND_IN_MANAGER_RX_CONNECTION_STRING: "nodo-dei-pagamenti-stand-in-sync-rx-connection-string-key" - STAND_IN_MANAGER_SA_CONNECTION_STRING: "nodo-dei-pagamenti-stand-in-sync-sa-connection-string-key" + STAND_IN_MANAGER_SA_CONNECTION_STRING: "node-cfg-sync-re-sa-connection-string-key" API_CONFIG_CACHE_SUBSCRIPTION_KEY: "cfg-for-node-subscription-key" STAND_IN_MANAGER_SUBSCRIPTION_KEY: "cfg-for-node-subscription-key" OTEL_EXPORTER_OTLP_HEADERS: "elastic-apm-secret-token" diff --git a/helm/values-uat.yaml b/helm/values-uat.yaml index c8ede77..5a4404d 100644 --- a/helm/values-uat.yaml +++ b/helm/values-uat.yaml @@ -102,9 +102,9 @@ microservice-chart: DB_NEXI_POSTGRES_PASSWORD: "db-nexi-cfg-password" DB_NEXI_ORACLE_PASSWORD: "oracle-db-cfg-password" API_CONFIG_CACHE_RX_CONNECTION_STRING: "nodo-dei-pagamenti-cache-sync-rx-connection-string-key" - API_CONFIG_CACHE_SA_CONNECTION_STRING: "nodo-dei-pagamenti-cache-sync-sa-connection-string-key" + API_CONFIG_CACHE_SA_CONNECTION_STRING: "node-cfg-sync-re-sa-connection-string-key" STAND_IN_MANAGER_RX_CONNECTION_STRING: "nodo-dei-pagamenti-stand-in-sync-rx-connection-string-key" - STAND_IN_MANAGER_SA_CONNECTION_STRING: "nodo-dei-pagamenti-stand-in-sync-sa-connection-string-key" + STAND_IN_MANAGER_SA_CONNECTION_STRING: "node-cfg-sync-re-sa-connection-string-key" API_CONFIG_CACHE_SUBSCRIPTION_KEY: "cfg-for-node-subscription-key" STAND_IN_MANAGER_SUBSCRIPTION_KEY: "cfg-for-node-subscription-key" OTEL_EXPORTER_OTLP_HEADERS: "elastic-apm-secret-token" From 41f2961c6da2136b3583a93e4826cc790bfede51 Mon Sep 17 00:00:00 2001 From: pagopa-github-bot Date: Tue, 2 Apr 2024 15:05:58 +0000 Subject: [PATCH 02/54] Bump to version 0.0.3-1-NOD-744-deploy-uat [skip ci] --- helm/Chart.yaml | 4 ++-- helm/values-dev.yaml | 2 +- helm/values-prod.yaml | 2 +- helm/values-uat.yaml | 2 +- openapi/openapi.json | 2 +- pom.xml | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/helm/Chart.yaml b/helm/Chart.yaml index bc5be75..1e48bb7 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: pagopa-node-cfg-sync description: Microservice that sync api-config-cache and standin configuration type: application -version: 0.52.0 -appVersion: 0.0.3 +version: 0.53.0 +appVersion: 0.0.3-1-NOD-744-deploy-uat dependencies: - name: microservice-chart version: 2.8.0 diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml index 763d943..ab6bb60 100644 --- a/helm/values-dev.yaml +++ b/helm/values-dev.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3" + tag: "0.0.3-1-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/helm/values-prod.yaml b/helm/values-prod.yaml index 8d9ebeb..b26137a 100644 --- a/helm/values-prod.yaml +++ b/helm/values-prod.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3" + tag: "0.0.3-1-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/helm/values-uat.yaml b/helm/values-uat.yaml index 5a4404d..b8a5d8c 100644 --- a/helm/values-uat.yaml +++ b/helm/values-uat.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3" + tag: "0.0.3-1-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/openapi/openapi.json b/openapi/openapi.json index b30e1bd..fac74a5 100644 --- a/openapi/openapi.json +++ b/openapi/openapi.json @@ -4,7 +4,7 @@ "title": "cfg-sync", "description": "Microservice to update configuration schema of Nodo dei Pagamenti", "termsOfService": "https://www.pagopa.gov.it/", - "version": "0.0.3" + "version": "0.0.3-1-NOD-744-deploy-uat" }, "servers": [ { diff --git a/pom.xml b/pom.xml index a4cbc99..61009a0 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ it.gov.pagopa.node cfg-sync - 0.0.3 + 0.0.3-1-NOD-744-deploy-uat Microservice to update configuration schema of Nodo dei Pagamenti From d3bf3ba0c81a0c5029394f322f8cf28bf26e7c7e Mon Sep 17 00:00:00 2001 From: Francesco Cesareo Date: Tue, 2 Apr 2024 17:27:06 +0200 Subject: [PATCH 03/54] fix secret --- helm/values-dev.yaml | 2 +- helm/values-prod.yaml | 2 +- helm/values-uat.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml index ab6bb60..ee2d723 100644 --- a/helm/values-dev.yaml +++ b/helm/values-dev.yaml @@ -97,7 +97,7 @@ microservice-chart: OTEL_TRACES_SAMPLER: "always_on" envSecret: # required - APPLICATIONINSIGHTS_CONNECTION_STRING: 'ai-d-connection-string' + APPLICATIONINSIGHTS_CONNECTION_STRING: 'azure-insight-connection-string' DB_PAGOPA_POSTGRES_PASSWORD: "db-cfg-password" DB_NEXI_POSTGRES_PASSWORD: "db-nexi-cfg-password" DB_NEXI_ORACLE_PASSWORD: "oracle-db-cfg-password" diff --git a/helm/values-prod.yaml b/helm/values-prod.yaml index b26137a..afccbdc 100644 --- a/helm/values-prod.yaml +++ b/helm/values-prod.yaml @@ -97,7 +97,7 @@ microservice-chart: OTEL_TRACES_SAMPLER: "always_on" envSecret: # required - APPLICATIONINSIGHTS_CONNECTION_STRING: 'ai-p-connection-string' + APPLICATIONINSIGHTS_CONNECTION_STRING: 'azure-insight-connection-string' DB_PAGOPA_POSTGRES_PASSWORD: "db-cfg-password" DB_NEXI_POSTGRES_PASSWORD: "db-nexi-cfg-password" DB_NEXI_ORACLE_PASSWORD: "oracle-db-cfg-password" diff --git a/helm/values-uat.yaml b/helm/values-uat.yaml index b8a5d8c..80dce18 100644 --- a/helm/values-uat.yaml +++ b/helm/values-uat.yaml @@ -97,7 +97,7 @@ microservice-chart: OTEL_TRACES_SAMPLER: "always_on" envSecret: # required - APPLICATIONINSIGHTS_CONNECTION_STRING: 'ai-u-connection-string' + APPLICATIONINSIGHTS_CONNECTION_STRING: 'azure-insight-connection-string' DB_PAGOPA_POSTGRES_PASSWORD: "db-cfg-password" DB_NEXI_POSTGRES_PASSWORD: "db-nexi-cfg-password" DB_NEXI_ORACLE_PASSWORD: "oracle-db-cfg-password" From 9191e56105c95b4597acb02743001c292c1ae69d Mon Sep 17 00:00:00 2001 From: pagopa-github-bot Date: Tue, 2 Apr 2024 15:28:37 +0000 Subject: [PATCH 04/54] Bump to version 0.0.3-2-NOD-744-deploy-uat [skip ci] --- helm/Chart.yaml | 4 ++-- helm/values-dev.yaml | 2 +- helm/values-prod.yaml | 2 +- helm/values-uat.yaml | 2 +- openapi/openapi.json | 2 +- pom.xml | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/helm/Chart.yaml b/helm/Chart.yaml index 1e48bb7..359c805 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: pagopa-node-cfg-sync description: Microservice that sync api-config-cache and standin configuration type: application -version: 0.53.0 -appVersion: 0.0.3-1-NOD-744-deploy-uat +version: 0.54.0 +appVersion: 0.0.3-2-NOD-744-deploy-uat dependencies: - name: microservice-chart version: 2.8.0 diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml index ee2d723..876f53f 100644 --- a/helm/values-dev.yaml +++ b/helm/values-dev.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3-1-NOD-744-deploy-uat" + tag: "0.0.3-2-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/helm/values-prod.yaml b/helm/values-prod.yaml index afccbdc..b564afb 100644 --- a/helm/values-prod.yaml +++ b/helm/values-prod.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3-1-NOD-744-deploy-uat" + tag: "0.0.3-2-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/helm/values-uat.yaml b/helm/values-uat.yaml index 80dce18..d3551bd 100644 --- a/helm/values-uat.yaml +++ b/helm/values-uat.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3-1-NOD-744-deploy-uat" + tag: "0.0.3-2-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/openapi/openapi.json b/openapi/openapi.json index fac74a5..28aa79a 100644 --- a/openapi/openapi.json +++ b/openapi/openapi.json @@ -4,7 +4,7 @@ "title": "cfg-sync", "description": "Microservice to update configuration schema of Nodo dei Pagamenti", "termsOfService": "https://www.pagopa.gov.it/", - "version": "0.0.3-1-NOD-744-deploy-uat" + "version": "0.0.3-2-NOD-744-deploy-uat" }, "servers": [ { diff --git a/pom.xml b/pom.xml index 61009a0..18509d0 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ it.gov.pagopa.node cfg-sync - 0.0.3-1-NOD-744-deploy-uat + 0.0.3-2-NOD-744-deploy-uat Microservice to update configuration schema of Nodo dei Pagamenti From 6fdb4b3cc7ce5fbd9d68d8b489375244892fe808 Mon Sep 17 00:00:00 2001 From: Francesco Cesareo Date: Tue, 2 Apr 2024 17:43:13 +0200 Subject: [PATCH 05/54] fix helm uat and prod --- helm/values-prod.yaml | 2 +- helm/values-uat.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/helm/values-prod.yaml b/helm/values-prod.yaml index afccbdc..f7fb365 100644 --- a/helm/values-prod.yaml +++ b/helm/values-prod.yaml @@ -74,7 +74,7 @@ microservice-chart: DB_NEXI_POSTGRES_SERVICE_IDENTIFIER: "NDP004DEV" DB_NEXI_POSTGRES_CONNECTION_TIMEOUT: "15000" DB_NEXI_POSTGRES_MAX_LIFETIME: "30000" - DB_CONFIG_URL: "jdbc:oracle:thin:@(DESCRIPTION=(ENABLE=BROKEN)(ADDRESS=(PROTOCOL=tcp)(PORT=1521)(HOST=db-nodo-pagamenti.p.db-nodo-pagamenti.com))(CONNECT_DATA=(SERVICE_NAME=NDPSPCP_NODO4_CFG))(SO_KEEPALIVE=true)(TCP_KEEPIDLE=60)(TCP_KEEPINTVL=30)(TCP_KEEPCNT=15))" + DB_NEXI_ORACLE_URL: "jdbc:oracle:thin:@(DESCRIPTION=(ENABLE=BROKEN)(ADDRESS=(PROTOCOL=tcp)(PORT=1521)(HOST=db-nodo-pagamenti.p.db-nodo-pagamenti.com))(CONNECT_DATA=(SERVICE_NAME=NDPSPCP_NODO4_CFG))(SO_KEEPALIVE=true)(TCP_KEEPIDLE=60)(TCP_KEEPINTVL=30)(TCP_KEEPCNT=15))" DB_NEXI_ORACLE_USER: "NODO4_CFG" DB_NEXI_ORACLE_ENABLED: "true" DB_NEXI_ORACLE_SERVICE_IDENTIFIER: "NDP003DEV" diff --git a/helm/values-uat.yaml b/helm/values-uat.yaml index 80dce18..19c722f 100644 --- a/helm/values-uat.yaml +++ b/helm/values-uat.yaml @@ -74,7 +74,7 @@ microservice-chart: DB_NEXI_POSTGRES_SERVICE_IDENTIFIER: "NDP004DEV" DB_NEXI_POSTGRES_CONNECTION_TIMEOUT: "15000" DB_NEXI_POSTGRES_MAX_LIFETIME: "30000" - DB_CONFIG_URL: "jdbc:oracle:thin:@(DESCRIPTION=(ENABLE=BROKEN)(ADDRESS=(PROTOCOL=tcp)(PORT=1524)(HOST=db-nodo-pagamenti.u.db-nodo-pagamenti.com))(CONNECT_DATA=(SERVICE_NAME=NDPSPCA_NODO4_CFG))(SO_KEEPALIVE=true)(TCP_KEEPIDLE=60)(TCP_KEEPINTVL=30)(TCP_KEEPCNT=15))" + DB_NEXI_ORACLE_URL: "jdbc:oracle:thin:@(DESCRIPTION=(ENABLE=BROKEN)(ADDRESS=(PROTOCOL=tcp)(PORT=1524)(HOST=db-nodo-pagamenti.u.db-nodo-pagamenti.com))(CONNECT_DATA=(SERVICE_NAME=NDPSPCA_NODO4_CFG))(SO_KEEPALIVE=true)(TCP_KEEPIDLE=60)(TCP_KEEPINTVL=30)(TCP_KEEPCNT=15))" DB_NEXI_ORACLE_USER: "NODO4_CFG" DB_NEXI_ORACLE_ENABLED: "true" DB_NEXI_ORACLE_SERVICE_IDENTIFIER: "NDP003DEV" From bf37164e3917c9eb5a8583c81b6aefc4ecd4bedd Mon Sep 17 00:00:00 2001 From: pagopa-github-bot Date: Tue, 2 Apr 2024 15:49:43 +0000 Subject: [PATCH 06/54] Bump to version 0.0.3-3-NOD-744-deploy-uat [skip ci] --- helm/Chart.yaml | 4 ++-- helm/values-dev.yaml | 2 +- helm/values-prod.yaml | 2 +- helm/values-uat.yaml | 2 +- openapi/openapi.json | 2 +- pom.xml | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/helm/Chart.yaml b/helm/Chart.yaml index 359c805..27ee641 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: pagopa-node-cfg-sync description: Microservice that sync api-config-cache and standin configuration type: application -version: 0.54.0 -appVersion: 0.0.3-2-NOD-744-deploy-uat +version: 0.55.0 +appVersion: 0.0.3-3-NOD-744-deploy-uat dependencies: - name: microservice-chart version: 2.8.0 diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml index 876f53f..a6ea3ec 100644 --- a/helm/values-dev.yaml +++ b/helm/values-dev.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3-2-NOD-744-deploy-uat" + tag: "0.0.3-3-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/helm/values-prod.yaml b/helm/values-prod.yaml index d517722..3c8417d 100644 --- a/helm/values-prod.yaml +++ b/helm/values-prod.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3-2-NOD-744-deploy-uat" + tag: "0.0.3-3-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/helm/values-uat.yaml b/helm/values-uat.yaml index 9bf3b90..7f0eb40 100644 --- a/helm/values-uat.yaml +++ b/helm/values-uat.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3-2-NOD-744-deploy-uat" + tag: "0.0.3-3-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/openapi/openapi.json b/openapi/openapi.json index 28aa79a..16fbe2e 100644 --- a/openapi/openapi.json +++ b/openapi/openapi.json @@ -4,7 +4,7 @@ "title": "cfg-sync", "description": "Microservice to update configuration schema of Nodo dei Pagamenti", "termsOfService": "https://www.pagopa.gov.it/", - "version": "0.0.3-2-NOD-744-deploy-uat" + "version": "0.0.3-3-NOD-744-deploy-uat" }, "servers": [ { diff --git a/pom.xml b/pom.xml index 18509d0..6cc4842 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ it.gov.pagopa.node cfg-sync - 0.0.3-2-NOD-744-deploy-uat + 0.0.3-3-NOD-744-deploy-uat Microservice to update configuration schema of Nodo dei Pagamenti From b29b31cc949c6b3821954cb28d8e5de8a4a6a59a Mon Sep 17 00:00:00 2001 From: Francesco Cesareo Date: Tue, 2 Apr 2024 18:14:24 +0200 Subject: [PATCH 07/54] fix helm --- helm/values-prod.yaml | 2 +- helm/values-uat.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/helm/values-prod.yaml b/helm/values-prod.yaml index d517722..fc1ce7a 100644 --- a/helm/values-prod.yaml +++ b/helm/values-prod.yaml @@ -80,7 +80,7 @@ microservice-chart: DB_NEXI_ORACLE_SERVICE_IDENTIFIER: "NDP003DEV" DB_NEXI_ORACLE_CONNECTION_TIMEOUT: "15000" DB_NEXI_ORACLE_MAX_LIFETIME: "30000" - DB_PAGOPA_POSTGRES_URL: "jdbc:postgresql://ndp.p.db-nodo-pagamenti.com:6432/nodo?sslmode=require&prepareThreshold=0¤tSchema=cfg" + DB_PAGOPA_POSTGRES_URL: "jdbc:postgresql://nodo-db.p.internal.postgresql.pagopa.it:6432/nodo?sslmode=require&prepareThreshold=0¤tSchema=cfg" DB_PAGOPA_POSTGRES_USER: "cfg" DB_PAGOPA_POSTGRES_ENABLED: "true" DB_PAGOPA_POSTGRES_SERVICE_IDENTIFIER: "NDP001DEV" diff --git a/helm/values-uat.yaml b/helm/values-uat.yaml index 9bf3b90..54fa7db 100644 --- a/helm/values-uat.yaml +++ b/helm/values-uat.yaml @@ -80,7 +80,7 @@ microservice-chart: DB_NEXI_ORACLE_SERVICE_IDENTIFIER: "NDP003DEV" DB_NEXI_ORACLE_CONNECTION_TIMEOUT: "15000" DB_NEXI_ORACLE_MAX_LIFETIME: "30000" - DB_PAGOPA_POSTGRES_URL: "jdbc:postgresql://ndp.u.db-nodo-pagamenti.com:6432/nodo?sslmode=require&prepareThreshold=0¤tSchema=cfg" + DB_PAGOPA_POSTGRES_URL: "jdbc:postgresql://nodo-db.u.internal.postgresql.pagopa.it:6432/nodo?sslmode=require&prepareThreshold=0¤tSchema=cfg" DB_PAGOPA_POSTGRES_USER: "cfg" DB_PAGOPA_POSTGRES_ENABLED: "true" DB_PAGOPA_POSTGRES_SERVICE_IDENTIFIER: "NDP001DEV" From f4875a030d20cf3ed34af74d6808511165fd4ed5 Mon Sep 17 00:00:00 2001 From: pagopa-github-bot Date: Tue, 2 Apr 2024 16:19:09 +0000 Subject: [PATCH 08/54] Bump to version 0.0.3-4-NOD-744-deploy-uat [skip ci] --- helm/Chart.yaml | 4 ++-- helm/values-dev.yaml | 2 +- helm/values-prod.yaml | 2 +- helm/values-uat.yaml | 2 +- openapi/openapi.json | 2 +- pom.xml | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/helm/Chart.yaml b/helm/Chart.yaml index 27ee641..690eb7f 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: pagopa-node-cfg-sync description: Microservice that sync api-config-cache and standin configuration type: application -version: 0.55.0 -appVersion: 0.0.3-3-NOD-744-deploy-uat +version: 0.56.0 +appVersion: 0.0.3-4-NOD-744-deploy-uat dependencies: - name: microservice-chart version: 2.8.0 diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml index a6ea3ec..70ba696 100644 --- a/helm/values-dev.yaml +++ b/helm/values-dev.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3-3-NOD-744-deploy-uat" + tag: "0.0.3-4-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/helm/values-prod.yaml b/helm/values-prod.yaml index e389fc9..e0c0aa6 100644 --- a/helm/values-prod.yaml +++ b/helm/values-prod.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3-3-NOD-744-deploy-uat" + tag: "0.0.3-4-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/helm/values-uat.yaml b/helm/values-uat.yaml index d74aa8d..78f69c1 100644 --- a/helm/values-uat.yaml +++ b/helm/values-uat.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3-3-NOD-744-deploy-uat" + tag: "0.0.3-4-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/openapi/openapi.json b/openapi/openapi.json index 16fbe2e..45b2c75 100644 --- a/openapi/openapi.json +++ b/openapi/openapi.json @@ -4,7 +4,7 @@ "title": "cfg-sync", "description": "Microservice to update configuration schema of Nodo dei Pagamenti", "termsOfService": "https://www.pagopa.gov.it/", - "version": "0.0.3-3-NOD-744-deploy-uat" + "version": "0.0.3-4-NOD-744-deploy-uat" }, "servers": [ { diff --git a/pom.xml b/pom.xml index 6cc4842..9f18574 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ it.gov.pagopa.node cfg-sync - 0.0.3-3-NOD-744-deploy-uat + 0.0.3-4-NOD-744-deploy-uat Microservice to update configuration schema of Nodo dei Pagamenti From f5b543721b9ed1412184452db24f3542e5883d9c Mon Sep 17 00:00:00 2001 From: Francesco Cesareo Date: Wed, 3 Apr 2024 19:31:00 +0200 Subject: [PATCH 09/54] test dockerfile --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 7f048f7..9175043 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,4 +26,4 @@ COPY --chown=spring:spring --from=builder /app/application/ ./ EXPOSE 8080 #ENTRYPOINT ["java","-javaagent:opentelemetry-javaagent.jar","--enable-preview","org.springframework.boot.loader.JarLauncher"] -ENTRYPOINT ["java", "--enable-preview","org.springframework.boot.loader.JarLauncher"] +#ENTRYPOINT ["java","-javaagent:/app/applicationinsights-agent.jar", "--enable-preview","org.springframework.boot.loader.JarLauncher"] From 7d44dcfc0fa72b19644712220040111d57a34f6f Mon Sep 17 00:00:00 2001 From: pagopa-github-bot Date: Wed, 3 Apr 2024 17:32:56 +0000 Subject: [PATCH 10/54] Bump to version 0.0.3-5-NOD-744-deploy-uat [skip ci] --- helm/Chart.yaml | 4 ++-- helm/values-dev.yaml | 2 +- helm/values-prod.yaml | 2 +- helm/values-uat.yaml | 2 +- openapi/openapi.json | 2 +- pom.xml | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/helm/Chart.yaml b/helm/Chart.yaml index 690eb7f..b1917cc 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: pagopa-node-cfg-sync description: Microservice that sync api-config-cache and standin configuration type: application -version: 0.56.0 -appVersion: 0.0.3-4-NOD-744-deploy-uat +version: 0.57.0 +appVersion: 0.0.3-5-NOD-744-deploy-uat dependencies: - name: microservice-chart version: 2.8.0 diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml index 70ba696..f2272f6 100644 --- a/helm/values-dev.yaml +++ b/helm/values-dev.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3-4-NOD-744-deploy-uat" + tag: "0.0.3-5-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/helm/values-prod.yaml b/helm/values-prod.yaml index e0c0aa6..2b78072 100644 --- a/helm/values-prod.yaml +++ b/helm/values-prod.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3-4-NOD-744-deploy-uat" + tag: "0.0.3-5-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/helm/values-uat.yaml b/helm/values-uat.yaml index 78f69c1..fec7626 100644 --- a/helm/values-uat.yaml +++ b/helm/values-uat.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3-4-NOD-744-deploy-uat" + tag: "0.0.3-5-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/openapi/openapi.json b/openapi/openapi.json index 45b2c75..5acbc70 100644 --- a/openapi/openapi.json +++ b/openapi/openapi.json @@ -4,7 +4,7 @@ "title": "cfg-sync", "description": "Microservice to update configuration schema of Nodo dei Pagamenti", "termsOfService": "https://www.pagopa.gov.it/", - "version": "0.0.3-4-NOD-744-deploy-uat" + "version": "0.0.3-5-NOD-744-deploy-uat" }, "servers": [ { diff --git a/pom.xml b/pom.xml index 9f18574..55e2211 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ it.gov.pagopa.node cfg-sync - 0.0.3-4-NOD-744-deploy-uat + 0.0.3-5-NOD-744-deploy-uat Microservice to update configuration schema of Nodo dei Pagamenti From 93ece3f1b880d360919f6e4bba24f78ab182295d Mon Sep 17 00:00:00 2001 From: Francesco Cesareo Date: Wed, 3 Apr 2024 19:39:14 +0200 Subject: [PATCH 11/54] test dockerfile --- Dockerfile | 4 +++- docker/run.sh | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 docker/run.sh diff --git a/Dockerfile b/Dockerfile index 9175043..9717089 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,5 +25,7 @@ COPY --chown=spring:spring --from=builder /app/application/ ./ EXPOSE 8080 +COPY --chown=spring:spring docker/run.sh ./run.sh +ENTRYPOINT ["./run.sh"] + #ENTRYPOINT ["java","-javaagent:opentelemetry-javaagent.jar","--enable-preview","org.springframework.boot.loader.JarLauncher"] -#ENTRYPOINT ["java","-javaagent:/app/applicationinsights-agent.jar", "--enable-preview","org.springframework.boot.loader.JarLauncher"] diff --git a/docker/run.sh b/docker/run.sh new file mode 100644 index 0000000..a4cd16e --- /dev/null +++ b/docker/run.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +exec java -javaagent:/applicationinsights-agent.jar ${JAVA_OPTS} org.springframework.boot.loader.JarLauncher "$@" \ No newline at end of file From 9787d361d411b9c8f75db72b70045ba30d5df8bc Mon Sep 17 00:00:00 2001 From: pagopa-github-bot Date: Wed, 3 Apr 2024 17:42:29 +0000 Subject: [PATCH 12/54] Bump to version 0.0.3-6-NOD-744-deploy-uat [skip ci] --- helm/Chart.yaml | 4 ++-- helm/values-dev.yaml | 2 +- helm/values-prod.yaml | 2 +- helm/values-uat.yaml | 2 +- openapi/openapi.json | 2 +- pom.xml | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/helm/Chart.yaml b/helm/Chart.yaml index b1917cc..ca9c996 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: pagopa-node-cfg-sync description: Microservice that sync api-config-cache and standin configuration type: application -version: 0.57.0 -appVersion: 0.0.3-5-NOD-744-deploy-uat +version: 0.58.0 +appVersion: 0.0.3-6-NOD-744-deploy-uat dependencies: - name: microservice-chart version: 2.8.0 diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml index f2272f6..27401e8 100644 --- a/helm/values-dev.yaml +++ b/helm/values-dev.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3-5-NOD-744-deploy-uat" + tag: "0.0.3-6-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/helm/values-prod.yaml b/helm/values-prod.yaml index 2b78072..93257f8 100644 --- a/helm/values-prod.yaml +++ b/helm/values-prod.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3-5-NOD-744-deploy-uat" + tag: "0.0.3-6-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/helm/values-uat.yaml b/helm/values-uat.yaml index fec7626..c8e5500 100644 --- a/helm/values-uat.yaml +++ b/helm/values-uat.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3-5-NOD-744-deploy-uat" + tag: "0.0.3-6-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/openapi/openapi.json b/openapi/openapi.json index 5acbc70..1e952f9 100644 --- a/openapi/openapi.json +++ b/openapi/openapi.json @@ -4,7 +4,7 @@ "title": "cfg-sync", "description": "Microservice to update configuration schema of Nodo dei Pagamenti", "termsOfService": "https://www.pagopa.gov.it/", - "version": "0.0.3-5-NOD-744-deploy-uat" + "version": "0.0.3-6-NOD-744-deploy-uat" }, "servers": [ { diff --git a/pom.xml b/pom.xml index 55e2211..a5a4bbb 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ it.gov.pagopa.node cfg-sync - 0.0.3-5-NOD-744-deploy-uat + 0.0.3-6-NOD-744-deploy-uat Microservice to update configuration schema of Nodo dei Pagamenti From c58c63ff5f5f817f455b4613fcce3ab832231f53 Mon Sep 17 00:00:00 2001 From: Francesco Cesareo Date: Mon, 8 Apr 2024 09:48:45 +0200 Subject: [PATCH 13/54] fix dockerfile --- .github/workflows/05h_deploy_with_github_runner.yml | 2 +- Dockerfile | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/05h_deploy_with_github_runner.yml b/.github/workflows/05h_deploy_with_github_runner.yml index c9a1fa6..f5d6569 100644 --- a/.github/workflows/05h_deploy_with_github_runner.yml +++ b/.github/workflows/05h_deploy_with_github_runner.yml @@ -114,7 +114,7 @@ jobs: shell: bash run: | cd ./infra - export ARM_CLIENT_ID="${{ secrets.CLIENT_ID }}" + export ARM_CLIENT_ID="${{ secrets.CD_CLIENT_ID }}" export ARM_SUBSCRIPTION_ID=$(az account show --query id --output tsv) export ARM_TENANT_ID=$(az account show --query tenantId --output tsv) export ARM_USE_OIDC=true diff --git a/Dockerfile b/Dockerfile index 9717089..b342bd3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,6 +14,8 @@ RUN java -Djarmode=layertools -jar application.jar extract FROM ghcr.io/pagopa/docker-base-springboot-openjdk17:v1.1.3@sha256:a4e970ef05ecf2081424a64707e7c20856bbc40ddb3e99b32a24cd74591817c4 +COPY --chown=spring:spring docker/run.sh ./app/run.sh + WORKDIR /app #ADD --chown=spring:spring https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/download/v1.25.1/opentelemetry-javaagent.jar . @@ -25,7 +27,6 @@ COPY --chown=spring:spring --from=builder /app/application/ ./ EXPOSE 8080 -COPY --chown=spring:spring docker/run.sh ./run.sh ENTRYPOINT ["./run.sh"] #ENTRYPOINT ["java","-javaagent:opentelemetry-javaagent.jar","--enable-preview","org.springframework.boot.loader.JarLauncher"] From 1c1d824a7e4cba52dd05d293f8cf9478b6281cb6 Mon Sep 17 00:00:00 2001 From: pagopa-github-bot Date: Mon, 8 Apr 2024 07:55:15 +0000 Subject: [PATCH 14/54] Bump to version 0.0.3-7-NOD-744-deploy-uat [skip ci] --- helm/Chart.yaml | 4 ++-- helm/values-dev.yaml | 2 +- helm/values-prod.yaml | 2 +- helm/values-uat.yaml | 2 +- openapi/openapi.json | 2 +- pom.xml | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/helm/Chart.yaml b/helm/Chart.yaml index ca9c996..4fd2407 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: pagopa-node-cfg-sync description: Microservice that sync api-config-cache and standin configuration type: application -version: 0.58.0 -appVersion: 0.0.3-6-NOD-744-deploy-uat +version: 0.59.0 +appVersion: 0.0.3-7-NOD-744-deploy-uat dependencies: - name: microservice-chart version: 2.8.0 diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml index 27401e8..59786a2 100644 --- a/helm/values-dev.yaml +++ b/helm/values-dev.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3-6-NOD-744-deploy-uat" + tag: "0.0.3-7-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/helm/values-prod.yaml b/helm/values-prod.yaml index 93257f8..7c967e2 100644 --- a/helm/values-prod.yaml +++ b/helm/values-prod.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3-6-NOD-744-deploy-uat" + tag: "0.0.3-7-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/helm/values-uat.yaml b/helm/values-uat.yaml index c8e5500..b5fecce 100644 --- a/helm/values-uat.yaml +++ b/helm/values-uat.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3-6-NOD-744-deploy-uat" + tag: "0.0.3-7-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/openapi/openapi.json b/openapi/openapi.json index 1e952f9..8845992 100644 --- a/openapi/openapi.json +++ b/openapi/openapi.json @@ -4,7 +4,7 @@ "title": "cfg-sync", "description": "Microservice to update configuration schema of Nodo dei Pagamenti", "termsOfService": "https://www.pagopa.gov.it/", - "version": "0.0.3-6-NOD-744-deploy-uat" + "version": "0.0.3-7-NOD-744-deploy-uat" }, "servers": [ { diff --git a/pom.xml b/pom.xml index a5a4bbb..41f0bb0 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ it.gov.pagopa.node cfg-sync - 0.0.3-6-NOD-744-deploy-uat + 0.0.3-7-NOD-744-deploy-uat Microservice to update configuration schema of Nodo dei Pagamenti From 6ca3dfddae0acc73fa5f40be2caf5c1cf046cc4e Mon Sep 17 00:00:00 2001 From: Francesco Cesareo Date: Mon, 8 Apr 2024 10:01:15 +0200 Subject: [PATCH 15/54] fix dockerfile --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index b342bd3..9934a54 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,7 +14,7 @@ RUN java -Djarmode=layertools -jar application.jar extract FROM ghcr.io/pagopa/docker-base-springboot-openjdk17:v1.1.3@sha256:a4e970ef05ecf2081424a64707e7c20856bbc40ddb3e99b32a24cd74591817c4 -COPY --chown=spring:spring docker/run.sh ./app/run.sh +COPY --chown=spring:spring --from=buildtime docker/run.sh ./app/run.sh WORKDIR /app #ADD --chown=spring:spring https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/download/v1.25.1/opentelemetry-javaagent.jar . @@ -27,6 +27,6 @@ COPY --chown=spring:spring --from=builder /app/application/ ./ EXPOSE 8080 -ENTRYPOINT ["./run.sh"] +ENTRYPOINT ["sh", "./run.sh"] #ENTRYPOINT ["java","-javaagent:opentelemetry-javaagent.jar","--enable-preview","org.springframework.boot.loader.JarLauncher"] From 458e600dfb5b08fe02ed15304ccdf736640b8696 Mon Sep 17 00:00:00 2001 From: pagopa-github-bot Date: Mon, 8 Apr 2024 08:17:12 +0000 Subject: [PATCH 16/54] Bump to version 0.0.3-8-NOD-744-deploy-uat [skip ci] --- helm/Chart.yaml | 4 ++-- helm/values-dev.yaml | 2 +- helm/values-prod.yaml | 2 +- helm/values-uat.yaml | 2 +- openapi/openapi.json | 2 +- pom.xml | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/helm/Chart.yaml b/helm/Chart.yaml index 4fd2407..7497282 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: pagopa-node-cfg-sync description: Microservice that sync api-config-cache and standin configuration type: application -version: 0.59.0 -appVersion: 0.0.3-7-NOD-744-deploy-uat +version: 0.60.0 +appVersion: 0.0.3-8-NOD-744-deploy-uat dependencies: - name: microservice-chart version: 2.8.0 diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml index 59786a2..1c2ce04 100644 --- a/helm/values-dev.yaml +++ b/helm/values-dev.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3-7-NOD-744-deploy-uat" + tag: "0.0.3-8-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/helm/values-prod.yaml b/helm/values-prod.yaml index 7c967e2..d79db75 100644 --- a/helm/values-prod.yaml +++ b/helm/values-prod.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3-7-NOD-744-deploy-uat" + tag: "0.0.3-8-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/helm/values-uat.yaml b/helm/values-uat.yaml index b5fecce..457eafe 100644 --- a/helm/values-uat.yaml +++ b/helm/values-uat.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3-7-NOD-744-deploy-uat" + tag: "0.0.3-8-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/openapi/openapi.json b/openapi/openapi.json index 8845992..216b34e 100644 --- a/openapi/openapi.json +++ b/openapi/openapi.json @@ -4,7 +4,7 @@ "title": "cfg-sync", "description": "Microservice to update configuration schema of Nodo dei Pagamenti", "termsOfService": "https://www.pagopa.gov.it/", - "version": "0.0.3-7-NOD-744-deploy-uat" + "version": "0.0.3-8-NOD-744-deploy-uat" }, "servers": [ { diff --git a/pom.xml b/pom.xml index 41f0bb0..4210bb2 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ it.gov.pagopa.node cfg-sync - 0.0.3-7-NOD-744-deploy-uat + 0.0.3-8-NOD-744-deploy-uat Microservice to update configuration schema of Nodo dei Pagamenti From 81df1758fa6ce307cdd542321afa59a37af97c64 Mon Sep 17 00:00:00 2001 From: Francesco Cesareo Date: Mon, 8 Apr 2024 10:50:52 +0200 Subject: [PATCH 17/54] fix dockerfile --- Dockerfile | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9934a54..92fa3e4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,19 +14,19 @@ RUN java -Djarmode=layertools -jar application.jar extract FROM ghcr.io/pagopa/docker-base-springboot-openjdk17:v1.1.3@sha256:a4e970ef05ecf2081424a64707e7c20856bbc40ddb3e99b32a24cd74591817c4 -COPY --chown=spring:spring --from=buildtime docker/run.sh ./app/run.sh - -WORKDIR /app +#COPY --chown=spring:spring --from=buildtime docker/run.sh ./app/run.sh +# +#WORKDIR /app #ADD --chown=spring:spring https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/download/v1.25.1/opentelemetry-javaagent.jar . -COPY --chown=spring:spring --from=builder /app/dependencies/ ./ -COPY --chown=spring:spring --from=builder /app/snapshot-dependencies/ ./ +#COPY --chown=spring:spring --from=builder /app/dependencies/ ./ +#COPY --chown=spring:spring --from=builder /app/snapshot-dependencies/ ./ # https://github.com/moby/moby/issues/37965#issuecomment-426853382 -COPY --chown=spring:spring --from=builder /app/spring-boot-loader/ ./ -COPY --chown=spring:spring --from=builder /app/application/ ./ +#COPY --chown=spring:spring --from=builder /app/spring-boot-loader/ ./ +#COPY --chown=spring:spring --from=builder /app/application/ ./ EXPOSE 8080 -ENTRYPOINT ["sh", "./run.sh"] +#ENTRYPOINT ["sh", "./run.sh"] #ENTRYPOINT ["java","-javaagent:opentelemetry-javaagent.jar","--enable-preview","org.springframework.boot.loader.JarLauncher"] From 51a0b92d054a1cec26b7db41094d6ce0f9ed28ae Mon Sep 17 00:00:00 2001 From: pagopa-github-bot Date: Mon, 8 Apr 2024 08:53:28 +0000 Subject: [PATCH 18/54] Bump to version 0.0.3-9-NOD-744-deploy-uat [skip ci] --- helm/Chart.yaml | 4 ++-- helm/values-dev.yaml | 2 +- helm/values-prod.yaml | 2 +- helm/values-uat.yaml | 2 +- openapi/openapi.json | 2 +- pom.xml | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/helm/Chart.yaml b/helm/Chart.yaml index 7497282..d95ab87 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: pagopa-node-cfg-sync description: Microservice that sync api-config-cache and standin configuration type: application -version: 0.60.0 -appVersion: 0.0.3-8-NOD-744-deploy-uat +version: 0.61.0 +appVersion: 0.0.3-9-NOD-744-deploy-uat dependencies: - name: microservice-chart version: 2.8.0 diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml index 1c2ce04..e3c2d0b 100644 --- a/helm/values-dev.yaml +++ b/helm/values-dev.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3-8-NOD-744-deploy-uat" + tag: "0.0.3-9-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/helm/values-prod.yaml b/helm/values-prod.yaml index d79db75..ed53c51 100644 --- a/helm/values-prod.yaml +++ b/helm/values-prod.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3-8-NOD-744-deploy-uat" + tag: "0.0.3-9-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/helm/values-uat.yaml b/helm/values-uat.yaml index 457eafe..395d8c0 100644 --- a/helm/values-uat.yaml +++ b/helm/values-uat.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3-8-NOD-744-deploy-uat" + tag: "0.0.3-9-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/openapi/openapi.json b/openapi/openapi.json index 216b34e..6dcfb4d 100644 --- a/openapi/openapi.json +++ b/openapi/openapi.json @@ -4,7 +4,7 @@ "title": "cfg-sync", "description": "Microservice to update configuration schema of Nodo dei Pagamenti", "termsOfService": "https://www.pagopa.gov.it/", - "version": "0.0.3-8-NOD-744-deploy-uat" + "version": "0.0.3-9-NOD-744-deploy-uat" }, "servers": [ { diff --git a/pom.xml b/pom.xml index 4210bb2..4ef6cfa 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ it.gov.pagopa.node cfg-sync - 0.0.3-8-NOD-744-deploy-uat + 0.0.3-9-NOD-744-deploy-uat Microservice to update configuration schema of Nodo dei Pagamenti From c8273b97fb00d617927a5c1fb573d2d347c7f6b7 Mon Sep 17 00:00:00 2001 From: Francesco Cesareo Date: Mon, 8 Apr 2024 10:57:09 +0200 Subject: [PATCH 19/54] fix dockerfile --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 92fa3e4..483ede5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,7 @@ RUN mvn clean package -DskipTests FROM amazoncorretto:17.0.10-alpine3.19@sha256:180e9c91bdbaad3599fedd2f492bf0d0335a9382835aa64669b2c2a8de7c9a22 as builder WORKDIR /app -COPY --from=buildtime /build/target/*.jar /app/application.jar +COPY --from=buildtime /build/target/*.jar ./application.jar RUN java -Djarmode=layertools -jar application.jar extract From 2e1d157eeaba9f6d2280b657147d6c25d396629b Mon Sep 17 00:00:00 2001 From: Francesco Cesareo Date: Mon, 8 Apr 2024 12:21:05 +0200 Subject: [PATCH 20/54] fix dockerfile --- Dockerfile | 1 - 1 file changed, 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 483ede5..147fa74 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,6 @@ RUN mvn clean package -DskipTests FROM amazoncorretto:17.0.10-alpine3.19@sha256:180e9c91bdbaad3599fedd2f492bf0d0335a9382835aa64669b2c2a8de7c9a22 as builder -WORKDIR /app COPY --from=buildtime /build/target/*.jar ./application.jar RUN java -Djarmode=layertools -jar application.jar extract From bfbeea1cc8b0036d30bdfafa656efa1c64a53006 Mon Sep 17 00:00:00 2001 From: pagopa-github-bot Date: Mon, 8 Apr 2024 10:23:15 +0000 Subject: [PATCH 21/54] Bump to version 0.0.3-10-NOD-744-deploy-uat [skip ci] --- helm/Chart.yaml | 4 ++-- helm/values-dev.yaml | 2 +- helm/values-prod.yaml | 2 +- helm/values-uat.yaml | 2 +- openapi/openapi.json | 2 +- pom.xml | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/helm/Chart.yaml b/helm/Chart.yaml index d95ab87..77f60d9 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: pagopa-node-cfg-sync description: Microservice that sync api-config-cache and standin configuration type: application -version: 0.61.0 -appVersion: 0.0.3-9-NOD-744-deploy-uat +version: 0.62.0 +appVersion: 0.0.3-10-NOD-744-deploy-uat dependencies: - name: microservice-chart version: 2.8.0 diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml index e3c2d0b..c9642ff 100644 --- a/helm/values-dev.yaml +++ b/helm/values-dev.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3-9-NOD-744-deploy-uat" + tag: "0.0.3-10-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/helm/values-prod.yaml b/helm/values-prod.yaml index ed53c51..68512fe 100644 --- a/helm/values-prod.yaml +++ b/helm/values-prod.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3-9-NOD-744-deploy-uat" + tag: "0.0.3-10-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/helm/values-uat.yaml b/helm/values-uat.yaml index 395d8c0..0e6fb65 100644 --- a/helm/values-uat.yaml +++ b/helm/values-uat.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3-9-NOD-744-deploy-uat" + tag: "0.0.3-10-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/openapi/openapi.json b/openapi/openapi.json index 6dcfb4d..4bf5837 100644 --- a/openapi/openapi.json +++ b/openapi/openapi.json @@ -4,7 +4,7 @@ "title": "cfg-sync", "description": "Microservice to update configuration schema of Nodo dei Pagamenti", "termsOfService": "https://www.pagopa.gov.it/", - "version": "0.0.3-9-NOD-744-deploy-uat" + "version": "0.0.3-10-NOD-744-deploy-uat" }, "servers": [ { diff --git a/pom.xml b/pom.xml index 4ef6cfa..749d839 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ it.gov.pagopa.node cfg-sync - 0.0.3-9-NOD-744-deploy-uat + 0.0.3-10-NOD-744-deploy-uat Microservice to update configuration schema of Nodo dei Pagamenti From 7524290089260127206e57daff04f9eded5749df Mon Sep 17 00:00:00 2001 From: Francesco Cesareo Date: Mon, 8 Apr 2024 12:29:58 +0200 Subject: [PATCH 22/54] fix dockerfile --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 147fa74..92fa3e4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,8 @@ RUN mvn clean package -DskipTests FROM amazoncorretto:17.0.10-alpine3.19@sha256:180e9c91bdbaad3599fedd2f492bf0d0335a9382835aa64669b2c2a8de7c9a22 as builder -COPY --from=buildtime /build/target/*.jar ./application.jar +WORKDIR /app +COPY --from=buildtime /build/target/*.jar /app/application.jar RUN java -Djarmode=layertools -jar application.jar extract From bf0adbb56d2b3d56add5aa5e8c261adf74b064bd Mon Sep 17 00:00:00 2001 From: pagopa-github-bot Date: Mon, 8 Apr 2024 10:33:07 +0000 Subject: [PATCH 23/54] Bump to version 0.0.3-11-NOD-744-deploy-uat [skip ci] --- helm/Chart.yaml | 4 ++-- helm/values-dev.yaml | 2 +- helm/values-prod.yaml | 2 +- helm/values-uat.yaml | 2 +- openapi/openapi.json | 2 +- pom.xml | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/helm/Chart.yaml b/helm/Chart.yaml index 77f60d9..a07b81c 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: pagopa-node-cfg-sync description: Microservice that sync api-config-cache and standin configuration type: application -version: 0.62.0 -appVersion: 0.0.3-10-NOD-744-deploy-uat +version: 0.63.0 +appVersion: 0.0.3-11-NOD-744-deploy-uat dependencies: - name: microservice-chart version: 2.8.0 diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml index c9642ff..364e550 100644 --- a/helm/values-dev.yaml +++ b/helm/values-dev.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3-10-NOD-744-deploy-uat" + tag: "0.0.3-11-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/helm/values-prod.yaml b/helm/values-prod.yaml index 68512fe..bf9fedb 100644 --- a/helm/values-prod.yaml +++ b/helm/values-prod.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3-10-NOD-744-deploy-uat" + tag: "0.0.3-11-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/helm/values-uat.yaml b/helm/values-uat.yaml index 0e6fb65..7c41f65 100644 --- a/helm/values-uat.yaml +++ b/helm/values-uat.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3-10-NOD-744-deploy-uat" + tag: "0.0.3-11-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/openapi/openapi.json b/openapi/openapi.json index 4bf5837..f84439b 100644 --- a/openapi/openapi.json +++ b/openapi/openapi.json @@ -4,7 +4,7 @@ "title": "cfg-sync", "description": "Microservice to update configuration schema of Nodo dei Pagamenti", "termsOfService": "https://www.pagopa.gov.it/", - "version": "0.0.3-10-NOD-744-deploy-uat" + "version": "0.0.3-11-NOD-744-deploy-uat" }, "servers": [ { diff --git a/pom.xml b/pom.xml index 749d839..0f93e19 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ it.gov.pagopa.node cfg-sync - 0.0.3-10-NOD-744-deploy-uat + 0.0.3-11-NOD-744-deploy-uat Microservice to update configuration schema of Nodo dei Pagamenti From 3e364daf43ef62fd2aaa2fa09deee5f91168c72a Mon Sep 17 00:00:00 2001 From: Francesco Cesareo Date: Mon, 8 Apr 2024 15:19:14 +0200 Subject: [PATCH 24/54] fix dockerfile --- Dockerfile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 92fa3e4..33167cd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,10 +12,14 @@ WORKDIR /app COPY --from=buildtime /build/target/*.jar /app/application.jar RUN java -Djarmode=layertools -jar application.jar extract - FROM ghcr.io/pagopa/docker-base-springboot-openjdk17:v1.1.3@sha256:a4e970ef05ecf2081424a64707e7c20856bbc40ddb3e99b32a24cd74591817c4 -#COPY --chown=spring:spring --from=buildtime docker/run.sh ./app/run.sh -# + +COPY --chown=spring:spring --from=builder /app/dependencies/ ./ +COPY --chown=spring:spring --from=builder /app/snapshot-dependencies/ ./ +# https://github.com/moby/moby/issues/37965#issuecomment-426853382 +COPY --chown=spring:spring --from=builder /app/spring-boot-loader/ ./ +COPY --chown=spring:spring --from=builder /app/application/ ./ + #WORKDIR /app #ADD --chown=spring:spring https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/download/v1.25.1/opentelemetry-javaagent.jar . @@ -27,6 +31,6 @@ FROM ghcr.io/pagopa/docker-base-springboot-openjdk17:v1.1.3@sha256:a4e970ef05ecf EXPOSE 8080 -#ENTRYPOINT ["sh", "./run.sh"] +ENTRYPOINT ["sh", "./run.sh"] #ENTRYPOINT ["java","-javaagent:opentelemetry-javaagent.jar","--enable-preview","org.springframework.boot.loader.JarLauncher"] From d015a94be71734766dc4fa90cb17d91857b5cb0c Mon Sep 17 00:00:00 2001 From: pagopa-github-bot Date: Mon, 8 Apr 2024 13:25:21 +0000 Subject: [PATCH 25/54] Bump to version 0.0.3-12-NOD-744-deploy-uat [skip ci] --- helm/Chart.yaml | 4 ++-- helm/values-dev.yaml | 2 +- helm/values-prod.yaml | 2 +- helm/values-uat.yaml | 2 +- openapi/openapi.json | 2 +- pom.xml | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/helm/Chart.yaml b/helm/Chart.yaml index a07b81c..559e031 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: pagopa-node-cfg-sync description: Microservice that sync api-config-cache and standin configuration type: application -version: 0.63.0 -appVersion: 0.0.3-11-NOD-744-deploy-uat +version: 0.64.0 +appVersion: 0.0.3-12-NOD-744-deploy-uat dependencies: - name: microservice-chart version: 2.8.0 diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml index 364e550..7c36c1e 100644 --- a/helm/values-dev.yaml +++ b/helm/values-dev.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3-11-NOD-744-deploy-uat" + tag: "0.0.3-12-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/helm/values-prod.yaml b/helm/values-prod.yaml index bf9fedb..379fbd4 100644 --- a/helm/values-prod.yaml +++ b/helm/values-prod.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3-11-NOD-744-deploy-uat" + tag: "0.0.3-12-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/helm/values-uat.yaml b/helm/values-uat.yaml index 7c41f65..fb4a06a 100644 --- a/helm/values-uat.yaml +++ b/helm/values-uat.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3-11-NOD-744-deploy-uat" + tag: "0.0.3-12-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/openapi/openapi.json b/openapi/openapi.json index f84439b..f00ac59 100644 --- a/openapi/openapi.json +++ b/openapi/openapi.json @@ -4,7 +4,7 @@ "title": "cfg-sync", "description": "Microservice to update configuration schema of Nodo dei Pagamenti", "termsOfService": "https://www.pagopa.gov.it/", - "version": "0.0.3-11-NOD-744-deploy-uat" + "version": "0.0.3-12-NOD-744-deploy-uat" }, "servers": [ { diff --git a/pom.xml b/pom.xml index 0f93e19..13745b8 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ it.gov.pagopa.node cfg-sync - 0.0.3-11-NOD-744-deploy-uat + 0.0.3-12-NOD-744-deploy-uat Microservice to update configuration schema of Nodo dei Pagamenti From 4ad4487bf29c418cdb6ef7f7e1af90db6c3d75f8 Mon Sep 17 00:00:00 2001 From: Francesco Cesareo Date: Mon, 8 Apr 2024 15:33:12 +0200 Subject: [PATCH 26/54] fix dockerfile --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 33167cd..368e6d6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,6 +17,7 @@ FROM ghcr.io/pagopa/docker-base-springboot-openjdk17:v1.1.3@sha256:a4e970ef05ecf COPY --chown=spring:spring --from=builder /app/dependencies/ ./ COPY --chown=spring:spring --from=builder /app/snapshot-dependencies/ ./ # https://github.com/moby/moby/issues/37965#issuecomment-426853382 +RUN true COPY --chown=spring:spring --from=builder /app/spring-boot-loader/ ./ COPY --chown=spring:spring --from=builder /app/application/ ./ From 4bab09299fce333ff3d306a51e018e5136db6b5b Mon Sep 17 00:00:00 2001 From: Francesco Cesareo Date: Mon, 8 Apr 2024 15:37:52 +0200 Subject: [PATCH 27/54] fix dockerfile --- helm/values-dev.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml index 364e550..8a1e21b 100644 --- a/helm/values-dev.yaml +++ b/helm/values-dev.yaml @@ -10,14 +10,14 @@ microservice-chart: httpGet: path: /actuator/health/liveness port: 8080 - initialDelaySeconds: 30 + initialDelaySeconds: 180 failureThreshold: 6 periodSeconds: 10 readinessProbe: httpGet: path: /actuator/health/readiness port: 8080 - initialDelaySeconds: 30 + initialDelaySeconds: 180 failureThreshold: 6 periodSeconds: 10 deployment: From be629b083ed20811e441321b8de275aec7cbc8db Mon Sep 17 00:00:00 2001 From: pagopa-github-bot Date: Mon, 8 Apr 2024 13:39:38 +0000 Subject: [PATCH 28/54] Bump to version 0.0.3-13-NOD-744-deploy-uat [skip ci] --- helm/Chart.yaml | 4 ++-- helm/values-dev.yaml | 2 +- helm/values-prod.yaml | 2 +- helm/values-uat.yaml | 2 +- openapi/openapi.json | 2 +- pom.xml | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/helm/Chart.yaml b/helm/Chart.yaml index 559e031..d41a939 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: pagopa-node-cfg-sync description: Microservice that sync api-config-cache and standin configuration type: application -version: 0.64.0 -appVersion: 0.0.3-12-NOD-744-deploy-uat +version: 0.65.0 +appVersion: 0.0.3-13-NOD-744-deploy-uat dependencies: - name: microservice-chart version: 2.8.0 diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml index ff9acd4..3426fa1 100644 --- a/helm/values-dev.yaml +++ b/helm/values-dev.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3-12-NOD-744-deploy-uat" + tag: "0.0.3-13-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/helm/values-prod.yaml b/helm/values-prod.yaml index 379fbd4..6e5f6ea 100644 --- a/helm/values-prod.yaml +++ b/helm/values-prod.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3-12-NOD-744-deploy-uat" + tag: "0.0.3-13-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/helm/values-uat.yaml b/helm/values-uat.yaml index fb4a06a..a5852aa 100644 --- a/helm/values-uat.yaml +++ b/helm/values-uat.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3-12-NOD-744-deploy-uat" + tag: "0.0.3-13-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/openapi/openapi.json b/openapi/openapi.json index f00ac59..25a974c 100644 --- a/openapi/openapi.json +++ b/openapi/openapi.json @@ -4,7 +4,7 @@ "title": "cfg-sync", "description": "Microservice to update configuration schema of Nodo dei Pagamenti", "termsOfService": "https://www.pagopa.gov.it/", - "version": "0.0.3-12-NOD-744-deploy-uat" + "version": "0.0.3-13-NOD-744-deploy-uat" }, "servers": [ { diff --git a/pom.xml b/pom.xml index 13745b8..db26c75 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ it.gov.pagopa.node cfg-sync - 0.0.3-12-NOD-744-deploy-uat + 0.0.3-13-NOD-744-deploy-uat Microservice to update configuration schema of Nodo dei Pagamenti From 83d6143d195724449fe7e0faac48004b0aeefa5f Mon Sep 17 00:00:00 2001 From: Francesco Cesareo Date: Mon, 8 Apr 2024 16:19:40 +0200 Subject: [PATCH 29/54] fix dockerfile --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 368e6d6..c6cf15c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -32,6 +32,6 @@ COPY --chown=spring:spring --from=builder /app/application/ ./ EXPOSE 8080 -ENTRYPOINT ["sh", "./run.sh"] +#ENTRYPOINT ["sh", "./run.sh"] #ENTRYPOINT ["java","-javaagent:opentelemetry-javaagent.jar","--enable-preview","org.springframework.boot.loader.JarLauncher"] From 8c0a3f2fffe85f1da1bd786414c45c52d376b521 Mon Sep 17 00:00:00 2001 From: pagopa-github-bot Date: Mon, 8 Apr 2024 14:21:07 +0000 Subject: [PATCH 30/54] Bump to version 0.0.3-14-NOD-744-deploy-uat [skip ci] --- helm/Chart.yaml | 4 ++-- helm/values-dev.yaml | 2 +- helm/values-prod.yaml | 2 +- helm/values-uat.yaml | 2 +- openapi/openapi.json | 2 +- pom.xml | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/helm/Chart.yaml b/helm/Chart.yaml index d41a939..76fd42c 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: pagopa-node-cfg-sync description: Microservice that sync api-config-cache and standin configuration type: application -version: 0.65.0 -appVersion: 0.0.3-13-NOD-744-deploy-uat +version: 0.66.0 +appVersion: 0.0.3-14-NOD-744-deploy-uat dependencies: - name: microservice-chart version: 2.8.0 diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml index 3426fa1..5122a8b 100644 --- a/helm/values-dev.yaml +++ b/helm/values-dev.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3-13-NOD-744-deploy-uat" + tag: "0.0.3-14-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/helm/values-prod.yaml b/helm/values-prod.yaml index 6e5f6ea..a061f5c 100644 --- a/helm/values-prod.yaml +++ b/helm/values-prod.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3-13-NOD-744-deploy-uat" + tag: "0.0.3-14-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/helm/values-uat.yaml b/helm/values-uat.yaml index a5852aa..3212117 100644 --- a/helm/values-uat.yaml +++ b/helm/values-uat.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3-13-NOD-744-deploy-uat" + tag: "0.0.3-14-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/openapi/openapi.json b/openapi/openapi.json index 25a974c..22e2499 100644 --- a/openapi/openapi.json +++ b/openapi/openapi.json @@ -4,7 +4,7 @@ "title": "cfg-sync", "description": "Microservice to update configuration schema of Nodo dei Pagamenti", "termsOfService": "https://www.pagopa.gov.it/", - "version": "0.0.3-13-NOD-744-deploy-uat" + "version": "0.0.3-14-NOD-744-deploy-uat" }, "servers": [ { diff --git a/pom.xml b/pom.xml index db26c75..d5a4c51 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ it.gov.pagopa.node cfg-sync - 0.0.3-13-NOD-744-deploy-uat + 0.0.3-14-NOD-744-deploy-uat Microservice to update configuration schema of Nodo dei Pagamenti From 3c960361660b7a8fac26407415cd0d3ddf7ee7e5 Mon Sep 17 00:00:00 2001 From: Francesco Cesareo Date: Mon, 8 Apr 2024 16:31:57 +0200 Subject: [PATCH 31/54] fix dockerfile --- Dockerfile | 8 +++++--- helm/values-dev.yaml | 10 +++++----- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index c6cf15c..22f716e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,15 +13,17 @@ COPY --from=buildtime /build/target/*.jar /app/application.jar RUN java -Djarmode=layertools -jar application.jar extract FROM ghcr.io/pagopa/docker-base-springboot-openjdk17:v1.1.3@sha256:a4e970ef05ecf2081424a64707e7c20856bbc40ddb3e99b32a24cd74591817c4 - +WORKDIR /app COPY --chown=spring:spring --from=builder /app/dependencies/ ./ COPY --chown=spring:spring --from=builder /app/snapshot-dependencies/ ./ +COPY --chown=spring:spring ./applicationinsights-agent.jar /app/applicationinsights-agent.jar +COPY --chown=spring:spring ./applicationinsights.json /app/applicationinsights.json # https://github.com/moby/moby/issues/37965#issuecomment-426853382 RUN true COPY --chown=spring:spring --from=builder /app/spring-boot-loader/ ./ COPY --chown=spring:spring --from=builder /app/application/ ./ -#WORKDIR /app + #ADD --chown=spring:spring https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/download/v1.25.1/opentelemetry-javaagent.jar . #COPY --chown=spring:spring --from=builder /app/dependencies/ ./ @@ -32,6 +34,6 @@ COPY --chown=spring:spring --from=builder /app/application/ ./ EXPOSE 8080 -#ENTRYPOINT ["sh", "./run.sh"] +ENTRYPOINT ["sh", "./run.sh"] #ENTRYPOINT ["java","-javaagent:opentelemetry-javaagent.jar","--enable-preview","org.springframework.boot.loader.JarLauncher"] diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml index 3426fa1..87f6b87 100644 --- a/helm/values-dev.yaml +++ b/helm/values-dev.yaml @@ -10,14 +10,14 @@ microservice-chart: httpGet: path: /actuator/health/liveness port: 8080 - initialDelaySeconds: 180 + initialDelaySeconds: 30 failureThreshold: 6 periodSeconds: 10 readinessProbe: httpGet: path: /actuator/health/readiness port: 8080 - initialDelaySeconds: 180 + initialDelaySeconds: 30 failureThreshold: 6 periodSeconds: 10 deployment: @@ -64,9 +64,9 @@ microservice-chart: envConfig: WEBSITE_SITE_NAME: 'pagopa-node-cfg-sync' ENV: 'azure-dev' - APP_LOGGING_LEVEL: 'INFO' - HIKARI_LOGGING_LEVEL: 'INFO' - DEFAULT_LOGGING_LEVEL: 'INFO' + APP_LOGGING_LEVEL: 'DEBUG' + HIKARI_LOGGING_LEVEL: 'DEBUG' + DEFAULT_LOGGING_LEVEL: 'DEBUG' CORS_CONFIGURATION: '{"origins": ["*"], "methods": ["*"]}' DB_NEXI_POSTGRES_URL: "jdbc:postgresql://db-postgres-ndp.d.db-nodo-pagamenti.com:5444/ndpspct?prepareThreshold=0¤tSchema=NODO4_CFG" DB_NEXI_POSTGRES_USER: "pp_nodo4_cfg" From 2345757578efc06579dea339b14ed3cdcd095ebb Mon Sep 17 00:00:00 2001 From: Francesco Cesareo Date: Mon, 8 Apr 2024 16:33:07 +0200 Subject: [PATCH 32/54] fix dockerfile --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 22f716e..f083083 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,8 +16,9 @@ FROM ghcr.io/pagopa/docker-base-springboot-openjdk17:v1.1.3@sha256:a4e970ef05ecf WORKDIR /app COPY --chown=spring:spring --from=builder /app/dependencies/ ./ COPY --chown=spring:spring --from=builder /app/snapshot-dependencies/ ./ -COPY --chown=spring:spring ./applicationinsights-agent.jar /app/applicationinsights-agent.jar -COPY --chown=spring:spring ./applicationinsights.json /app/applicationinsights.json +COPY --chown=spring:spring ../applicationinsights-agent.jar /app/applicationinsights-agent.jar +COPY --chown=spring:spring ../applicationinsights.json /app/applicationinsights.json +COPY --chown=spring:spring ../run.sh /app/run.sh # https://github.com/moby/moby/issues/37965#issuecomment-426853382 RUN true COPY --chown=spring:spring --from=builder /app/spring-boot-loader/ ./ From 313c5e4337df08d42dd37119019a70e87b66bbf3 Mon Sep 17 00:00:00 2001 From: Francesco Cesareo Date: Mon, 8 Apr 2024 16:34:09 +0200 Subject: [PATCH 33/54] disabled notification --- .github/workflows/05_release_deploy.yml | 36 ++++++++++++------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/05_release_deploy.yml b/.github/workflows/05_release_deploy.yml index 7886306..5095f5f 100644 --- a/.github/workflows/05_release_deploy.yml +++ b/.github/workflows/05_release_deploy.yml @@ -147,21 +147,21 @@ jobs: target: ${{ needs.setup.outputs.environment }} secrets: inherit - notify: - name: Notify - needs: [ setup, release, deploy_aks ] - runs-on: ubuntu-latest - if: always() - steps: - - name: Report Status - if: always() - uses: ravsamhq/notify-slack-action@v2 - with: - status: ${{ needs.deploy_aks.result }} - token: ${{ secrets.GITHUB_TOKEN }} - notification_title: 'New Release on ${{ needs.setup.outputs.environment }} for ${{ needs.release.outputs.version }} has {status_message}' - message_format: '{emoji} <{run_url}|{workflow}> {status_message} in <{repo_url}|{repo}>' - footer: 'Linked to <{workflow_url}| workflow file>' - icon_success: ':white_check_mark:' - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} +# notify: +# name: Notify +# needs: [ setup, release, deploy_aks ] +# runs-on: ubuntu-latest +# if: always() +# steps: +# - name: Report Status +# if: always() +# uses: ravsamhq/notify-slack-action@v2 +# with: +# status: ${{ needs.deploy_aks.result }} +# token: ${{ secrets.GITHUB_TOKEN }} +# notification_title: 'New Release on ${{ needs.setup.outputs.environment }} for ${{ needs.release.outputs.version }} has {status_message}' +# message_format: '{emoji} <{run_url}|{workflow}> {status_message} in <{repo_url}|{repo}>' +# footer: 'Linked to <{workflow_url}| workflow file>' +# icon_success: ':white_check_mark:' +# env: +# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} From e3a83b9dfb8112fcb83ab229879710ebeed9139d Mon Sep 17 00:00:00 2001 From: pagopa-github-bot Date: Mon, 8 Apr 2024 14:36:53 +0000 Subject: [PATCH 34/54] Bump to version 0.0.3-15-NOD-744-deploy-uat [skip ci] --- helm/Chart.yaml | 4 ++-- helm/values-dev.yaml | 2 +- helm/values-prod.yaml | 2 +- helm/values-uat.yaml | 2 +- openapi/openapi.json | 2 +- pom.xml | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/helm/Chart.yaml b/helm/Chart.yaml index 76fd42c..56c52d3 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: pagopa-node-cfg-sync description: Microservice that sync api-config-cache and standin configuration type: application -version: 0.66.0 -appVersion: 0.0.3-14-NOD-744-deploy-uat +version: 0.67.0 +appVersion: 0.0.3-15-NOD-744-deploy-uat dependencies: - name: microservice-chart version: 2.8.0 diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml index 6d951e3..67340d2 100644 --- a/helm/values-dev.yaml +++ b/helm/values-dev.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3-14-NOD-744-deploy-uat" + tag: "0.0.3-15-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/helm/values-prod.yaml b/helm/values-prod.yaml index a061f5c..abaff7b 100644 --- a/helm/values-prod.yaml +++ b/helm/values-prod.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3-14-NOD-744-deploy-uat" + tag: "0.0.3-15-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/helm/values-uat.yaml b/helm/values-uat.yaml index 3212117..3b92f6d 100644 --- a/helm/values-uat.yaml +++ b/helm/values-uat.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3-14-NOD-744-deploy-uat" + tag: "0.0.3-15-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/openapi/openapi.json b/openapi/openapi.json index 22e2499..b06287d 100644 --- a/openapi/openapi.json +++ b/openapi/openapi.json @@ -4,7 +4,7 @@ "title": "cfg-sync", "description": "Microservice to update configuration schema of Nodo dei Pagamenti", "termsOfService": "https://www.pagopa.gov.it/", - "version": "0.0.3-14-NOD-744-deploy-uat" + "version": "0.0.3-15-NOD-744-deploy-uat" }, "servers": [ { diff --git a/pom.xml b/pom.xml index d5a4c51..8c251bf 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ it.gov.pagopa.node cfg-sync - 0.0.3-14-NOD-744-deploy-uat + 0.0.3-15-NOD-744-deploy-uat Microservice to update configuration schema of Nodo dei Pagamenti From 6487c98ba34dc306d41b61c6a9a0a18cc9e94eaf Mon Sep 17 00:00:00 2001 From: Francesco Cesareo Date: Mon, 8 Apr 2024 16:42:24 +0200 Subject: [PATCH 35/54] fix dockerfile --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index f083083..f23fcc3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,7 +18,7 @@ COPY --chown=spring:spring --from=builder /app/dependencies/ ./ COPY --chown=spring:spring --from=builder /app/snapshot-dependencies/ ./ COPY --chown=spring:spring ../applicationinsights-agent.jar /app/applicationinsights-agent.jar COPY --chown=spring:spring ../applicationinsights.json /app/applicationinsights.json -COPY --chown=spring:spring ../run.sh /app/run.sh +COPY --chown=spring:spring ../docker/run.sh /app/run.sh # https://github.com/moby/moby/issues/37965#issuecomment-426853382 RUN true COPY --chown=spring:spring --from=builder /app/spring-boot-loader/ ./ @@ -35,6 +35,6 @@ COPY --chown=spring:spring --from=builder /app/application/ ./ EXPOSE 8080 -ENTRYPOINT ["sh", "./run.sh"] +ENTRYPOINT ["sh", "run.sh"] #ENTRYPOINT ["java","-javaagent:opentelemetry-javaagent.jar","--enable-preview","org.springframework.boot.loader.JarLauncher"] From f94463fda6974029559e1034833e13e58b648897 Mon Sep 17 00:00:00 2001 From: Francesco Cesareo Date: Mon, 8 Apr 2024 17:09:38 +0200 Subject: [PATCH 36/54] fix dockerfile --- Dockerfile | 29 ++++++----------------------- 1 file changed, 6 insertions(+), 23 deletions(-) diff --git a/Dockerfile b/Dockerfile index f23fcc3..d4b68f7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,35 +6,18 @@ WORKDIR /build COPY . . RUN mvn clean package -DskipTests - FROM amazoncorretto:17.0.10-alpine3.19@sha256:180e9c91bdbaad3599fedd2f492bf0d0335a9382835aa64669b2c2a8de7c9a22 as builder -WORKDIR /app -COPY --from=buildtime /build/target/*.jar /app/application.jar +COPY --from=buildtime /build/target/*.jar application.jar RUN java -Djarmode=layertools -jar application.jar extract FROM ghcr.io/pagopa/docker-base-springboot-openjdk17:v1.1.3@sha256:a4e970ef05ecf2081424a64707e7c20856bbc40ddb3e99b32a24cd74591817c4 -WORKDIR /app -COPY --chown=spring:spring --from=builder /app/dependencies/ ./ -COPY --chown=spring:spring --from=builder /app/snapshot-dependencies/ ./ -COPY --chown=spring:spring ../applicationinsights-agent.jar /app/applicationinsights-agent.jar -COPY --chown=spring:spring ../applicationinsights.json /app/applicationinsights.json -COPY --chown=spring:spring ../docker/run.sh /app/run.sh +COPY --chown=spring:spring --from=builder dependencies/ ./ +COPY --chown=spring:spring --from=builder snapshot-dependencies/ ./ +RUN true # https://github.com/moby/moby/issues/37965#issuecomment-426853382 RUN true -COPY --chown=spring:spring --from=builder /app/spring-boot-loader/ ./ -COPY --chown=spring:spring --from=builder /app/application/ ./ +COPY --chown=spring:spring --from=builder spring-boot-loader/ ./ +COPY --chown=spring:spring --from=builder application/ ./ -#ADD --chown=spring:spring https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/download/v1.25.1/opentelemetry-javaagent.jar . - -#COPY --chown=spring:spring --from=builder /app/dependencies/ ./ -#COPY --chown=spring:spring --from=builder /app/snapshot-dependencies/ ./ -# https://github.com/moby/moby/issues/37965#issuecomment-426853382 -#COPY --chown=spring:spring --from=builder /app/spring-boot-loader/ ./ -#COPY --chown=spring:spring --from=builder /app/application/ ./ - EXPOSE 8080 - -ENTRYPOINT ["sh", "run.sh"] - -#ENTRYPOINT ["java","-javaagent:opentelemetry-javaagent.jar","--enable-preview","org.springframework.boot.loader.JarLauncher"] From a1089c392e083209e97bfb5596c8deaa37ebf884 Mon Sep 17 00:00:00 2001 From: pagopa-github-bot Date: Mon, 8 Apr 2024 15:11:28 +0000 Subject: [PATCH 37/54] Bump to version 0.0.3-16-NOD-744-deploy-uat [skip ci] --- helm/Chart.yaml | 4 ++-- helm/values-dev.yaml | 2 +- helm/values-prod.yaml | 2 +- helm/values-uat.yaml | 2 +- openapi/openapi.json | 2 +- pom.xml | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/helm/Chart.yaml b/helm/Chart.yaml index 56c52d3..c935188 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: pagopa-node-cfg-sync description: Microservice that sync api-config-cache and standin configuration type: application -version: 0.67.0 -appVersion: 0.0.3-15-NOD-744-deploy-uat +version: 0.68.0 +appVersion: 0.0.3-16-NOD-744-deploy-uat dependencies: - name: microservice-chart version: 2.8.0 diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml index 67340d2..7efa9bc 100644 --- a/helm/values-dev.yaml +++ b/helm/values-dev.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3-15-NOD-744-deploy-uat" + tag: "0.0.3-16-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/helm/values-prod.yaml b/helm/values-prod.yaml index abaff7b..d8577da 100644 --- a/helm/values-prod.yaml +++ b/helm/values-prod.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3-15-NOD-744-deploy-uat" + tag: "0.0.3-16-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/helm/values-uat.yaml b/helm/values-uat.yaml index 3b92f6d..2f575ae 100644 --- a/helm/values-uat.yaml +++ b/helm/values-uat.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3-15-NOD-744-deploy-uat" + tag: "0.0.3-16-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/openapi/openapi.json b/openapi/openapi.json index b06287d..5ada08d 100644 --- a/openapi/openapi.json +++ b/openapi/openapi.json @@ -4,7 +4,7 @@ "title": "cfg-sync", "description": "Microservice to update configuration schema of Nodo dei Pagamenti", "termsOfService": "https://www.pagopa.gov.it/", - "version": "0.0.3-15-NOD-744-deploy-uat" + "version": "0.0.3-16-NOD-744-deploy-uat" }, "servers": [ { diff --git a/pom.xml b/pom.xml index 8c251bf..7b83eaf 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ it.gov.pagopa.node cfg-sync - 0.0.3-15-NOD-744-deploy-uat + 0.0.3-16-NOD-744-deploy-uat Microservice to update configuration schema of Nodo dei Pagamenti From 20d8af345ef2a9cf49f5d9d4b1bed23433129037 Mon Sep 17 00:00:00 2001 From: Francesco Cesareo Date: Mon, 8 Apr 2024 17:32:53 +0200 Subject: [PATCH 38/54] fix dockerfile --- Dockerfile | 20 +++++++++++++------- docker/applicationinsights.json | 6 ++++++ helm/values-dev.yaml | 4 ++-- 3 files changed, 21 insertions(+), 9 deletions(-) create mode 100644 docker/applicationinsights.json diff --git a/Dockerfile b/Dockerfile index d4b68f7..506db00 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,14 +10,20 @@ FROM amazoncorretto:17.0.10-alpine3.19@sha256:180e9c91bdbaad3599fedd2f492bf0d033 COPY --from=buildtime /build/target/*.jar application.jar RUN java -Djarmode=layertools -jar application.jar extract -FROM ghcr.io/pagopa/docker-base-springboot-openjdk17:v1.1.3@sha256:a4e970ef05ecf2081424a64707e7c20856bbc40ddb3e99b32a24cd74591817c4 -COPY --chown=spring:spring --from=builder dependencies/ ./ -COPY --chown=spring:spring --from=builder snapshot-dependencies/ ./ -RUN true +#FROM ghcr.io/pagopa/docker-base-springboot-openjdk17:v1.1.3@sha256:a4e970ef05ecf2081424a64707e7c20856bbc40ddb3e99b32a24cd74591817c4 +#COPY --chown=spring:spring --from=builder dependencies/ ./ +#COPY --chown=spring:spring --from=builder snapshot-dependencies/ ./ # https://github.com/moby/moby/issues/37965#issuecomment-426853382 -RUN true -COPY --chown=spring:spring --from=builder spring-boot-loader/ ./ -COPY --chown=spring:spring --from=builder application/ ./ +#RUN true +#COPY --chown=spring:spring --from=builder spring-boot-loader/ ./ +#COPY --chown=spring:spring --from=builder application/ ./ +# https://github.com/microsoft/ApplicationInsights-Java/releases +ADD --chown=spring:spring https://github.com/microsoft/ApplicationInsights-Java/releases/download/3.4.19/applicationinsights-agent-3.4.19.jar /applicationinsights-agent.jar +COPY --chown=spring:spring docker/applicationinsights.json ./applicationinsights.json +COPY --chown=spring:spring docker/run.sh ./run.sh +RUN chmod +x ./run.sh EXPOSE 8080 + +ENTRYPOINT ["./run.sh"] diff --git a/docker/applicationinsights.json b/docker/applicationinsights.json new file mode 100644 index 0000000..e7fe611 --- /dev/null +++ b/docker/applicationinsights.json @@ -0,0 +1,6 @@ +{ + "selfDiagnostics": { + "destination": "console", + "level": "INFO" + } +} diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml index 7efa9bc..1446ce0 100644 --- a/helm/values-dev.yaml +++ b/helm/values-dev.yaml @@ -64,9 +64,9 @@ microservice-chart: envConfig: WEBSITE_SITE_NAME: 'pagopa-node-cfg-sync' ENV: 'azure-dev' - APP_LOGGING_LEVEL: 'DEBUG' + APP_LOGGING_LEVEL: 'INFO' HIKARI_LOGGING_LEVEL: 'DEBUG' - DEFAULT_LOGGING_LEVEL: 'DEBUG' + DEFAULT_LOGGING_LEVEL: 'INFO' CORS_CONFIGURATION: '{"origins": ["*"], "methods": ["*"]}' DB_NEXI_POSTGRES_URL: "jdbc:postgresql://db-postgres-ndp.d.db-nodo-pagamenti.com:5444/ndpspct?prepareThreshold=0¤tSchema=NODO4_CFG" DB_NEXI_POSTGRES_USER: "pp_nodo4_cfg" From 397826977b9a3d344b9ed3b77009aa7e52be1733 Mon Sep 17 00:00:00 2001 From: pagopa-github-bot Date: Mon, 8 Apr 2024 15:34:49 +0000 Subject: [PATCH 39/54] Bump to version 0.0.3-17-NOD-744-deploy-uat [skip ci] --- helm/Chart.yaml | 4 ++-- helm/values-dev.yaml | 2 +- helm/values-prod.yaml | 2 +- helm/values-uat.yaml | 2 +- openapi/openapi.json | 2 +- pom.xml | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/helm/Chart.yaml b/helm/Chart.yaml index c935188..a3fb167 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: pagopa-node-cfg-sync description: Microservice that sync api-config-cache and standin configuration type: application -version: 0.68.0 -appVersion: 0.0.3-16-NOD-744-deploy-uat +version: 0.69.0 +appVersion: 0.0.3-17-NOD-744-deploy-uat dependencies: - name: microservice-chart version: 2.8.0 diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml index 1446ce0..0da88d8 100644 --- a/helm/values-dev.yaml +++ b/helm/values-dev.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3-16-NOD-744-deploy-uat" + tag: "0.0.3-17-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/helm/values-prod.yaml b/helm/values-prod.yaml index d8577da..345d1b2 100644 --- a/helm/values-prod.yaml +++ b/helm/values-prod.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3-16-NOD-744-deploy-uat" + tag: "0.0.3-17-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/helm/values-uat.yaml b/helm/values-uat.yaml index 2f575ae..733ce52 100644 --- a/helm/values-uat.yaml +++ b/helm/values-uat.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3-16-NOD-744-deploy-uat" + tag: "0.0.3-17-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/openapi/openapi.json b/openapi/openapi.json index 5ada08d..7b0334f 100644 --- a/openapi/openapi.json +++ b/openapi/openapi.json @@ -4,7 +4,7 @@ "title": "cfg-sync", "description": "Microservice to update configuration schema of Nodo dei Pagamenti", "termsOfService": "https://www.pagopa.gov.it/", - "version": "0.0.3-16-NOD-744-deploy-uat" + "version": "0.0.3-17-NOD-744-deploy-uat" }, "servers": [ { diff --git a/pom.xml b/pom.xml index 7b83eaf..fe2deee 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ it.gov.pagopa.node cfg-sync - 0.0.3-16-NOD-744-deploy-uat + 0.0.3-17-NOD-744-deploy-uat Microservice to update configuration schema of Nodo dei Pagamenti From c3a6e92557e0eb46768984de81098571adb980c0 Mon Sep 17 00:00:00 2001 From: Francesco Cesareo Date: Mon, 8 Apr 2024 17:46:02 +0200 Subject: [PATCH 40/54] fix dockerfile --- docker/run.sh | 2 +- helm/values-dev.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/run.sh b/docker/run.sh index a4cd16e..7466197 100644 --- a/docker/run.sh +++ b/docker/run.sh @@ -1,3 +1,3 @@ #!/bin/sh - +ls -la exec java -javaagent:/applicationinsights-agent.jar ${JAVA_OPTS} org.springframework.boot.loader.JarLauncher "$@" \ No newline at end of file diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml index 0da88d8..fc2a8cd 100644 --- a/helm/values-dev.yaml +++ b/helm/values-dev.yaml @@ -10,14 +10,14 @@ microservice-chart: httpGet: path: /actuator/health/liveness port: 8080 - initialDelaySeconds: 30 + initialDelaySeconds: 180 failureThreshold: 6 periodSeconds: 10 readinessProbe: httpGet: path: /actuator/health/readiness port: 8080 - initialDelaySeconds: 30 + initialDelaySeconds: 180 failureThreshold: 6 periodSeconds: 10 deployment: From 8f3495b71ed5e8d64004f4982e3fe741ff6c7fc1 Mon Sep 17 00:00:00 2001 From: Francesco Cesareo Date: Mon, 8 Apr 2024 17:59:32 +0200 Subject: [PATCH 41/54] fix dockerfile --- Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Dockerfile b/Dockerfile index 506db00..99f15b0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,6 +18,12 @@ RUN java -Djarmode=layertools -jar application.jar extract #COPY --chown=spring:spring --from=builder spring-boot-loader/ ./ #COPY --chown=spring:spring --from=builder application/ ./ +COPY --chown=spring:spring dependencies/ ./ +COPY --chown=spring:spring snapshot-dependencies/ ./ +RUN true +COPY --chown=spring:spring spring-boot-loader ./ +COPY --chown=spring:spring application/ ./ + # https://github.com/microsoft/ApplicationInsights-Java/releases ADD --chown=spring:spring https://github.com/microsoft/ApplicationInsights-Java/releases/download/3.4.19/applicationinsights-agent-3.4.19.jar /applicationinsights-agent.jar COPY --chown=spring:spring docker/applicationinsights.json ./applicationinsights.json From 460866a8eb28450f22440c9e4798596af6b421a0 Mon Sep 17 00:00:00 2001 From: pagopa-github-bot Date: Mon, 8 Apr 2024 16:01:39 +0000 Subject: [PATCH 42/54] Bump to version 0.0.3-18-NOD-744-deploy-uat [skip ci] --- helm/Chart.yaml | 4 ++-- helm/values-dev.yaml | 2 +- helm/values-prod.yaml | 2 +- helm/values-uat.yaml | 2 +- openapi/openapi.json | 2 +- pom.xml | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/helm/Chart.yaml b/helm/Chart.yaml index a3fb167..f354c76 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: pagopa-node-cfg-sync description: Microservice that sync api-config-cache and standin configuration type: application -version: 0.69.0 -appVersion: 0.0.3-17-NOD-744-deploy-uat +version: 0.70.0 +appVersion: 0.0.3-18-NOD-744-deploy-uat dependencies: - name: microservice-chart version: 2.8.0 diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml index fc2a8cd..795331d 100644 --- a/helm/values-dev.yaml +++ b/helm/values-dev.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3-17-NOD-744-deploy-uat" + tag: "0.0.3-18-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/helm/values-prod.yaml b/helm/values-prod.yaml index 345d1b2..240ee50 100644 --- a/helm/values-prod.yaml +++ b/helm/values-prod.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3-17-NOD-744-deploy-uat" + tag: "0.0.3-18-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/helm/values-uat.yaml b/helm/values-uat.yaml index 733ce52..d3e139c 100644 --- a/helm/values-uat.yaml +++ b/helm/values-uat.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3-17-NOD-744-deploy-uat" + tag: "0.0.3-18-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/openapi/openapi.json b/openapi/openapi.json index 7b0334f..4f01bd9 100644 --- a/openapi/openapi.json +++ b/openapi/openapi.json @@ -4,7 +4,7 @@ "title": "cfg-sync", "description": "Microservice to update configuration schema of Nodo dei Pagamenti", "termsOfService": "https://www.pagopa.gov.it/", - "version": "0.0.3-17-NOD-744-deploy-uat" + "version": "0.0.3-18-NOD-744-deploy-uat" }, "servers": [ { diff --git a/pom.xml b/pom.xml index fe2deee..f1de406 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ it.gov.pagopa.node cfg-sync - 0.0.3-17-NOD-744-deploy-uat + 0.0.3-18-NOD-744-deploy-uat Microservice to update configuration schema of Nodo dei Pagamenti From 67658f9ff78f0ac82e88ab5b962d68adabb78748 Mon Sep 17 00:00:00 2001 From: Francesco Cesareo Date: Mon, 8 Apr 2024 18:22:05 +0200 Subject: [PATCH 43/54] fix dockerfile --- Dockerfile | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/Dockerfile b/Dockerfile index 99f15b0..95d83db 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,8 +6,12 @@ WORKDIR /build COPY . . RUN mvn clean package -DskipTests -FROM amazoncorretto:17.0.10-alpine3.19@sha256:180e9c91bdbaad3599fedd2f492bf0d0335a9382835aa64669b2c2a8de7c9a22 as builder -COPY --from=buildtime /build/target/*.jar application.jar +FROM amazoncorretto:17.0.10-alpine3.19@sha256:180e9c91bdbaad3599fedd2f492bf0d0335a9382835aa64669b2c2a8de7c9a22 as runtime + +VOLUME /tmp +WORKDIR /app + +COPY --from=buildtime /build/target/*.jar /app/application.jar RUN java -Djarmode=layertools -jar application.jar extract #FROM ghcr.io/pagopa/docker-base-springboot-openjdk17:v1.1.3@sha256:a4e970ef05ecf2081424a64707e7c20856bbc40ddb3e99b32a24cd74591817c4 @@ -18,16 +22,10 @@ RUN java -Djarmode=layertools -jar application.jar extract #COPY --chown=spring:spring --from=builder spring-boot-loader/ ./ #COPY --chown=spring:spring --from=builder application/ ./ -COPY --chown=spring:spring dependencies/ ./ -COPY --chown=spring:spring snapshot-dependencies/ ./ -RUN true -COPY --chown=spring:spring spring-boot-loader ./ -COPY --chown=spring:spring application/ ./ - -# https://github.com/microsoft/ApplicationInsights-Java/releases -ADD --chown=spring:spring https://github.com/microsoft/ApplicationInsights-Java/releases/download/3.4.19/applicationinsights-agent-3.4.19.jar /applicationinsights-agent.jar -COPY --chown=spring:spring docker/applicationinsights.json ./applicationinsights.json -COPY --chown=spring:spring docker/run.sh ./run.sh +## https://github.com/microsoft/ApplicationInsights-Java/releases +ADD --chown=spring:spring https://github.com/microsoft/ApplicationInsights-Java/releases/download/3.4.19/applicationinsights-agent-3.4.19.jar /app/applicationinsights-agent.jar +COPY --chown=spring:spring docker/applicationinsights.json /app/applicationinsights.json +COPY --chown=spring:spring docker/run.sh /app/run.sh RUN chmod +x ./run.sh EXPOSE 8080 From 0e4ffe6678c1262eb08a8bfa7d8f366f9de996e4 Mon Sep 17 00:00:00 2001 From: pagopa-github-bot Date: Mon, 8 Apr 2024 16:23:38 +0000 Subject: [PATCH 44/54] Bump to version 0.0.3-19-NOD-744-deploy-uat [skip ci] --- helm/Chart.yaml | 4 ++-- helm/values-dev.yaml | 2 +- helm/values-prod.yaml | 2 +- helm/values-uat.yaml | 2 +- openapi/openapi.json | 2 +- pom.xml | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/helm/Chart.yaml b/helm/Chart.yaml index f354c76..fb3f135 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: pagopa-node-cfg-sync description: Microservice that sync api-config-cache and standin configuration type: application -version: 0.70.0 -appVersion: 0.0.3-18-NOD-744-deploy-uat +version: 0.71.0 +appVersion: 0.0.3-19-NOD-744-deploy-uat dependencies: - name: microservice-chart version: 2.8.0 diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml index 795331d..7ab940e 100644 --- a/helm/values-dev.yaml +++ b/helm/values-dev.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3-18-NOD-744-deploy-uat" + tag: "0.0.3-19-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/helm/values-prod.yaml b/helm/values-prod.yaml index 240ee50..148e520 100644 --- a/helm/values-prod.yaml +++ b/helm/values-prod.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3-18-NOD-744-deploy-uat" + tag: "0.0.3-19-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/helm/values-uat.yaml b/helm/values-uat.yaml index d3e139c..4b37484 100644 --- a/helm/values-uat.yaml +++ b/helm/values-uat.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3-18-NOD-744-deploy-uat" + tag: "0.0.3-19-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/openapi/openapi.json b/openapi/openapi.json index 4f01bd9..e3045dd 100644 --- a/openapi/openapi.json +++ b/openapi/openapi.json @@ -4,7 +4,7 @@ "title": "cfg-sync", "description": "Microservice to update configuration schema of Nodo dei Pagamenti", "termsOfService": "https://www.pagopa.gov.it/", - "version": "0.0.3-18-NOD-744-deploy-uat" + "version": "0.0.3-19-NOD-744-deploy-uat" }, "servers": [ { diff --git a/pom.xml b/pom.xml index f1de406..55cfce1 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ it.gov.pagopa.node cfg-sync - 0.0.3-18-NOD-744-deploy-uat + 0.0.3-19-NOD-744-deploy-uat Microservice to update configuration schema of Nodo dei Pagamenti From 77a0f1a0b388aa434551a3399542fef5bf88b35b Mon Sep 17 00:00:00 2001 From: Francesco Cesareo Date: Mon, 8 Apr 2024 18:39:44 +0200 Subject: [PATCH 45/54] fix dockerfile --- Dockerfile | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/Dockerfile b/Dockerfile index 95d83db..7f4051a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,27 +6,24 @@ WORKDIR /build COPY . . RUN mvn clean package -DskipTests -FROM amazoncorretto:17.0.10-alpine3.19@sha256:180e9c91bdbaad3599fedd2f492bf0d0335a9382835aa64669b2c2a8de7c9a22 as runtime - -VOLUME /tmp +FROM amazoncorretto:17.0.10-alpine3.19@sha256:180e9c91bdbaad3599fedd2f492bf0d0335a9382835aa64669b2c2a8de7c9a22 as builder WORKDIR /app - COPY --from=buildtime /build/target/*.jar /app/application.jar RUN java -Djarmode=layertools -jar application.jar extract -#FROM ghcr.io/pagopa/docker-base-springboot-openjdk17:v1.1.3@sha256:a4e970ef05ecf2081424a64707e7c20856bbc40ddb3e99b32a24cd74591817c4 -#COPY --chown=spring:spring --from=builder dependencies/ ./ -#COPY --chown=spring:spring --from=builder snapshot-dependencies/ ./ +FROM ghcr.io/pagopa/docker-base-springboot-openjdk17:v1.1.3@sha256:a4e970ef05ecf2081424a64707e7c20856bbc40ddb3e99b32a24cd74591817c4 +COPY --chown=spring:spring --from=builder dependencies/ ./ +COPY --chown=spring:spring --from=builder snapshot-dependencies/ ./ # https://github.com/moby/moby/issues/37965#issuecomment-426853382 -#RUN true -#COPY --chown=spring:spring --from=builder spring-boot-loader/ ./ -#COPY --chown=spring:spring --from=builder application/ ./ +RUN true +COPY --chown=spring:spring --from=builder spring-boot-loader/ ./ +COPY --chown=spring:spring --from=builder application/ ./ ## https://github.com/microsoft/ApplicationInsights-Java/releases -ADD --chown=spring:spring https://github.com/microsoft/ApplicationInsights-Java/releases/download/3.4.19/applicationinsights-agent-3.4.19.jar /app/applicationinsights-agent.jar -COPY --chown=spring:spring docker/applicationinsights.json /app/applicationinsights.json -COPY --chown=spring:spring docker/run.sh /app/run.sh -RUN chmod +x ./run.sh +#ADD --chown=spring:spring https://github.com/microsoft/ApplicationInsights-Java/releases/download/3.4.19/applicationinsights-agent-3.4.19.jar /app/applicationinsights-agent.jar +#COPY --chown=spring:spring docker/applicationinsights.json /app/applicationinsights.json +#COPY --chown=spring:spring docker/run.sh /app/run.sh +#RUN chmod +x ./run.sh EXPOSE 8080 From 5fc31df8cab894826b5bc95c80d8be83dd6dfb48 Mon Sep 17 00:00:00 2001 From: pagopa-github-bot Date: Mon, 8 Apr 2024 16:52:52 +0000 Subject: [PATCH 46/54] Bump to version 0.0.3-20-NOD-744-deploy-uat [skip ci] --- helm/Chart.yaml | 4 ++-- helm/values-dev.yaml | 2 +- helm/values-prod.yaml | 2 +- helm/values-uat.yaml | 2 +- openapi/openapi.json | 2 +- pom.xml | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/helm/Chart.yaml b/helm/Chart.yaml index fb3f135..928af07 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: pagopa-node-cfg-sync description: Microservice that sync api-config-cache and standin configuration type: application -version: 0.71.0 -appVersion: 0.0.3-19-NOD-744-deploy-uat +version: 0.72.0 +appVersion: 0.0.3-20-NOD-744-deploy-uat dependencies: - name: microservice-chart version: 2.8.0 diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml index 7ab940e..ebbfc4e 100644 --- a/helm/values-dev.yaml +++ b/helm/values-dev.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3-19-NOD-744-deploy-uat" + tag: "0.0.3-20-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/helm/values-prod.yaml b/helm/values-prod.yaml index 148e520..75183ce 100644 --- a/helm/values-prod.yaml +++ b/helm/values-prod.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3-19-NOD-744-deploy-uat" + tag: "0.0.3-20-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/helm/values-uat.yaml b/helm/values-uat.yaml index 4b37484..9944163 100644 --- a/helm/values-uat.yaml +++ b/helm/values-uat.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3-19-NOD-744-deploy-uat" + tag: "0.0.3-20-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/openapi/openapi.json b/openapi/openapi.json index e3045dd..b65d5b5 100644 --- a/openapi/openapi.json +++ b/openapi/openapi.json @@ -4,7 +4,7 @@ "title": "cfg-sync", "description": "Microservice to update configuration schema of Nodo dei Pagamenti", "termsOfService": "https://www.pagopa.gov.it/", - "version": "0.0.3-19-NOD-744-deploy-uat" + "version": "0.0.3-20-NOD-744-deploy-uat" }, "servers": [ { diff --git a/pom.xml b/pom.xml index 55cfce1..349322d 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ it.gov.pagopa.node cfg-sync - 0.0.3-19-NOD-744-deploy-uat + 0.0.3-20-NOD-744-deploy-uat Microservice to update configuration schema of Nodo dei Pagamenti From b944f887bae667ac7c6e36a56f71ca21c7e0cbe3 Mon Sep 17 00:00:00 2001 From: Francesco Cesareo Date: Mon, 8 Apr 2024 18:55:32 +0200 Subject: [PATCH 47/54] fix dockerfile --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7f4051a..2c0d068 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,12 +12,12 @@ COPY --from=buildtime /build/target/*.jar /app/application.jar RUN java -Djarmode=layertools -jar application.jar extract FROM ghcr.io/pagopa/docker-base-springboot-openjdk17:v1.1.3@sha256:a4e970ef05ecf2081424a64707e7c20856bbc40ddb3e99b32a24cd74591817c4 -COPY --chown=spring:spring --from=builder dependencies/ ./ -COPY --chown=spring:spring --from=builder snapshot-dependencies/ ./ +COPY --chown=spring:spring --from=builder /app/dependencies/ ./ +COPY --chown=spring:spring --from=builder /app/snapshot-dependencies/ ./ # https://github.com/moby/moby/issues/37965#issuecomment-426853382 RUN true -COPY --chown=spring:spring --from=builder spring-boot-loader/ ./ -COPY --chown=spring:spring --from=builder application/ ./ +COPY --chown=spring:spring --from=builder /app/spring-boot-loader/ ./ +COPY --chown=spring:spring --from=builder /app/application/ ./ ## https://github.com/microsoft/ApplicationInsights-Java/releases #ADD --chown=spring:spring https://github.com/microsoft/ApplicationInsights-Java/releases/download/3.4.19/applicationinsights-agent-3.4.19.jar /app/applicationinsights-agent.jar From bdc0d6a36feedf77fd1cf2cca605721ff421ad4c Mon Sep 17 00:00:00 2001 From: pagopa-github-bot Date: Mon, 8 Apr 2024 16:59:07 +0000 Subject: [PATCH 48/54] Bump to version 0.0.3-21-NOD-744-deploy-uat [skip ci] --- helm/Chart.yaml | 4 ++-- helm/values-dev.yaml | 2 +- helm/values-prod.yaml | 2 +- helm/values-uat.yaml | 2 +- openapi/openapi.json | 2 +- pom.xml | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/helm/Chart.yaml b/helm/Chart.yaml index 928af07..2f0e8bf 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: pagopa-node-cfg-sync description: Microservice that sync api-config-cache and standin configuration type: application -version: 0.72.0 -appVersion: 0.0.3-20-NOD-744-deploy-uat +version: 0.73.0 +appVersion: 0.0.3-21-NOD-744-deploy-uat dependencies: - name: microservice-chart version: 2.8.0 diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml index ebbfc4e..8b08c5c 100644 --- a/helm/values-dev.yaml +++ b/helm/values-dev.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3-20-NOD-744-deploy-uat" + tag: "0.0.3-21-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/helm/values-prod.yaml b/helm/values-prod.yaml index 75183ce..64da490 100644 --- a/helm/values-prod.yaml +++ b/helm/values-prod.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3-20-NOD-744-deploy-uat" + tag: "0.0.3-21-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/helm/values-uat.yaml b/helm/values-uat.yaml index 9944163..df0fd31 100644 --- a/helm/values-uat.yaml +++ b/helm/values-uat.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3-20-NOD-744-deploy-uat" + tag: "0.0.3-21-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/openapi/openapi.json b/openapi/openapi.json index b65d5b5..166b552 100644 --- a/openapi/openapi.json +++ b/openapi/openapi.json @@ -4,7 +4,7 @@ "title": "cfg-sync", "description": "Microservice to update configuration schema of Nodo dei Pagamenti", "termsOfService": "https://www.pagopa.gov.it/", - "version": "0.0.3-20-NOD-744-deploy-uat" + "version": "0.0.3-21-NOD-744-deploy-uat" }, "servers": [ { diff --git a/pom.xml b/pom.xml index 349322d..da1d4a2 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ it.gov.pagopa.node cfg-sync - 0.0.3-20-NOD-744-deploy-uat + 0.0.3-21-NOD-744-deploy-uat Microservice to update configuration schema of Nodo dei Pagamenti From 7b920ed45a750560ec67debcb871b5625dd0750d Mon Sep 17 00:00:00 2001 From: Francesco Cesareo Date: Tue, 9 Apr 2024 09:17:37 +0200 Subject: [PATCH 49/54] fix dockerfile --- Dockerfile | 27 ++++++++++++++------------- docker/applicationinsights.json | 2 +- docker/run.sh | 4 ++-- 3 files changed, 17 insertions(+), 16 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2c0d068..6a66b78 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,23 +7,24 @@ COPY . . RUN mvn clean package -DskipTests FROM amazoncorretto:17.0.10-alpine3.19@sha256:180e9c91bdbaad3599fedd2f492bf0d0335a9382835aa64669b2c2a8de7c9a22 as builder -WORKDIR /app -COPY --from=buildtime /build/target/*.jar /app/application.jar -RUN java -Djarmode=layertools -jar application.jar extract +#WORKDIR /app +#COPY --from=buildtime /build/target/*.jar /app/application.jar +#RUN java -Djarmode=layertools -jar application.jar extract +COPY --from=buildtime /build/target/*.jar application.jar -FROM ghcr.io/pagopa/docker-base-springboot-openjdk17:v1.1.3@sha256:a4e970ef05ecf2081424a64707e7c20856bbc40ddb3e99b32a24cd74591817c4 -COPY --chown=spring:spring --from=builder /app/dependencies/ ./ -COPY --chown=spring:spring --from=builder /app/snapshot-dependencies/ ./ +#FROM ghcr.io/pagopa/docker-base-springboot-openjdk17:v1.1.3@sha256:a4e970ef05ecf2081424a64707e7c20856bbc40ddb3e99b32a24cd74591817c4 +#COPY --chown=spring:spring --from=builder /app/dependencies/ ./ +#COPY --chown=spring:spring --from=builder /app/snapshot-dependencies/ ./ # https://github.com/moby/moby/issues/37965#issuecomment-426853382 -RUN true -COPY --chown=spring:spring --from=builder /app/spring-boot-loader/ ./ -COPY --chown=spring:spring --from=builder /app/application/ ./ +#RUN true +#COPY --chown=spring:spring --from=builder /app/spring-boot-loader/ ./ +#COPY --chown=spring:spring --from=builder /app/application/ ./ ## https://github.com/microsoft/ApplicationInsights-Java/releases -#ADD --chown=spring:spring https://github.com/microsoft/ApplicationInsights-Java/releases/download/3.4.19/applicationinsights-agent-3.4.19.jar /app/applicationinsights-agent.jar -#COPY --chown=spring:spring docker/applicationinsights.json /app/applicationinsights.json -#COPY --chown=spring:spring docker/run.sh /app/run.sh -#RUN chmod +x ./run.sh +ADD --chown=spring:spring https://github.com/microsoft/ApplicationInsights-Java/releases/download/3.4.19/applicationinsights-agent-3.4.19.jar applicationinsights-agent.jar +COPY --chown=spring:spring docker/applicationinsights.json applicationinsights.json +COPY --chown=spring:spring docker/run.sh run.sh +RUN chmod +x ./run.sh EXPOSE 8080 diff --git a/docker/applicationinsights.json b/docker/applicationinsights.json index e7fe611..67df876 100644 --- a/docker/applicationinsights.json +++ b/docker/applicationinsights.json @@ -3,4 +3,4 @@ "destination": "console", "level": "INFO" } -} +} \ No newline at end of file diff --git a/docker/run.sh b/docker/run.sh index 7466197..8fb165d 100644 --- a/docker/run.sh +++ b/docker/run.sh @@ -1,3 +1,3 @@ #!/bin/sh -ls -la -exec java -javaagent:/applicationinsights-agent.jar ${JAVA_OPTS} org.springframework.boot.loader.JarLauncher "$@" \ No newline at end of file +#exec java -javaagent:/applicationinsights-agent.jar ${JAVA_OPTS} org.springframework.boot.loader.JarLauncher "$@" +exec java -javaagent:/applicationinsights-agent.jar ${JAVA_OPTS} -jar application.jar \ No newline at end of file From 84b4c902d4c6de52a83c1d8935ab25afb779f084 Mon Sep 17 00:00:00 2001 From: pagopa-github-bot Date: Tue, 9 Apr 2024 07:21:10 +0000 Subject: [PATCH 50/54] Bump to version 0.0.3-22-NOD-744-deploy-uat [skip ci] --- helm/Chart.yaml | 4 ++-- helm/values-dev.yaml | 2 +- helm/values-prod.yaml | 2 +- helm/values-uat.yaml | 2 +- openapi/openapi.json | 2 +- pom.xml | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/helm/Chart.yaml b/helm/Chart.yaml index 2f0e8bf..8cb44d0 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: pagopa-node-cfg-sync description: Microservice that sync api-config-cache and standin configuration type: application -version: 0.73.0 -appVersion: 0.0.3-21-NOD-744-deploy-uat +version: 0.74.0 +appVersion: 0.0.3-22-NOD-744-deploy-uat dependencies: - name: microservice-chart version: 2.8.0 diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml index 8b08c5c..03a26d6 100644 --- a/helm/values-dev.yaml +++ b/helm/values-dev.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3-21-NOD-744-deploy-uat" + tag: "0.0.3-22-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/helm/values-prod.yaml b/helm/values-prod.yaml index 64da490..89dd321 100644 --- a/helm/values-prod.yaml +++ b/helm/values-prod.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3-21-NOD-744-deploy-uat" + tag: "0.0.3-22-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/helm/values-uat.yaml b/helm/values-uat.yaml index df0fd31..e96298e 100644 --- a/helm/values-uat.yaml +++ b/helm/values-uat.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3-21-NOD-744-deploy-uat" + tag: "0.0.3-22-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/openapi/openapi.json b/openapi/openapi.json index 166b552..518061a 100644 --- a/openapi/openapi.json +++ b/openapi/openapi.json @@ -4,7 +4,7 @@ "title": "cfg-sync", "description": "Microservice to update configuration schema of Nodo dei Pagamenti", "termsOfService": "https://www.pagopa.gov.it/", - "version": "0.0.3-21-NOD-744-deploy-uat" + "version": "0.0.3-22-NOD-744-deploy-uat" }, "servers": [ { diff --git a/pom.xml b/pom.xml index da1d4a2..ceda8e8 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ it.gov.pagopa.node cfg-sync - 0.0.3-21-NOD-744-deploy-uat + 0.0.3-22-NOD-744-deploy-uat Microservice to update configuration schema of Nodo dei Pagamenti From d770cb56d2f162907f8cf9665d0468af34ba10af Mon Sep 17 00:00:00 2001 From: Francesco Cesareo Date: Wed, 10 Apr 2024 09:40:45 +0200 Subject: [PATCH 51/54] fix helm --- helm/values-dev.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml index 03a26d6..3aabdc8 100644 --- a/helm/values-dev.yaml +++ b/helm/values-dev.yaml @@ -65,7 +65,7 @@ microservice-chart: WEBSITE_SITE_NAME: 'pagopa-node-cfg-sync' ENV: 'azure-dev' APP_LOGGING_LEVEL: 'INFO' - HIKARI_LOGGING_LEVEL: 'DEBUG' + HIKARI_LOGGING_LEVEL: 'INFO' DEFAULT_LOGGING_LEVEL: 'INFO' CORS_CONFIGURATION: '{"origins": ["*"], "methods": ["*"]}' DB_NEXI_POSTGRES_URL: "jdbc:postgresql://db-postgres-ndp.d.db-nodo-pagamenti.com:5444/ndpspct?prepareThreshold=0¤tSchema=NODO4_CFG" From 2710beeb509c22cf6f2a6493a2fcaf659c2b5a3a Mon Sep 17 00:00:00 2001 From: Francesco Cesareo Date: Wed, 10 Apr 2024 09:41:16 +0200 Subject: [PATCH 52/54] rollback notification --- .github/workflows/05_release_deploy.yml | 36 ++++++++++++------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/05_release_deploy.yml b/.github/workflows/05_release_deploy.yml index 5095f5f..7886306 100644 --- a/.github/workflows/05_release_deploy.yml +++ b/.github/workflows/05_release_deploy.yml @@ -147,21 +147,21 @@ jobs: target: ${{ needs.setup.outputs.environment }} secrets: inherit -# notify: -# name: Notify -# needs: [ setup, release, deploy_aks ] -# runs-on: ubuntu-latest -# if: always() -# steps: -# - name: Report Status -# if: always() -# uses: ravsamhq/notify-slack-action@v2 -# with: -# status: ${{ needs.deploy_aks.result }} -# token: ${{ secrets.GITHUB_TOKEN }} -# notification_title: 'New Release on ${{ needs.setup.outputs.environment }} for ${{ needs.release.outputs.version }} has {status_message}' -# message_format: '{emoji} <{run_url}|{workflow}> {status_message} in <{repo_url}|{repo}>' -# footer: 'Linked to <{workflow_url}| workflow file>' -# icon_success: ':white_check_mark:' -# env: -# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + notify: + name: Notify + needs: [ setup, release, deploy_aks ] + runs-on: ubuntu-latest + if: always() + steps: + - name: Report Status + if: always() + uses: ravsamhq/notify-slack-action@v2 + with: + status: ${{ needs.deploy_aks.result }} + token: ${{ secrets.GITHUB_TOKEN }} + notification_title: 'New Release on ${{ needs.setup.outputs.environment }} for ${{ needs.release.outputs.version }} has {status_message}' + message_format: '{emoji} <{run_url}|{workflow}> {status_message} in <{repo_url}|{repo}>' + footer: 'Linked to <{workflow_url}| workflow file>' + icon_success: ':white_check_mark:' + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} From 26c699b1903963930239c08473fe7813bb6ff938 Mon Sep 17 00:00:00 2001 From: pagopa-github-bot Date: Wed, 10 Apr 2024 07:42:58 +0000 Subject: [PATCH 53/54] Bump to version 0.0.3-23-NOD-744-deploy-uat [skip ci] --- helm/Chart.yaml | 4 ++-- helm/values-dev.yaml | 2 +- helm/values-prod.yaml | 2 +- helm/values-uat.yaml | 2 +- openapi/openapi.json | 2 +- pom.xml | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/helm/Chart.yaml b/helm/Chart.yaml index 8cb44d0..c4587f3 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: pagopa-node-cfg-sync description: Microservice that sync api-config-cache and standin configuration type: application -version: 0.74.0 -appVersion: 0.0.3-22-NOD-744-deploy-uat +version: 0.75.0 +appVersion: 0.0.3-23-NOD-744-deploy-uat dependencies: - name: microservice-chart version: 2.8.0 diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml index 3aabdc8..993c357 100644 --- a/helm/values-dev.yaml +++ b/helm/values-dev.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3-22-NOD-744-deploy-uat" + tag: "0.0.3-23-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/helm/values-prod.yaml b/helm/values-prod.yaml index 89dd321..c650dde 100644 --- a/helm/values-prod.yaml +++ b/helm/values-prod.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3-22-NOD-744-deploy-uat" + tag: "0.0.3-23-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/helm/values-uat.yaml b/helm/values-uat.yaml index e96298e..7b920fa 100644 --- a/helm/values-uat.yaml +++ b/helm/values-uat.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.3-22-NOD-744-deploy-uat" + tag: "0.0.3-23-NOD-744-deploy-uat" pullPolicy: Always livenessProbe: httpGet: diff --git a/openapi/openapi.json b/openapi/openapi.json index 518061a..bd34b16 100644 --- a/openapi/openapi.json +++ b/openapi/openapi.json @@ -4,7 +4,7 @@ "title": "cfg-sync", "description": "Microservice to update configuration schema of Nodo dei Pagamenti", "termsOfService": "https://www.pagopa.gov.it/", - "version": "0.0.3-22-NOD-744-deploy-uat" + "version": "0.0.3-23-NOD-744-deploy-uat" }, "servers": [ { diff --git a/pom.xml b/pom.xml index ceda8e8..dcd7d2a 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ it.gov.pagopa.node cfg-sync - 0.0.3-22-NOD-744-deploy-uat + 0.0.3-23-NOD-744-deploy-uat Microservice to update configuration schema of Nodo dei Pagamenti From 906719144c292f9f438407d405cc7d539309b16d Mon Sep 17 00:00:00 2001 From: Francesco Cesareo Date: Wed, 10 Apr 2024 22:15:02 +0200 Subject: [PATCH 54/54] fix helm value prod --- helm/values-prod.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helm/values-prod.yaml b/helm/values-prod.yaml index 89dd321..ee0aac8 100644 --- a/helm/values-prod.yaml +++ b/helm/values-prod.yaml @@ -86,8 +86,8 @@ microservice-chart: DB_PAGOPA_POSTGRES_SERVICE_IDENTIFIER: "NDP001DEV" DB_PAGOPA_POSTGRES_CONNECTION_TIMEOUT: "15000" DB_PAGOPA_POSTGRES_MAX_LIFETIME: "30000" - API_CONFIG_CACHE_URL: "https://api.uat.platform.pagopa.it/api-config-cache/o/v1/stakeholders/node/cache/schemas/v1" - STAND_IN_MANAGER_URL: "https://api.uat.platform.pagopa.it/stand-in-manager/api/v1" + API_CONFIG_CACHE_URL: "https://api.platform.pagopa.it/api-config-cache/o/v1/stakeholders/node/cache/schemas/v1" + STAND_IN_MANAGER_URL: "https://api.platform.pagopa.it/stand-in-manager/api/v1" OTEL_SERVICE_NAME: "pagopanodecfgsync" OTEL_RESOURCE_ATTRIBUTES: "deployment.environment=prod" OTEL_EXPORTER_OTLP_ENDPOINT: "http://otel-collector.elastic-system.svc:4317"