Skip to content

Commit

Permalink
Fixes issue #2843 - Add a Servlet container alike distribution (#2844)
Browse files Browse the repository at this point in the history
  • Loading branch information
mnriem authored Oct 8, 2022
1 parent 223841c commit 4938074
Show file tree
Hide file tree
Showing 13 changed files with 1,400 additions and 0 deletions.
1 change: 1 addition & 0 deletions dist/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<modules>
<module>coreprofile</module>
<module>server</module>
<module>servlet</module>
<module>webprofile</module>
</modules>
<dependencies>
Expand Down
5 changes: 5 additions & 0 deletions dist/servlet/Dockerfile.amd64
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM eclipse-temurin:17
RUN mkdir /usr/local/piranha
ADD target/piranha-micro.jar /usr/local/piranha
WORKDIR /usr/local/piranha
CMD ["java", "-jar", "piranha-micro.jar"]
5 changes: 5 additions & 0 deletions dist/servlet/Dockerfile.arm64v8
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM eclipse-temurin:17
RUN mkdir /usr/local/piranha
ADD target/piranha-micro.jar /usr/local/piranha
WORKDIR /usr/local/piranha
CMD ["java", "-jar", "piranha-micro.jar"]
73 changes: 73 additions & 0 deletions dist/servlet/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
<?xml version="1.0" encoding="UTF-8"?>

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>cloud.piranha.dist</groupId>
<artifactId>project</artifactId>
<version>22.10.0-SNAPSHOT</version>
</parent>

<groupId>cloud.piranha</groupId>
<artifactId>piranha-dist-servlet</artifactId>
<packaging>jar</packaging>

<name>Piranha - Distribution - Servlet</name>

<dependencies>
<!-- compile -->
<dependency>
<groupId>cloud.piranha.core</groupId>
<artifactId>piranha-core-impl</artifactId>
<version>${project.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>cloud.piranha.extension</groupId>
<artifactId>piranha-extension-servlet</artifactId>
<version>${project.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>cloud.piranha.http</groupId>
<artifactId>piranha-http-impl</artifactId>
<version>${project.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>cloud.piranha.http</groupId>
<artifactId>piranha-http-webapp</artifactId>
<version>${project.version}</version>
<scope>compile</scope>
</dependency>
</dependencies>
<build>
<finalName>piranha-dist-servlet</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<minimizeJar>false</minimizeJar>
<transformers>
<transformer
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>cloud.piranha.dist.servlet.ServletPiranhaMain</mainClass>
</transformer>
<transformer
implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
</transformers>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
Loading

0 comments on commit 4938074

Please sign in to comment.