zonkyio / embedded-database-spring-test

A library for creating isolated embedded databases for Spring-powered integration tests.
Apache License 2.0
399 stars 37 forks source link

Does Zonkyio docker provider allow for custom entry command? #237

Closed thangnguyen-69 closed 1 year ago

thangnguyen-69 commented 1 year ago

As the title said. Currently it seems like the entry command for docker provided (at least in Postgresql Container) is always hardcoded to postgresql -c FSYNC_OFF_OPTION . It would be very helpful if we can customize the command instead of this, like for debugging purpose when i want to run 'postgresql -c log_statement=true' but it get overridden by zonkyio. Is there any attempt to make, or consider this feature at the moment?

tomix26 commented 1 year ago

You can use the following configuration property: zonky.test.database.postgres.server.properties.log_statement=all

tomix26 commented 1 year ago

There is more info about it here: https://github.com/zonkyio/embedded-database-spring-test#postgresql-configuration

thangnguyen-69 commented 1 year ago

Understood, many thanks to you!