From c1c12ded5c33452df2f8971c15efe4d5652aae64 Mon Sep 17 00:00:00 2001 From: amandilaras Date: Wed, 21 Feb 2024 10:49:06 +0200 Subject: [PATCH] apply same changes to notification-web --- notification-service/Dockerfile | 4 +++- notification-service/notification-web/pom.xml | 5 +++-- notification-service/notification/pom.xml | 11 +++++++---- notification-service/pom.xml | 5 +++-- 4 files changed, 16 insertions(+), 9 deletions(-) diff --git a/notification-service/Dockerfile b/notification-service/Dockerfile index 301727af9..744d0f133 100644 --- a/notification-service/Dockerfile +++ b/notification-service/Dockerfile @@ -29,7 +29,9 @@ FROM eclipse-temurin:21-jre-ubi9-minimal ARG PROFILE ARG REVISION +ENV SERVER_PORT=8080 +EXPOSE ${SERVER_PORT} -COPY --from=build-stage /build/notification-web/target/notification-web.jar /app/notification-web.jar +COPY --from=build-stage /build/notification-web/target/notification-web-${REVISION}.jar /app/notification-web.jar ENTRYPOINT ["java","-Dspring.config.additional-location=file:/config/","-Dspring.profiles.active=${PROFILE}","-Djava.security.egd=file:/dev/./urandom","-jar","/app/notification-web.jar"] \ No newline at end of file diff --git a/notification-service/notification-web/pom.xml b/notification-service/notification-web/pom.xml index 08dc1ec60..7e6d11adb 100644 --- a/notification-service/notification-web/pom.xml +++ b/notification-service/notification-web/pom.xml @@ -7,7 +7,7 @@ gr.cite notification-service-parent - 1.0.0 + ${revision} ../pom.xml @@ -15,9 +15,11 @@ jar + 21 21 21 21 + 1.0.0-SNAPSHOT @@ -78,7 +80,6 @@ - argos-notification-web org.springframework.boot diff --git a/notification-service/notification/pom.xml b/notification-service/notification/pom.xml index 391c01a46..d820e9b6f 100644 --- a/notification-service/notification/pom.xml +++ b/notification-service/notification/pom.xml @@ -6,16 +6,19 @@ gr.cite notification-service-parent - 1.0.0 + ${revision} ../pom.xml notification + ${revision} - 11 - 11 - 11 + 21 + 21 + 21 + 21 + 1.0.0-SNAPSHOT diff --git a/notification-service/pom.xml b/notification-service/pom.xml index 1bb406abb..044dc8c8f 100644 --- a/notification-service/pom.xml +++ b/notification-service/pom.xml @@ -6,8 +6,8 @@ 4.0.0 gr.cite notification-service-parent - Argos Notification Parent - 1.0.0 + OpenDMP Notification Parent + ${revision} pom @@ -26,6 +26,7 @@ 21 21 21 + 1.0.0-SNAPSHOT