To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/549924C5-F1DA-4408-B2A5-F12D328F7EE8%40redhat.com.
I always been +1 for a quarkus:run thus +1 in general from me :)
> Hi everyone,
>
> In the past we have had requests for a run goal, however there has
> never
> really been a strong use case as it's simple to run the app directly.
>
> I think that DevServices may actually be that use case, to allow you
> to run
> production applications locally without configuring the DB etc. We
> already
> have the facilities in place to make this work (we use it for native
> tests), so it would really just be wiring up pieces that we already
> have.
>
> We could also make it work like @QuarkusIntegrationTest and launch
> native
> and docker images as well (depending on what was built last). This
> means
> you could write an app using devservices, build the container image
> and
> then run it locally without needing to configure anything.
not following what this means - having a build action depend on what was
last built feels wrong.
why would that not be explicitly controlled which thing you ask to run ?
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/CAD%2BL2cwbhOC6W1DfNLHg7wDpb%3D6vjObXbHY2Y3wLQk7nL5nwTg%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Quarkus Development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to quarkus-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/CAD%2BL2cyXDH7ERF%3Dth-%3DqTaHF3SQeZ43J-gpa-%2BOg6EYmOOSt7g%40mail.gmail.com.
Daniel oh
Senior PRINCIPAL TECHNICAL MARKETING MANAGER
agile & devops COMMUNITY OF PRACTICE manager
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/CAPp4%3DaFjWcuZ0WaeDC8cQYXXWZXdpPU8E0RvbXeSy1XWYmERgw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/CAJLxjVFuasrdT%3D%3DcR9WpUFcW7fLuBB9cqjxAhiF3%2B9mdA5q%2BTw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/CAFx%3DKgceU10FXa0naLkbaeQdQOif%2B-E63fn%2Bqjki9X%3DNA9d%2BTw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/CAFif860%2Bm2J%2BckgzeLnwUJtJkPJKkMF1S4LAs0_p2f-Wzv3d%3DQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/CAKU9E9tbwmVMYNbAhO%2B9kUDxHXjs9X%3DUuNgz4EK5iTF%3DTV2o2g%40mail.gmail.com.
On 03. 06. 21 11:46, Max Andersen wrote:
> It’s so you don’t have to remember nor care which jar you need to pass
> to Java -jar target/…
Well, Stuart's proposal is more than that. It includes automagical
startup/init/destroy of DevServices. And I believe that these services
should be always configured explicitly in production mode. Maybe I'm too
paranoid but I smell a misuse that may result in unexpected failures of
all kinds.
In other words, I think that DevServices should be used in some kind of
dev mode and not in anything that is perceived as and used as a
"production facility".
To unsubscribe from this group and stop receiving emails from it, send an email to quarkus-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/7bc578db-479a-f8d9-44d0-205b28f76d4f%40redhat.com.
On 1 Jun 2021, at 12:30, Stuart Douglas wrote:
Well if I run:
mvn package -Dquarkus.package.type=native
then run:
mvn quarkus:run
It would run the native image I just built, rather than an older jar based app that may have been hanging around. Same with docker, if I built with quarkus.container-image.build=true then ran mvn quarkus:run it would launch that image.
This does not feel right - how will you know which of possible multiple outputs in target to use ?
I would expect it to be something like:
mvn quarkus:run -Dquarkus.package.type=native
to have it do the native build if needed and then run the native.
and mvn quarkus:run
runs whatever the default is setup for.
/max
https://xam.dk/about
/max
https://xam.dk/about
-Jason
> The main reason why I think this makes sense is that DevServices allows you to
> avoid configuring your
> application locally, but then if you want to test that app locally in
> production mode you can't.
I get your point about testing the app locally in production mode but
quarkus:run does not sound like something that would be used for this
case. It says: "run the quarkus app". And even if we document that it
should not be used for production I bet there will be users who will try
to because the zero-config is tempting.
Sure, you can misuse quarkus:dev in a similar way but at least the name
of the goal is clear.
To unsubscribe from this group and stop receiving emails from it, send an email to quarkus-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/CAD%2BL2cy1tXuq%2BoPDpDyfdURw-qencZV9%3DaPri-M7cBfBxg2c0g%40mail.gmail.com.
So many other frameworks has a :run command available from maven/gradle.
A warning would good - but I really don't share any concern about this being misused in production.
Those who do would likely also just run quarkus:dev in production because thats even easier to use
and update...right ? :)
/max
/max
https://xam.dk/about