Closed fu-hong-yi closed 3 months ago
testcontainers.properties is in classpath src/test/resources with testcontainers.reuse.enable=true
testcontainers.reuse.enable=true
should be add ~/.testcontainers.properties
. See https://java.testcontainers.org/features/reuse/
I was able to reproduce the problem. Closing in favor of https://github.com/testcontainers/testcontainers-java/issues/8814
Module
LocalStack
Testcontainers version
1.19.8
Using the latest Testcontainers version?
Yes
Host OS
Mac OS
Host Arch
ARM
Docker version
What happened?
Similar to #7097, it just doesn't seem to work? This is a local environment. The localstack container is re-created each time.
testcontainers.properties
is in classpathsrc/test/resources
withtestcontainers.reuse.enable=true
As can be seen in the logs, the mysql container with a similar configuration, is successfully reused. But the localstack container is getting re-created each time. ryuk is also started each time (without localstack and with just mysql container, ryuk is not started).
Relevant log output
Additional Information
No response