Skip to content

Commit

Permalink
jar
Browse files Browse the repository at this point in the history
  • Loading branch information
lindvarl committed Jul 23, 2024
1 parent c14a642 commit 841b1c4
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 98 deletions.
Binary file removed .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion .github/workflows/maven-make-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
}]
- name: Build, test and package
run: ./mvnw -B clean test jar:jar
run: ./mvnw -B clean package

- uses: docker/[email protected]
id: buildx
Expand Down
25 changes: 0 additions & 25 deletions .github/workflows/target_workflow.yml

This file was deleted.

2 changes: 1 addition & 1 deletion das-producer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ RUN useradd -u 1000 ingressuser
WORKDIR /opt
USER ingressuser

ENV JAR_FILE=das-producer/target/app.jar
ENV JAR_FILE=das-producer/target/*.jar
COPY ${JAR_FILE} /opt/app.jar

ENTRYPOINT ["java", "-XshowSettings:vm", "-XX:+PrintFlagsFinal", "-XX:MaxRAMPercentage=70", "-Djava.security.egd=file:/dev/./urandom", "-Djava.awt.headless=true", "-jar", "/opt/app.jar"]
81 changes: 10 additions & 71 deletions das-producer/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,17 @@

<build>
<plugins>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<finalName>app</finalName>
</configuration>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
Expand Down Expand Up @@ -151,71 +155,6 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
</plugin>
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>0.44.0</version>
<configuration>
<verbose>true</verbose>
<images>
<image>
<name>fibra/${project.artifactId}</name>
<build>
<buildx>
<platforms>
<platform>linux/amd64</platform>
<platform>linux/arm64</platform>
</platforms>
</buildx>
<dockerFileDir>${project.basedir}</dockerFileDir>
<args>
<JAR_FILE>target/${project.build.finalName}.jar</JAR_FILE>
</args>
<tags>
<tag>latest</tag>
<tag>${project.version}</tag>
</tags>
</build>
</image>
</images>
</configuration>
<executions>
<execution>
<id>default</id>
<phase>package</phase>
<goals>
<goal>build</goal>
</goals>
</execution>
</executions>
</plugin>
<!--plugin>
<groupId>com.spotify</groupId>
<artifactId>dockerfile-maven-plugin</artifactId>
<version>1.4.13</version>
<executions>
<execution>
<id>default</id>
<goals>
<goal>build</goal>
</goals>
</execution>
</executions>
<configuration>
<repository>fibra/${project.artifactId}</repository>
<tag>${project.version}</tag>
<buildArgs>
<JAR_FILE>target/${project.build.finalName}.jar</JAR_FILE>
</buildArgs>
</configuration>
<dependencies>
<dependency>
<groupId>javax.activation</groupId>
<artifactId>javax.activation-api</artifactId>
<version>1.2.0</version>
</dependency>
</dependencies>
</plugin-->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>license-maven-plugin</artifactId>
Expand Down

0 comments on commit 841b1c4

Please sign in to comment.