Skip to content

Commit

Permalink
Update docker to use spring boot
Browse files Browse the repository at this point in the history
  • Loading branch information
ramari16 committed Nov 16, 2023
1 parent 8d0c3a7 commit 69b1ecf
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 36 deletions.
11 changes: 9 additions & 2 deletions docker/pic-sure-hpds/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
FROM tomcat:9-jre11-openjdk-slim
ADD hpds-war-2.0.0-SNAPSHOT.war /usr/local/tomcat/webapps/ROOT.war
FROM amazoncorretto:21.0.1-alpine3.18

# Copy jar and access token from maven build
ADD service-3.0.0-SNAPSHOT.jar /service.jar

# Time zone
ENV TZ="US/Eastern"

ENTRYPOINT ["java", "-Xmx8192m", "-jar", "/service.jar"]
13 changes: 13 additions & 0 deletions service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,17 @@

</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.3.0</version>
<configuration>
<outputDirectory>../docker/pic-sure-hpds</outputDirectory>
</configuration>
</plugin>
</plugins>
</build>

</project>
34 changes: 0 additions & 34 deletions war/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,39 +40,5 @@
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<executions>
<execution>
<id>default-clean</id>
<phase>clean</phase>
<goals>
<goal>clean</goal>
</goals>
<configuration>
<filesets>
<fileset>
<directory>../docker/pic-sure-hpds</directory>
<includes>
<include>*.war</include>
<include>*.jar</include>
<include>war-exec.*</include>
</includes>
</fileset>
</filesets>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.3.1</version>
<configuration>
<outputDirectory>docker/pic-sure-hpds</outputDirectory>
</configuration>
</plugin>
</plugins>
</build>
</project>

0 comments on commit 69b1ecf

Please sign in to comment.