Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Fix problems Hikari + logs #8

Merged
merged 35 commits into from
Apr 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
ecba230
fix db connection problems
fparisitas Mar 28, 2024
d1057ae
Bump to version 0.0.1-6-fix-problems [skip ci]
pagopa-github-bot Mar 28, 2024
e9859d1
fix db connection problems
fparisitas Mar 28, 2024
f7ecca5
Bump to version 0.0.1-7-fix-problems [skip ci]
pagopa-github-bot Mar 28, 2024
4055134
fix log + Hikari params
fparisitas Mar 28, 2024
fc07fb5
fix log + Hikari params
fparisitas Mar 28, 2024
3994722
Bump to version 0.0.1-8-fix-problems [skip ci]
pagopa-github-bot Mar 28, 2024
78fbca4
Bump to version 0.0.1-9-fix-problems [skip ci]
pagopa-github-bot Mar 28, 2024
1138094
fix log + Hikari params
fparisitas Mar 28, 2024
3d01d0b
Bump to version 0.0.1-10-fix-problems [skip ci]
pagopa-github-bot Mar 28, 2024
2d79a5c
fix log + Hikari params
fparisitas Mar 28, 2024
8d02edf
fix log + Hikari params
fparisitas Mar 28, 2024
b253efe
Bump to version 0.0.1-11-fix-problems [skip ci]
pagopa-github-bot Mar 28, 2024
b8138aa
fix Hikari params
fparisitas Mar 28, 2024
4baae29
Bump to version 0.0.1-12-fix-problems [skip ci]
pagopa-github-bot Mar 28, 2024
6449ba5
merge main + fix
fparisitas Mar 28, 2024
e86f53f
add postman collection
fparisitas Mar 28, 2024
285d384
add postman collection
fparisitas Mar 29, 2024
eaff52b
add postman collection
fparisitas Mar 29, 2024
34b0c5b
fix dockerfile
aomegax Mar 29, 2024
baf9b60
Merge branch 'fix-problems' of github.com:pagopa/pagopa-node-cfg-sync…
aomegax Mar 29, 2024
d2ec786
fix identity
aomegax Mar 29, 2024
3660db7
Bump to version 0.0.2-1-fix-problems [skip ci]
pagopa-github-bot Mar 29, 2024
f8037f3
updated terraform locks
diegolagospagopa Mar 29, 2024
f0100e7
change alert logs
fparisitas Mar 29, 2024
bed00bf
Bump to version 0.0.2-2-fix-problems [skip ci]
pagopa-github-bot Mar 29, 2024
1e8e953
fix dockerfile
aomegax Apr 2, 2024
b19d41a
Merge branch 'fix-problems' of github.com:pagopa/pagopa-node-cfg-sync…
aomegax Apr 2, 2024
9ff781a
Bump to version 0.0.2-3-fix-problems [skip ci]
pagopa-github-bot Apr 2, 2024
b20268e
fix sha256
aomegax Apr 2, 2024
f7e0cde
fix sha256
aomegax Apr 2, 2024
c097152
fix sha256
aomegax Apr 2, 2024
804c3b0
fix dockerfile
aomegax Apr 2, 2024
ca6ae51
Bump to version 0.0.2-4-fix-problems [skip ci]
pagopa-github-bot Apr 2, 2024
130a33d
removed unused file
aomegax Apr 2, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 9 additions & 19 deletions .identity/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

96 changes: 0 additions & 96 deletions .identity/02_application_action.tf

This file was deleted.

11 changes: 6 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
#
# Build
#
FROM maven:3.9.5-amazoncorretto-17-al2023@sha256:eeaa7ab572d931f7273fc5cf31429923f172091ae388969e11f42ec6dd817d74 as buildtime
FROM maven:3.9.6-amazoncorretto-17-al2023@sha256:4c8bd9ec72b372f587f7b9d92564a307e4f5180b7ec08455fb346617bae1757e as buildtime
WORKDIR /build
COPY . .
RUN mvn clean package -DskipTests


FROM amazoncorretto:17.0.9-alpine3.18@sha256:df48bf2e183230040890460ddb4359a10aa6c7aad24bd88899482c52053c7e17 as builder
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.0@sha256:6fa320d452fa22066441f1ef292d15eb06f944bc8bca293e1a91ea460d30a613
FROM ghcr.io/pagopa/docker-base-springboot-openjdk17:v1.1.3@sha256:a4e970ef05ecf2081424a64707e7c20856bbc40ddb3e99b32a24cd74591817c4
WORKDIR /app
ADD --chown=spring:spring https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/download/v1.25.1/opentelemetry-javaagent.jar .
#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/ ./
Expand All @@ -25,4 +25,5 @@ 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","-javaagent:opentelemetry-javaagent.jar","--enable-preview","org.springframework.boot.loader.JarLauncher"]
ENTRYPOINT ["java", "--enable-preview","org.springframework.boot.loader.JarLauncher"]
8 changes: 4 additions & 4 deletions helm/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
apiVersion: v2
name: pagopa-afm-calculator
description: Microservice that handles calculation for pagoPA Advanced Fees Management
name: pagopa-node-cfg-sync
description: Microservice that sync api-config-cache and standin configuration
type: application
version: 0.41.0
appVersion: 0.0.2
version: 0.51.0
appVersion: 0.0.2-4-fix-problems
dependencies:
- name: microservice-chart
version: 2.8.0
Expand Down
9 changes: 8 additions & 1 deletion helm/values-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ microservice-chart:
fullnameOverride: ""
image:
repository: ghcr.io/pagopa/pagopa-node-cfg-sync
tag: "0.0.2"
tag: "0.0.2-4-fix-problems"
pullPolicy: Always
livenessProbe:
httpGet:
Expand Down Expand Up @@ -65,20 +65,27 @@ microservice-chart:
WEBSITE_SITE_NAME: 'pagopa-node-cfg-sync'
ENV: 'azure-dev'
APP_LOGGING_LEVEL: 'INFO'
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&currentSchema=NODO4_CFG"
DB_NEXI_POSTGRES_USER: "pp_nodo4_cfg"
DB_NEXI_POSTGRES_ENABLED: "false"
DB_NEXI_POSTGRES_SERVICE_IDENTIFIER: "NDP004DEV"
DB_NEXI_POSTGRES_CONNECTION_TIMEOUT: "15000"
DB_NEXI_POSTGRES_MAX_LIFETIME: "30000"
DB_NEXI_ORACLE_URL: "jdbc:oracle:thin:@(DESCRIPTION=(ENABLE=BROKEN)(ADDRESS=(PROTOCOL=tcp)(PORT=1522)(HOST=db-nodo-pagamenti.d.db-nodo-pagamenti.com))(CONNECT_DATA=(SERVICE_NAME=NDPSPCT_PP_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"
DB_NEXI_ORACLE_CONNECTION_TIMEOUT: "15000"
DB_NEXI_ORACLE_MAX_LIFETIME: "30000"
DB_PAGOPA_POSTGRES_URL: "jdbc:postgresql://ndp.d.db-nodo-pagamenti.com:6432/nodo?sslmode=require&prepareThreshold=0&currentSchema=cfg"
DB_PAGOPA_POSTGRES_USER: "cfg"
DB_PAGOPA_POSTGRES_ENABLED: "true"
DB_PAGOPA_POSTGRES_SERVICE_IDENTIFIER: "NDP001DEV"
DB_PAGOPA_POSTGRES_CONNECTION_TIMEOUT: "15000"
DB_PAGOPA_POSTGRES_MAX_LIFETIME: "30000"
API_CONFIG_CACHE_URL: "https://api.dev.platform.pagopa.it/api-config-cache/o/v1/stakeholders/node/cache/schemas/v1"
STAND_IN_MANAGER_URL: "https://api.dev.platform.pagopa.it/stand-in-manager/api/v1"
OTEL_SERVICE_NAME: "pagopanodecfgsync"
Expand Down
9 changes: 8 additions & 1 deletion helm/values-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ microservice-chart:
fullnameOverride: ""
image:
repository: ghcr.io/pagopa/pagopa-node-cfg-sync
tag: "0.0.2"
tag: "0.0.2-4-fix-problems"
pullPolicy: Always
livenessProbe:
httpGet:
Expand Down Expand Up @@ -65,20 +65,27 @@ microservice-chart:
WEBSITE_SITE_NAME: 'pagopa-node-cfg-sync' # required to show cloud role name in application insights
ENV: 'azure-prod'
APP_LOGGING_LEVEL: 'INFO'
HIKARI_LOGGING_LEVEL: 'INFO'
DEFAULT_LOGGING_LEVEL: 'INFO'
CORS_CONFIGURATION: '{"origins": ["*"], "methods": ["*"]}'
DB_NEXI_POSTGRES_URL: "jdbc:postgresql://db-postgres-ndp.p.db-nodo-pagamenti.com:5444/ndpspcp?prepareThreshold=0&currentSchema=NODO4_CFG"
DB_NEXI_POSTGRES_USER: "pp_nodo4_cfg"
DB_NEXI_POSTGRES_ENABLED: "false"
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_USER: "NODO4_CFG"
DB_NEXI_ORACLE_ENABLED: "true"
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&currentSchema=cfg"
DB_PAGOPA_POSTGRES_USER: "cfg"
DB_PAGOPA_POSTGRES_ENABLED: "true"
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"
OTEL_SERVICE_NAME: "pagopanodecfgsync"
Expand Down
9 changes: 8 additions & 1 deletion helm/values-uat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ microservice-chart:
fullnameOverride: ""
image:
repository: ghcr.io/pagopa/pagopa-node-cfg-sync
tag: "0.0.2"
tag: "0.0.2-4-fix-problems"
pullPolicy: Always
livenessProbe:
httpGet:
Expand Down Expand Up @@ -65,20 +65,27 @@ microservice-chart:
WEBSITE_SITE_NAME: 'pagopa-node-cfg-sync'
ENV: 'azure-uat'
APP_LOGGING_LEVEL: 'INFO'
HIKARI_LOGGING_LEVEL: 'INFO'
DEFAULT_LOGGING_LEVEL: 'INFO'
CORS_CONFIGURATION: '{"origins": ["*"], "methods": ["*"]}'
DB_NEXI_POSTGRES_URL: "jdbc:postgresql://db-postgres-ndp.u.db-nodo-pagamenti.com:5444/ndpspca?prepareThreshold=0&currentSchema=NODO4_CFG"
DB_NEXI_POSTGRES_USER: "pp_nodo4_cfg"
DB_NEXI_POSTGRES_ENABLED: "false"
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_USER: "NODO4_CFG"
DB_NEXI_ORACLE_ENABLED: "true"
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&currentSchema=cfg"
DB_PAGOPA_POSTGRES_USER: "cfg"
DB_PAGOPA_POSTGRES_ENABLED: "true"
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"
OTEL_SERVICE_NAME: "pagopanodecfgsync"
Expand Down
46 changes: 23 additions & 23 deletions openapi/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.2"
"version": "0.0.2-4-fix-problems"
},
"servers": [
{
Expand Down Expand Up @@ -226,28 +226,6 @@
},
"components": {
"schemas": {
"ProblemJson": {
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "A short, summary of the problem type. Written in english and readable for engineers (usually not suited for non technical stakeholders and not localized); example: Service Unavailable"
},
"status": {
"maximum": 600,
"minimum": 100,
"type": "integer",
"description": "The HTTP status code generated by the origin server for this occurrence of the problem.",
"format": "int32",
"example": 200
},
"detail": {
"type": "string",
"description": "A human readable explanation specific to this occurrence of the problem.",
"example": "There was an error processing the request"
}
}
},
"SyncStatusResponse": {
"required": [
"serviceIdentifier",
Expand All @@ -272,6 +250,28 @@
]
}
}
},
"ProblemJson": {
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "A short, summary of the problem type. Written in english and readable for engineers (usually not suited for non technical stakeholders and not localized); example: Service Unavailable"
},
"status": {
"maximum": 600,
"minimum": 100,
"type": "integer",
"description": "The HTTP status code generated by the origin server for this occurrence of the problem.",
"format": "int32",
"example": 200
},
"detail": {
"type": "string",
"description": "A human readable explanation specific to this occurrence of the problem.",
"example": "There was an error processing the request"
}
}
}
},
"securitySchemes": {
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<groupId>it.gov.pagopa.node</groupId>
<artifactId>cfg-sync</artifactId>
<version>0.0.2</version>
<version>0.0.2-4-fix-problems</version>
<description>Microservice to update configuration schema of Nodo dei Pagamenti</description>

<properties>
Expand Down
Loading
Loading