Skip to content

Commit 34e9d5a

Browse files
committed
AWT in-container test
1 parent aed35c3 commit 34e9d5a

File tree

2 files changed

+54
-2
lines changed

2 files changed

+54
-2
lines changed

integration-tests/awt/pom.xml

Lines changed: 39 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@
2727
<groupId>io.quarkus</groupId>
2828
<artifactId>quarkus-resteasy-multipart</artifactId>
2929
</dependency>
30+
<dependency>
31+
<groupId>io.quarkus</groupId>
32+
<artifactId>quarkus-container-image-docker</artifactId>
33+
</dependency>
3034

3135
<!-- test dependencies -->
3236
<dependency>
@@ -45,6 +49,8 @@
4549
<scope>test</scope>
4650
</dependency>
4751

52+
53+
4854
<!-- Minimal test dependencies to *-deployment artifacts for consistent build order -->
4955
<dependency>
5056
<groupId>io.quarkus</groupId>
@@ -59,7 +65,6 @@
5965
</exclusion>
6066
</exclusions>
6167
</dependency>
62-
6368
<dependency>
6469
<groupId>io.quarkus</groupId>
6570
<artifactId>quarkus-resteasy-multipart-deployment</artifactId>
@@ -99,7 +104,19 @@
99104
</exclusion>
100105
</exclusions>
101106
</dependency>
102-
107+
<dependency>
108+
<groupId>io.quarkus</groupId>
109+
<artifactId>quarkus-container-image-docker-deployment</artifactId>
110+
<version>${project.version}</version>
111+
<type>pom</type>
112+
<scope>test</scope>
113+
<exclusions>
114+
<exclusion>
115+
<groupId>*</groupId>
116+
<artifactId>*</artifactId>
117+
</exclusion>
118+
</exclusions>
119+
</dependency>
103120
</dependencies>
104121

105122
<build>
@@ -128,6 +145,26 @@
128145
<reuseForks>false</reuseForks>
129146
</configuration>
130147
</plugin>
148+
<plugin>
149+
<artifactId>maven-failsafe-plugin</artifactId>
150+
<executions>
151+
<execution>
152+
<goals>
153+
<goal>integration-test</goal>
154+
<goal>verify</goal>
155+
</goals>
156+
<configuration>
157+
<systemPropertyVariables>
158+
<native.image.path>${project.build.directory}/${project.build.finalName}-runner</native.image.path>
159+
<java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
160+
<maven.home>${maven.home}</maven.home>
161+
<quarkus.http.host>localhost</quarkus.http.host>
162+
<quarkus.http.port>8081</quarkus.http.port>
163+
</systemPropertyVariables>
164+
</configuration>
165+
</execution>
166+
</executions>
167+
</plugin>
131168
</plugins>
132169
</build>
133170

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.7
2+
# Dependencies for AWT
3+
RUN microdnf install freetype fontconfig \
4+
&& microdnf clean all
5+
WORKDIR /work/
6+
RUN chown 1001 /work \
7+
&& chmod "g+rwX" /work \
8+
&& chown 1001:root /work
9+
COPY --chown=1001:root target/*-runner /work/application
10+
# Permissions fix for Windows
11+
RUN chmod "ugo+x" /work/application
12+
EXPOSE 8081
13+
USER 1001
14+
15+
CMD ["./application", "-Dquarkus.http.host=0.0.0.0"]

0 commit comments

Comments
 (0)