docker-maven-plugin(io.fabric8) – 如何控制pg_hba.conf和postgresql.conf

我正在使用Maven插件io.fabric8:docker-maven-plugin在集成testing期间产生PostgreSQL数据库。 这将启动Docker容器中的PostgreSQL。 这很好。 我正在做如下:

<plugin> <groupId>io.fabric8</groupId> <artifactId>docker-maven-plugin</artifactId> <version>0.22.1</version> <executions> <execution> <id>start</id> <phase>pre-integration-test</phase> <goals> <goal>start</goal> </goals> <configuration> <images> <image> <name>postgres:9</name> <run> <ports> <port>5432:5432</port> </ports> <wait> <log>database system is ready to accept connections</log> </wait> </run> </image> </images> </configuration> </execution> <execution> <id>stop</id> <phase>post-integration-test</phase> <goals> <goal>stop</goal> </goals> </execution> </executions> </plugin> 

对于某些function(复制相关的任务),我需要能够改变pg_hba.conf (添加复制用户)和postgresql.conf (添加复制槽)。 这可以通过Maven插件吗?