From 8d5dd30ee55e1e6f8f2fa6c4d8e203ac046563c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diana=20Gul=C4=8D=C3=ADkov=C3=A1?= <xgulcik@fi.muni.cz> Date: Mon, 17 Apr 2023 04:24:56 +0200 Subject: [PATCH] added dependencies for race and driver --- driver/Dockerfile | 3 +++ driver/pom.xml | 22 ++++++++++++++++++++++ race/Dockerfile | 3 +++ race/pom.xml | 22 ++++++++++++++++++++++ 4 files changed, 50 insertions(+) create mode 100644 driver/Dockerfile create mode 100644 race/Dockerfile diff --git a/driver/Dockerfile b/driver/Dockerfile new file mode 100644 index 00000000..d131222e --- /dev/null +++ b/driver/Dockerfile @@ -0,0 +1,3 @@ +FROM eclipse-temurin:17-jdk-alpine +COPY target/*.jar /app.jar +ENTRYPOINT ["java", "-jar", "/app.jar"] \ No newline at end of file diff --git a/driver/pom.xml b/driver/pom.xml index 14d6cbcd..603efe3e 100644 --- a/driver/pom.xml +++ b/driver/pom.xml @@ -59,6 +59,28 @@ </dependency> </dependencies> + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-jar-plugin</artifactId> + <version>3.2.0</version> + <configuration> + <archive> + <manifest> + <mainClass>cz.muni.pa165.driver.App</mainClass> + </manifest> + </archive> + </configuration> + </plugin> + <plugin> + <groupId>org.springframework.boot</groupId> + <artifactId>spring-boot-maven-plugin</artifactId> + <version>2.6.3</version> + </plugin> + </plugins> + </build> + <properties> <maven.compiler.source>17</maven.compiler.source> <maven.compiler.target>17</maven.compiler.target> diff --git a/race/Dockerfile b/race/Dockerfile new file mode 100644 index 00000000..d131222e --- /dev/null +++ b/race/Dockerfile @@ -0,0 +1,3 @@ +FROM eclipse-temurin:17-jdk-alpine +COPY target/*.jar /app.jar +ENTRYPOINT ["java", "-jar", "/app.jar"] \ No newline at end of file diff --git a/race/pom.xml b/race/pom.xml index 5a7b3ced..4da20bc4 100644 --- a/race/pom.xml +++ b/race/pom.xml @@ -54,6 +54,28 @@ <scope>test</scope> </dependency> </dependencies> + + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-jar-plugin</artifactId> + <version>3.2.0</version> + <configuration> + <archive> + <manifest> + <mainClass>cz.muni.pa165.race.App</mainClass> + </manifest> + </archive> + </configuration> + </plugin> + <plugin> + <groupId>org.springframework.boot</groupId> + <artifactId>spring-boot-maven-plugin</artifactId> + <version>2.6.3</version> + </plugin> + </plugins> + </build> <properties> <maven.compiler.source>17</maven.compiler.source> <maven.compiler.target>17</maven.compiler.target> -- GitLab