-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable DevService if docker is not running #16959
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we also get a better error message that mentions that docker is an option: https://github.com/stuartwdouglas/quarkus/blob/e7fc52bf892d4507a42cacf1e418feb81c570b39/extensions/agroal/runtime/src/main/java/io/quarkus/agroal/runtime/DataSources.java#L126
Basically if you are in dev or test mode with a DS that supports it it should say 'configure the URL or get a working docker', while for prod mode or for DB's that don't support it the message should stay the same.
@@ -11,8 +11,6 @@ | |||
|
|||
import org.jboss.logging.Logger; | |||
|
|||
import io.quarkus.deployment.util.ExecUtil; | |||
|
|||
public class DockerWorking implements BooleanSupplier { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you rename this class to IsDockerRunning
to match the existing BooleanSupplier
classes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also move it to the io.quarkus.deployment
package
Thanks for your reviews, I updated the code to address them :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's also disable it for the mongo extension dev services
Lines 39 to 42 in ba39f5d
@BuildStep(onlyIfNot = IsNormal.class) | |
public DevServicesMongoResultBuildItem startMongo(List<MongoConnectionNameBuildItem> mongoConnections, | |
MongoClientBuildTimeConfig mongoClientBuildTimeConfig, | |
LaunchModeBuildItem launchMode, |
This workflow status is outdated as a new workflow run has been triggered. 🚫 This workflow run has been cancelled. Failing Jobs - Building cf8f8ca
|
@machi1990 done! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks nice, thanks!
This workflow status is outdated as a new workflow run has been triggered. 🚫 This workflow run has been cancelled. Failing Jobs - Building 1524af2
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job!
I'm not sure the CI failure is related.. |
Doesn't seem to be |
This branch adds a check that looks for a running docker daemon. If it's not present, the
DevServicesDatasourceProcessor
build step is not triggered.close #16904