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

Adds fake JAVA_HOME to appease FontConfig #152

Closed Karm closed 1 year ago

Karm commented 1 year ago

It works both locally:

mvn clean verify -Ptestsuite -Dtest=AppReproducersTest#imageioAWTTest

and in a container:

mvn clean verify -Ptestsuite-builder-image -Dtest=AppReproducersTest#imageioAWTContainerTest -Dquarkus.native.builder-image=quay.io/karmkarm/ubi-quarkus-mandrel-builder-image:23.0-java20

How come it works in the container without creating those JAVA_HOME dirs in the container and copying .so files there? It's because the TS mounts the app dir, parent o the target dir:

docker run -u 1000:1000 -t -v /home/karm/workspaceRH/mandrel-integration-tests-Apr2023/apps/imageio:/work:z my-imageio-runner /work/target/imageio -Djava.home=. -Djava.awt.headless=true