Most Spring Boot integration tests that use Testcontainers use the DockerImageNames
class to ensure the same container versions are used everywhere. Many of the Docker Compose files used in integration tests use container versions that are different from those in DockerImageNames
. This leads to more image pulls than is necessary, and increases build times. We should ensure the same image versions are used in all these cases.