Search code examples
dockerquarkus

Quarkus Hibernate ignoring import.sql when running inside docker


I have the problem that when I run quarkus in a container it does not use the import.sql that is present. I tried every way I could think of to configure it. As stated in the documentation under the config properties it should use the import.sql if the profile is set to dev.

Is anybody able to help here?

I tried as exaplained in the docs. When running normally from the commandline and not in a container the debug log shows that the property for hibernate to use the import.sql is set correctly. Inside the container it is left blank.


Solution

  • I think you're after this feature: https://github.com/quarkusio/quarkus/issues/21866

    See in particular: https://github.com/quarkusio/quarkus/issues/21866#issuecomment-1046997899