testcontainers-port-updater icon indicating copy to clipboard operation
testcontainers-port-updater copied to clipboard

Add support of testcontainers-spring-boot

Open ijusti opened this issue 5 months ago • 3 comments

Hello. Thanks for your effort. Very nice plugin. Please add support of testcontainers-spring-boot from the box.

Describe the solution you'd like Connect to the dbs started via testcontainers-spring-boot. May be parsed by properties in context.

Describe alternatives you've considered testcontainers-spring-boot supports many types of DBs.

Additional context Example of logs Started mariadb server. Connection details: {embedded.mariadb.port=50454, embedded.mariadb.host=localhost, embedded.mariadb.schema=test, embedded.mariadb.user=test, embedded.mariadb.password=test, embedded.mariadb.networkAlias=mariadb.testcontainer.docker, embedded.mariadb.internalPort=3306}, JDBC connection url: jdbc:mysql://localhost:50454/test

ijusti avatar Jun 11 '25 09:06 ijusti

Hello @ijusti 👋🏼

Many thanks for your interest in the plugin and raising a ticket to improve it.

Could you please send me an example project that I can use to reproduce your use case?

Greetings, Yusuf Ugur

yusufugurozbek avatar Jun 23 '25 08:06 yusufugurozbek

Thanks for your response. You can try any of the tests in the project. for example https://github.com/PlaytikaOSS/testcontainers-spring-boot/blob/develop/embedded-postgresql/src/test/java/com/playtika/testcontainer/postgresql/EmbeddedPostgreSQLBootstrapConfigurationTest.java At the same time latest IDEA versions provide such functionality from the box for spring projects.

ijusti avatar Jun 23 '25 13:06 ijusti

Thanks for the info @ijusti 🙏🏼 I no longer have access to a personal IntelliJ IDEA Ultimate license. Therefore, it will take time to find a solution to your request. Please be patient, and thanks in advance for your understanding.

yusufugurozbek avatar Jun 26 '25 09:06 yusufugurozbek