What's Changed
While this release had a major focus on stability, we managed to optimize the startup sequence and it should make your tests even faster!
Here is what it takes to have a Redis up and running with Testcontainers, end-to-end from the test's start to an instance ready to be connected:
Before (1.17.1): 2.4s
Before (1.17.2): 1.7s ๐
And here is just the "initialize Testcontainers" measurements:
Before (1.17.1): 1102ms
Before (1.17.2): 928ms
How we did it? We noticed that we can cache a couple of Docker responses, plus also removed now obsolete (yet expensive!) disk space check.
๐ Features & Enhancements
- K3sContainer: expose kubeConfig for docker network access (#5097) @johnathana
- Remove the disk space check (#5381) @bsideup
- Use
GenericContainer
inRyukResourceReaper
(#5358) @bsideup - Allow insecure HTTPS/TLS connection for HttpWaitStrategy (#4951) @reta
- Read
indexServerAddress
from Docker's/info
(#5347) @bsideup - Allow to create exchanges, queues, bindings in the same vhost (#5348) @eddumelendez
- Test
DOCKER_HOST
inDockerClientProviderStrategy
(#5357) @bsideup - Add getConnectionString() for MongoDBContainer (#5271) @mdedetrich
- Rely on
TransportConfig
to readDOCKER_HOST
env variable forDockerComposeContainer
(#5276) @eddumelendez
๐ Bug Fixes
- Reset WebDriver and vncRecordingContainer when Selenium container stops (#5116) @tobiasstadler
- Synchronize removal of containers from JDBC URL cache (#4598) @edee111
- Fix deadlock in
LocalImagesCache
(#5356) @bsideup - Elasticsearch: Don't throw exception on missing CA cert file (#5265) @spinscale
- Fix connection leak in JDBC waitUntilContainerStarted (#5281) @rpygithub
๐ Documentation
- Add docs for using Gitlab CI with Docker wormhole executor (#4770) @JurrianFahner
- Remove "Linux - Travis CI"from docs (#4374) @cac03
- Add SeaTunnel to who is using testcontainers (#5272) @ruanwenjun
- Fix docs: use getHost (#5288) @eddumelendez
๐งน Housekeeping
- Fix TestcontainersTestDescription filename (#5387) @eddumelendez
- run
core
tests in parallel (#5365) @bsideup - Correct usage of deprecated method
createSubscription()
(#5350) @felix-seifert - Fix docs: use getHost (#5288) @eddumelendez
- Add testcontainers/java-team in CODEOWNERS (#5353) @eddumelendez
- Manage Gradle Enterprise plugins with Dependabot (#5342) @jprinet
- Use
getHost
instead ofgetContainerIpAddress()
(#5277) @eddumelendez
๐ฆ Dependency updates
- Upgrade lombok to be compatible with java 17 (#5388) @eddumelendez
- Combined dependencies PR (#5367) @eddumelendez
- Bump com.gradle.enterprise.gradle.plugin from 3.9 to 3.10 (#5343) @dependabot
- Use latest version of alpine/socat container image (#5280) @dboreham