-
"Model classes are defined for the default persistence unit but configured datasource not found: the default EntityManagerFactory will not be created. To solve this, configure the default datasource. Refer to https://quarkus.io/guides/datasource for guidance." Looks like this checks for a default data source: But in dev services, it mentions: "The database Dev Services will be enabled when a reactive or JDBC datasource extension is present in the application, and the database URL has not been configured. " I'm using Panache if that matters, but that error check is in the Hibernate code. I then added this to application.properties:
Now Agroal doesn't like this because database kind is "other" and it gets confused (probably should mention what to do on the Quarkus Deploying to Google Cloud docs...it's also using the wrong driver:
Is there any way to specify that dev services should run only in local dev to autostart a mysql testcontainer, but also specify the default JDBC URL so it uses mysql? This also seems like a bug or two? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
FYI, this happened because the %prod.quarkus.datasource.username and %prod.quarkus.datasource.password were reading blank system env vars |
Beta Was this translation helpful? Give feedback.
FYI, this happened because the %prod.quarkus.datasource.username and %prod.quarkus.datasource.password were reading blank system env vars