I usually run my spring-boot-test junit sql tests on a Testcontainers setup like this:
spring.datasource.url=jdbc:tc:mariadb:10.5.8:///test
spring.datasource.username=test
spring.datasource.password=test
Question: when I omit the docker image value, like spring.datasource.url=jdbc:tc:mariadb:///test, how can I force to always use a fixed docker image version?
My goal is to provide a test-commons.jar that every project should include. So projects should all use the same default mariadb image defined in the commons jar, and not set the image explicit themselves.
Is that possible?
spring.datasource.urlis just a spring property and there are many ways to configure that; but I might be missing something here