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

View File

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

View File

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