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

Deal with rootless container engine #180

Closed Karm closed 7 months ago

Karm commented 10 months ago

our

    public static String getUnixUIDGID() {
        final UnixSystem s = new UnixSystem();
        return s.getUid() + ":" + s.getGid();
    }

Makes builder image to run as -u 1000:1000, while it should be -u 0 in a rootless case.

It's a somewhat niche thing as our CI does not have rootless by default. TS breaks on my rootless Docker Ubuntu test VM though.

Karm commented 7 months ago

This is controllable by https://github.com/Karm/mandrel-integration-tests/blob/master/testsuite/src/it/java/org/graalvm/tests/integration/utils/Commands.java#L79

closing