Releases: testcontainers/testcontainers-java
Releases · testcontainers/testcontainers-java
1.7.0
https://github.com/testcontainers/testcontainers-java/milestone/31?closed=1
This release brings:
- Maven BOM support (
org.testcontainers:testcontainers-bom:1.7.0
) - DockerCompose improvements: waiting strategies, log consumers, better defaults
- Various JDBC improvements
- Docker's built-in healthcheck support with
DockerHealthcheckWaitStrategy
- Auto detection of classpath's Selenium 3.x version
Changed
- Added compatibility with selenium greater than 3.X (#611)
- Abstracted and changed database init script functionality to support use of SQL-like scripts with non-JDBC connections. (#551)
- Added
JdbcDatabaseContainer(Future)
constructor. (#543) - Mark DockerMachineClientProviderStrategy as not persistable (#593)
- Added
waitingFor(String serviceName, WaitStrategy waitStrategy)
and overloadedwithExposedService()
methods toDockerComposeContainer
to allow user to defineWaitStrategy
for compose containers. (#174, #515 and (#600)) - Deprecated
WaitStrategy
and implementations in favour of classes with same names inorg.testcontainers.containers.strategy
(#600) - Added
ContainerState
interface representing the state of a started container (#600) - Added
WaitStrategyTarget
interface which is the target of the newWaitStrategy
(#600) - Breaking: Removed hard-coded
wnameless
Oracle database image name. Users should instead place a file on the classpath namedtestcontainers.properties
containingoracle.container.image=IMAGE
, where IMAGE is a suitable image name and tag/SHA hash. For information, the approach recommended by Oracle for creating an Oracle XE docker image is described here. - Added
DockerHealthcheckWaitStrategy
that is based on Docker's built-in healthcheck (#618). - Added
withLogConsumer(String serviceName, Consumer<OutputFrame> consumer)
method toDockerComposeContainer
(#605)
Fixed
- Fixed extraneous insertion of
useSSL=false
in all JDBC URL strings, even for DBs that do not understand it. Usage is now restricted to MySQL by default and can be overridden by authors ofJdbcDatabaseContainer
subclasses (#568) - Fixed
getServicePort
onDockerComposeContainer
throws NullPointerException if service instance number in not used. (#619) - Increase Ryuk's timeout and make it configurable with
ryuk.container.timeout
. (#621#635)
1.6.0
Fixed
- Fixed incompatibility of Docker-Compose container with JDK9. (#562)
- Fixed retrieval of Docker host IP when running inside Docker. (#479)
- Compose is now able to pull images from private repositories. (#536)
- Fixed overriding MySQL image command. (#534)
- Fixed shading for javax.annotation.CheckForNull (#563 and testcontainers/testcontainers-scala#11).
Changed
- Added JDK9 build and tests to Travis-CI. (#562)
- Added Kafka module (#546)
- Added "Death Note" to track & kill spawned containers even if the JVM was "kill -9"ed (#545)
- Environment variables are now stored as Map instead of List (#550)
- Added
withEnv(String name, Function<Optional<String>, String> mapper)
with optional previous value (#550) - Added
withFileSystemBind
overloaded method withREAD_WRITE
file mode by default (#550) - All connections to JDBC containers (e.g. MySQL) don't use SSL anymore. (#374)