Devservices must disabled themself if docker is not installed
See original GitHub issueDescription
Currently, when docker is not installed, devservices that is enabled by default try to launch a database and fails with the following error :
2021-04-28 20:45:25,128 INFO [org.tes.doc.DockerMachineClientProviderStrategy] (build-11) docker-machine executable was not found on PATH (...)
2021-04-28 20:45:55,371 ERROR [org.tes.doc.DockerClientProviderStrategy] (build-11) Could not find a valid Docker environment. Please check configuration. Attempted configurations were:
2021-04-28 20:45:55,372 ERROR [org.tes.doc.DockerClientProviderStrategy] (build-11) NpipeSocketClientProviderStrategy: failed with exception TimeoutException (Timeout waiting for result with exception). Root cause NoSuchFileException (\\.\pipe\docker_engine)
2021-04-28 20:45:55,372 ERROR [org.tes.doc.DockerClientProviderStrategy] (build-11) As no valid configuration was found, execution cannot continue
2021-04-28 20:45:55,377 ERROR [io.qua.dep.dev.IsolatedDevModeMain] (main) Failed to start quarkus: java.lang.RuntimeException: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
This is not very developer friendly, it feels like Docker is needed for Quarkus dev mode and people may think the only way to solve this is to install docker.
See this Zulip thread for more detail: https://quarkusio.zulipchat.com/#narrow/stream/187030-users/topic/Qarkus.20dev.20fails.20on.20new.20version
Implementation ideas
Auto-disable devservices in case Docker is not installed. The default error message will be displayed around datasource not configured.
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
DevServices 2.0 - Google Groups
If a developer does not have docker installed, but does have access ... as dev services targets, and have them automatically wire themselves...
Read more >Docker Engine post-installation steps
On some Linux distributions, the system automatically creates this group when installing Docker Engine using a package manager. In that case, there is...
Read more >Dev Services for Databases - Quarkus
Depending on your database type you may need Docker installed in order to use ... If you want to use Dev Services then...
Read more >quarkusio/quarkus 2.0.0.Alpha2 on GitHub - NewReleases.io
... #16904 - Devservices must disabled themself if docker is not installed; #16903 - When using random ports in a docker test, resort...
Read more >Docker driver - Nomad - HashiCorp Developer
If you set the group network.mode = "bridge" you should not set the Docker config network_mode , or the container will be unable...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@geoand Maybe
io.quarkus.container.image.docker.deployment.DockerWorking
could be reused in some way?I can look at this some time next week if no one beats me to it