quarkusio / quarkus

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

devservices logs a warning when no docker daemon is running #18556

Closed Postremus closed 3 years ago

Postremus commented 3 years ago

Describe the bug

On my system, the docker daemon does not start automaticly. I have a local postgres installation. The warning from below is printed when running a quarkus 2.0.1.Final app with datasources in dev mode. I correctly configured the datasource, since the quarkus starts without other errors.

Expected behavior

No warning about missing datasource / docker when datasource is already configured.

Actual behavior

2021-07-09 10:47:58,982 WARN  [io.qua.dat.dep.dev.DevServicesDatasourceProcessor] (build-38) Please configure the datasource URL for the default datasource or ensure the Docker daemon is up and running.
__  ____  __  _____   ___  __ ____  ______ 
 --/ __ \/ / / / _ | / _ \/ //_/ / / / __/
 -/ /_/ / /_/ / __ |/ , _/ ,< / /_/ /\ \
--\___\_\____/_/ |_/_/|_/_/|_|\____/___/
2021-07-09 10:48:02,297 INFO  [io.quarkus] (Quarkus Main Thread) devservices-no-docker 1.0.0-SNAPSHOT on JVM (powered by Quarkus 2.0.1.Final) started in 5.354s. Listening on: http://localhost:8080
2021-07-09 10:48:02,299 INFO  [io.quarkus] (Quarkus Main Thread) Profile dev activated. Live Coding activated.
2021-07-09 10:48:02,300 INFO  [io.quarkus] (Quarkus Main Thread) Installed features: [agroal, cdi, hibernate-orm, jdbc-postgresql, narayana-jta, resteasy, resteasy-jackson, smallrye-context-propagation]

To Reproduce

Steps to reproduce the behavior:

  1. Download the reproducer: devservices-no-docker.zip
  2. Shut down docker
  3. mvn quarkus:dev
  4. The warning from above is printed, but the application starts

Configuration

quarkus.datasource.db-kind=postgresql
quarkus.datasource.username=postgres
quarkus.datasource.password=
quarkus.datasource.jdbc.url=jdbc:postgresql://localhost:5432/public
quarkus.hibernate-orm.database.generation=drop-and-create

Screenshots

(If applicable, add screenshots to help explain your problem.)

Environment (please complete the following information):

Output of uname -a or ver

MSYS_NT-10.0 NANB7NLNVP2 2.10.0(0.325/5/3) 2018-06-13 23:34 x86_64 Msys

Output of java -version

openjdk 11.0.7 2020-04-14 LTS OpenJDK Runtime Environment Zulu11.39+15-CA (build 11.0.7+10-LTS) OpenJDK 64-Bit Server VM Zulu11.39+15-CA (build 11.0.7+10-LTS, mixed mode)

Quarkus version or git rev

2.0.1.Final

Build tool (ie. output of mvnw --version or gradlew --version)

Apache Maven 3.8.1 (05c21c65bdfed0f71a2f2ada8b84da59348c4c5d) Maven home: C:\eclipse\tools\apache-maven\bin.. Java version: 11.0.7, vendor: Azul Systems, Inc., runtime: C:\eclipse\tools\java\11 Default locale: de_DE, platform encoding: Cp1252 OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"

quarkus-bot[bot] commented 3 years ago

/cc @stuartwdouglas