-
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
Introduce DevServices in quarkus:run Maven goal #40270
Comments
/cc @quarkusio/devtools (maven), @stuartwdouglas (devservices) |
@aloubyansky I opened #40273 as a draft. It's pretty hacky, but I don't see really see a better way around it given how |
Allow quarkus:run to launch DevServices
How do I as user turn this on/off ? The main idea of quarkus:run is to have something closer to prod meaning hooking up docker functionality is not (always) wanted. |
The same way you would for regular dev services, i.e. you provide the appropriate configuration option. |
We should have some doc about it |
Seems like it it's only documented in Azure Functions, so we should probably document it in the Maven and Gradle guides |
But that then impliess to me that when I use Quarkus:run there is "stuff" added to the classpath and startup that would not be present when I do jar run? This should imo be a deliberate choice or at least be possible to completely turn off as I wouldn't otherwise be able to test how the Quarkus run behaves in prod like setup. |
Ie. Quarkus run should fail fast rather than spend time hooking up to docker (which can be quite slow!). It could then show command option to run to enable those services ? WDYT? |
Alternative - make a devrun action. |
Not true |
The mechanism is the same as used in |
So the wiring up start of services is done outside the actually run Quarkus process ? |
Yes |
okey, but still should have a way to turn this explicit off IMO. I would even suggest it is something that should be turned on. quarkus:run is supposed to fail/start fast and get as close to same behavior as a jar run. |
I don't really agree, as it makes |
I'm also not convinced it's a good idea. Dev Services were specifically designed for dev mode and I wouldn't expect them to run for |
That same argument could have been used against their use in |
We can always make this opt-in |
Description
Currently
mvn quarkus:run
simply runs the built artifact, but it would be very handy if it also setup DevServices in a similar manner as@QuarkusIntegrationTest
does.Implementation ideas
No response
The text was updated successfully, but these errors were encountered: