question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Devservices must disabled themself if docker is not installed

See original GitHub issue

Description

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:closed
  • Created 2 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
famodcommented, Apr 29, 2021

@geoand Maybe io.quarkus.container.image.docker.deployment.DockerWorking could be reused in some way?

1reaction
geoandcommented, Apr 29, 2021

I can look at this some time next week if no one beats me to it

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found