Replies: 1 comment 1 reply
-
Yes, it is a build time property because it actually affects quite a lot of things. It's hard to know exactly what you could do without having all the info but I have seen people:
Anyway, I would recommend to have a look at the two approaches and if they are feasible for you and solve your problem. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
i am working on a quarkus application that should support mssql and postgresql. since the db-kind property is a build-time property i can't simply use an env variable to switch between database vendors.
currently we are using the approach to have two executions in the quarkus maven plugin and basically creating the quarkus-app twice. this leads also to two containers with -mssql and -postgresql suffix.
i am not really happy with this solution because i'd actually prefer to ultimately get some all-in-one solution where an env variable defines which database should be used. one idea that came to my mind was to put both quarkus-app-* folders into the container and let the entrypoint decide which app to start. despite the container size that would be the preferable solution.
are there any other ways to do this ? i didn't find anything and wonder if i am the first person to have this issue/requirement.
looking forward to any input :)
Beta Was this translation helpful? Give feedback.
All reactions