Skip to content

Commit

Permalink
fix: updated Dockerfile with new entrypoint jar launcher
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea-deri committed Apr 5, 2024
1 parent 854ce5e commit d4d00ec
Show file tree
Hide file tree
Showing 2 changed files with 90 additions and 108 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ COPY --chown=spring:spring --from=builder 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.launch.JarLauncher"]
196 changes: 89 additions & 107 deletions openapi/openapi.json
Original file line number Diff line number Diff line change
@@ -1,140 +1,122 @@
{
"openapi": "3.0.1",
"info": {
"description": "null\n\n**STANDARD ERRORS:**\nNAME | CODE | DESCRIPTION\n- | - | -\n**IUVG-1000** | *GENERIC_ERROR* | Error while generating IUV. *...error description...*\n**IUVG-1001** | *VALIDATION_ERROR* | Error while validating IUV generation request. *...error description...*\n**IUVG-1101** | *GENERATION_MAX_RETRIES_REACHED* | Error while generating IUV. Reached the maximum number of internal automatic attempts [*...content...*] to generate a unique IUV. Please, try again later.\n**IUVG-1102** | *GENERATION_AUXDIGIT_ALGORITHM_INVALID_PATTERN* | Error while generating IUV. The IUV code's section generated by timestamp in milliseconds is not correctly composited of 13 digits.\n",
"title": "OpenAPI definition",
"version": "0.2.0"
"openapi" : "3.0.1",
"info" : {
"description" : "null\n\n**STANDARD ERRORS:**\nNAME | CODE | DESCRIPTION\n- | - | -\n**IUVG-1000** | *GENERIC_ERROR* | Error while generating IUV. *...error description...*\n**IUVG-1001** | *VALIDATION_ERROR* | Error while validating IUV generation request. *...error description...*\n**IUVG-1101** | *GENERATION_MAX_RETRIES_REACHED* | Error while generating IUV. Reached the maximum number of internal automatic attempts [*...content...*] to generate a unique IUV for creditor institution [*...content...*]. Please, try again later.\n**IUVG-1102** | *GENERATION_AUXDIGIT_ALGORITHM_INVALID_PATTERN* | Error while generating IUV. The IUV code's section generated by timestamp in milliseconds is not correctly composited of 13 digits.\n",
"title" : "OpenAPI definition",
"version" : "v0"
},
"servers": [
{
"url": "http://localhost",
"description": "Generated server url"
}
],
"tags": [
{
"description": "Application info APIs",
"name": "Home"
},
{
"description": "IUV Generation APIs",
"name": "Generation"
}
],
"paths": {
"/info": {
"get": {
"operationId": "healthCheck",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AppInfoResponse"
"servers" : [ {
"url" : "http://localhost",
"description" : "Generated server url"
} ],
"tags" : [ {
"description" : "Application info APIs",
"name" : "Home"
}, {
"description" : "IUV Generation APIs",
"name" : "Generation"
} ],
"paths" : {
"/info" : {
"get" : {
"operationId" : "healthCheck",
"responses" : {
"200" : {
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/AppInfoResponse"
}
}
},
"description": "OK."
"description" : "OK."
}
},
"security": [
{
"ApiKey": []
}
],
"summary": "Return OK if application is started",
"tags": [
"Home"
]
"security" : [ {
"ApiKey" : [ ]
} ],
"summary" : "Return OK if application is started",
"tags" : [ "Home" ]
}
},
"/organizations/{organization-fiscal-code}/iuv": {
"post": {
"description": "**Description:** \nGenerate a new unique IUV code without aux-digit at the start. \n\n**API properties:**\nProperty | Value\n- | -\nInternal | Y\nExternal | N\nSynchronous | SYNC\nAuthorization | NONE\nAuthentication | APIKEY\nTPS | 1.0/sec\nIdempotency | N\nStateless | Y\nRead/Write Intense | Read and Write\nCacheable | N\n",
"operationId": "generateIUV",
"parameters": [
{
"description": "The fiscal code of the creditor institution",
"example": 77777777777,
"in": "path",
"name": "organization-fiscal-code",
"required": true,
"schema": {
"type": "string"
}
"/organizations/{organization-fiscal-code}/iuv" : {
"post" : {
"description" : "**Description:** \nGenerate a new unique IUV code without aux-digit at the start. \n\n**API properties:**\nProperty | Value\n- | -\nInternal | Y\nExternal | N\nSynchronous | SYNC\nAuthorization | NONE\nAuthentication | APIKEY\nTPS | 1.0/sec\nIdempotency | N\nStateless | Y\nRead/Write Intense | Read and Write\nCacheable | N\n",
"operationId" : "generateIUV",
"parameters" : [ {
"description" : "The fiscal code of the creditor institution",
"example" : 77777777777,
"in" : "path",
"name" : "organization-fiscal-code",
"required" : true,
"schema" : {
"type" : "string"
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/IUVGenerationRequest"
} ],
"requestBody" : {
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/IUVGenerationRequest"
}
}
},
"required": true
"required" : true
},
"responses": {
"201": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/IUVGenerationRequest"
"responses" : {
"201" : {
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/IUVGenerationRequest"
}
}
},
"description": "Created."
"description" : "Created."
}
},
"security": [
{
"ApiKey": []
}
],
"summary": "Generate new IUV for organization",
"tags": [
"Generation"
]
"security" : [ {
"ApiKey" : [ ]
} ],
"summary" : "Generate new IUV for organization",
"tags" : [ "Generation" ]
}
}
},
"components": {
"schemas": {
"AppInfoResponse": {
"type": "object",
"properties": {
"environment": {
"type": "string"
"components" : {
"schemas" : {
"AppInfoResponse" : {
"type" : "object",
"properties" : {
"environment" : {
"type" : "string"
},
"name": {
"type": "string"
"name" : {
"type" : "string"
},
"version": {
"type": "string"
"version" : {
"type" : "string"
}
}
},
"IUVGenerationRequest": {
"type": "object",
"properties": {
"auxDigit": {
"type": "integer",
"description": "The value of the AUX digit related to the IUV.",
"format": "int32",
"example": 3
"IUVGenerationRequest" : {
"type" : "object",
"properties" : {
"auxDigit" : {
"type" : "integer",
"description" : "The value of the AUX digit related to the IUV.",
"format" : "int32",
"example" : 3
},
"segregationCode": {
"type": "integer",
"description": "The value of the segregation related to the IUV.",
"format": "int32",
"example": 48
"segregationCode" : {
"type" : "integer",
"description" : "The value of the segregation related to the IUV.",
"format" : "int32",
"example" : 48
}
},
"required": [
"auxDigit",
"segregationCode"
]
"required" : [ "auxDigit", "segregationCode" ]
}
}
}
}
}

0 comments on commit d4d00ec

Please sign in to comment.