Karm / mandrel-integration-tests

Integration tests for GraalVM and its Mandrel distribution. Runs Quarkus, Helidon and Micronaut applications and small targeted reproducers. The focus is solely on native-image utility and compilation of Java applications into native executables.
Apache License 2.0
5 stars 3 forks source link

Runs ImageIO/Fonts drawing/AWT app also in a container, issues/36 #40

Closed Karm closed 3 years ago

Karm commented 3 years ago

The meat is in BuildAndRunCmds.java.

This PR adds a flow that builds the ImageIO/Fonts drawing/AWT app with a build image container and then runs it in another runtime container.

Note that until https://github.com/quarkusio/quarkus-images/pull/151 is merged, built and published there is no publicly available builder image with which this test passes.

My locally created builder image I tested it with is:

FROM quay.io/quarkus/ubi-quarkus-mandrel:21.1-java11
USER root
RUN microdnf install freetype-devel
 docker build --network=host -t karm/ubi-quarkus-mandrel:21.1-java11-pr-151 .

test suite run:

 mvn clean verify -Ptestsuite -DexcludeTags=all -DincludeTags=imageio -Dquarkus.native.builder-image=karm/ubi-quarkus-mandrel:21.1-java11-pr-151 -Dquarkus.native.container-runtime=docker