testcontainers-java icon indicating copy to clipboard operation
testcontainers-java copied to clipboard

Support multiple init scripts in JdbcDatabaseContainer

Open savinov opened this issue 2 years ago • 3 comments

Inspired by PRs: #2578 and #1997 Closes #2232

savinov avatar Oct 18 '23 17:10 savinov

This feature is essential, the PR looks good, I hope it will be accepted as soon as possible, good work.

mrsofiane avatar Dec 11 '23 10:12 mrsofiane

This is a must-have feature. Could anyone please approve and merge this PR?

ujjaldey avatar May 04 '24 13:05 ujjaldey

Using private Map<String, String> initScriptPaths = new LinkedHashMap<>(); would support my use case #8634.

sdavids avatar May 15 '24 11:05 sdavids

Thanks for your contribution, @savinov !

eddumelendez avatar Jul 17 '24 04:07 eddumelendez

Looks like this change is breaking for the case when initScriptPath isn't provided. Then initScriptPaths is initialized with one null element, and then application failed when trying to get the resource in ScriptUtils.runInitScript() method.

Asya-Vorobyova avatar Jul 29 '24 12:07 Asya-Vorobyova

Looks like this change is breaking for the case when initScriptPath isn't provided. Then initScriptPaths is initialized with one null element, and then application failed when trying to get the resource in ScriptUtils.runInitScript() method.

Same issue

mikymigs avatar Jul 30 '24 14:07 mikymigs

@savinov could somebody fix it, please? Thnx in advance :)

Asya-Vorobyova avatar Aug 01 '24 16:08 Asya-Vorobyova