quarkusio / quarkus

Quarkus: Supersonic Subatomic Java.
https://quarkus.io
Apache License 2.0
13.73k stars 2.67k forks source link

DevServices crashes immediately on Fedora #18577

Closed Sanne closed 3 years ago

Sanne commented 3 years ago

Describe the bug

Any attempt to start a test on Fedora results in this exception, since #18505 :

Build failure: Build failed due to errors
    [error]: Build step io.quarkus.datasource.deployment.devservices.DevServicesDatasourceProcessor#launchDatabases threw an exception: java.lang.IllegalArgumentException: port out of range:-1
    at java.base/java.net.InetSocketAddress.checkPort(InetSocketAddress.java:143)
    at java.base/java.net.InetSocketAddress.<init>(InetSocketAddress.java:188)
    at java.base/java.net.Socket.<init>(Socket.java:232)
    at io.quarkus.deployment.IsDockerWorking.getAsBoolean(IsDockerWorking.java:43)

The problem is that I have the DOCKER_HOST variable pointing to a unix socket: unix:/run/user/1000/podman/podman.sock; this is quite common among Fedora / RHEL users.

Podman otherwise works fine, so I'd prefer if the return of this method was true - not sure what do to. Perhaps just skip this check if DOCKER_HOST starts with unix: ?

quarkus-bot[bot] commented 3 years ago

/cc @stuartwdouglas