apply same changes to notification-web

This commit is contained in:
Alexandros Mandilaras 2024-02-21 10:49:06 +02:00
parent eac744bd95
commit c1c12ded5c
4 changed files with 16 additions and 9 deletions

View File

@ -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"]

View File

@ -7,7 +7,7 @@
<parent>
<groupId>gr.cite</groupId>
<artifactId>notification-service-parent</artifactId>
<version>1.0.0</version>
<version>${revision}</version>
<relativePath>../pom.xml</relativePath>
</parent>
@ -15,9 +15,11 @@
<packaging>jar</packaging>
<properties>
<java.version>21</java.version>
<maven.compiler.release>21</maven.compiler.release>
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>
<revision>1.0.0-SNAPSHOT</revision>
</properties>
<dependencies>
@ -78,7 +80,6 @@
</dependencies>
<build>
<finalName>argos-notification-web</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>

View File

@ -6,16 +6,19 @@
<parent>
<groupId>gr.cite</groupId>
<artifactId>notification-service-parent</artifactId>
<version>1.0.0</version>
<version>${revision}</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>notification</artifactId>
<version>${revision}</version>
<properties>
<java.version>11</java.version>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<java.version>21</java.version>
<maven.compiler.release>21</maven.compiler.release>
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>
<revision>1.0.0-SNAPSHOT</revision>
</properties>
<dependencies>

View File

@ -6,8 +6,8 @@
<modelVersion>4.0.0</modelVersion>
<groupId>gr.cite</groupId>
<artifactId>notification-service-parent</artifactId>
<name>Argos Notification Parent</name>
<version>1.0.0</version>
<name>OpenDMP Notification Parent</name>
<version>${revision}</version>
<packaging>pom</packaging>
<parent>
@ -26,6 +26,7 @@
<maven.compiler.release>21</maven.compiler.release>
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>
<revision>1.0.0-SNAPSHOT</revision>
</properties>
<dependencies>