-
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
Quarkus 3.17: DevServices unavailable in production mode #45065
Comments
/cc @geoand (devservices), @stuartwdouglas (devservices) |
Not than I am aware of cc @yrodiere |
Hey,
This just means the DB is not there. I don't understand how dev services would work when using Anyway, if you say it used to work, and Georgios agrees...
Please do. |
The only way dev services can work for prod mode is if you run |
@yrodiere : my understanding was that properties like @geoand: running with
|
Describe the bug
Hello,
I've read the
Migration Guide 3.17
and I'm aware about the modifications that this new release brings concerning the default properties setting.I'm not using reactive clients, just classical one and need to use DevServices to automatically start, in production mode, a PostgreSQL database. I know that this isn't recommended as DevServices are supposed to be used only in dev or test mode but, in my case, I find using them practical in order to test locally by running
java -jar ...
command.I have the following
application.properties
file:I get the following exception:
Adding the property:
to the configuration file raises:
Unless I'm mistaken, DevServices were working in production mode prior to 3.17. Am I missing anything here ?
Expected behavior
I expect that, given the defined properties, DevServices work in production mode.
Actual behavior
In production mode, no container is started and the database instance isn't available.
How to Reproduce?
Don't have a reproducer but I can provide one, if it makes sense.
Output of
uname -a
orver
Linux nicolas-XPS-15-9570 6.8.0-49-generic #49-Ubuntu SMP PREEMPT_DYNAMIC Mon Nov 4 02:06:24 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
Output of
java -version
java version "21.0.3" 2024-04-16 LTS Java(TM) SE Runtime Environment (build 21.0.3+7-LTS-152) Java HotSpot(TM) 64-Bit Server VM (build 21.0.3+7-LTS-152, mixed mode, sharing)
Quarkus version or git rev
3.17
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.9.5 (57804ffe001d7215b5e7bcb531cf83df38f93546) Maven home: /opt/apache-maven-3.9.5 Java version: 21.0.3, vendor: Oracle Corporation, runtime: /usr/lib/jvm/jdk-21-oracle-x64 Default locale: en_US, platform encoding: UTF-8 OS name: "linux", version: "6.8.0-49-generic", arch: "amd64", family: "unix"
Additional information
N/A
The text was updated successfully, but these errors were encountered: