Releases: testcontainers/testcontainers-java
1.12.5
What's Changed
🚀 Features
- Move
execInContainer
andcopy*
toContainerState
(#2176) @bsideup - Use
inspectNetworkCmd
to get the gateway's IP (#2151) @bsideup - Improve Docker Compose error messaging (#2154) @rnorth
- RabbitMQ: add vhost parameter for policies (#1701) @twillouer
- Accept GenericContainer subclasses in deepStart (#2221) @findepi
🐛 Bug Fixes
- Prevent duplicate attempts to start Ryuk container (#2245) @rnorth
- Remove stray 'KB' suffix from docker build context size log mes… (#2214) @rnorth
- JDBC: Fix parsing empty connection parameters (#2207) @findepi
- Fix framing in OkHttp transport (#2155) @bsideup
- do not implicitly connect to Kafka network (#2139) @bsideup
- Truncate mode bits for z/OS file permissions (#2023) @aguibert
- Fix
DockerClientFactory#dockerHostIpAddress
(#2119) @bsideup - Fix use of bash-specific /proc/net/tcp* check in InternalCommandPortListeningCheck t… (#2195) @perlun
- Include only published projects into BOM (#2118) @bsideup
📖 Documentation
- Replace unicode characters in strings with unicode escape seque… (#2261) @rnorth
- Add example for nginx module (#2027) @worldtiki
- Mention
testcontainers-bom
in "Maven dependencies" section of… (#2178) @eaxdev - Add Vert.x SQL Client to Userlist (#2211) @BillyYccc
- Add GitHub action to automatically update docs version (#2122) @rnorth
- Use Python 3.7 for netlify doc generation (#2143) @rnorth
- Add Infinispan to "Who is using Testcontainers" (#2136) @tristantarrant
- Add XWiki to "Who is using Testcontainers" (#2117) @vmassol
- Fix anchor link for link to feature description (#2257) @spottedmahn
🧹 Housekeeping
- GitHub Actions checkout v2 (#2212) @sullis
- Add GitHub action to automatically update docs version (#2122) @rnorth
- Refactor deprecated Mockito API usages (#2039) @pivovarit
- Set AWS credentials for the build cache in AZP (#2138) @bsideup
- Use Python 3.7 for netlify doc generation (#2143) @rnorth
- GHA-based in-docker testing (#2121) @bsideup
- Restore Travis Release automation (#2279) @rnorth
- Bump flaky annotation review dates (#2248) @rnorth
- Remove duplicated DockerImageNameTest test case (#2040) @pivovarit
📦 Dependency updates
Click to expand...
- Bump mysql-connector-java from 8.0.18 to 8.0.19 in /modules/jun… (#2244) @dependabot-preview
- Bump junit from 4.12 to 4.13 in /examples (#2220) @dependabot-preview
- Bump mysql-connector-java from 8.0.18 to 8.0.19 in /modules/mysql (#2241) @dependabot-preview
- Bump mysql-connector-java from 8.0.18 to 8.0.19 in /modules/spock (#2242) @dependabot-preview
- Bump pulsar-client from 2.4.1 to 2.5.0 in /modules/pulsar (#2252) @dependabot-preview
- Bump okhttp from 3.14.4 to 3.14.5 in /examples (#2230) @dependabot-preview
- Bump mariadb-java-client from 2.5.2 to 2.5.3 in /modules/mariadb (#2233) @dependabot-preview
- Bump HikariCP from 3.4.1 to 3.4.2 in /modules/junit-jupiter (#2235) @dependabot-preview
- Bump HikariCP from 3.4.1 to 3.4.2 in /modules/spock (#2236) @dependabot-preview
- Bump testng from 7.1.0 to 7.1.1 in /examples (#2200) @dependabot-preview
- Bump slf4j-api from 1.7.29 to 1.7.30 in /examples (#2190) @dependabot-preview
- Bump mockito-core from 3.2.0 to 3.2.4 in /core (#2186) @dependabot-preview
- Bump slf4j-api from 1.7.29 to 1.7.30 in /core (#2188) @dependabot-preview
- Bump vault-java-driver from 5.0.0 to 5.1.0 in /modules/vault (#2187) @dependabot-preview
- Bump mockito-core from 3.2.0 to 3.2.4 in /modules/junit-jupiter (#2189) @dependabot-preview
- Bump elasticsearch-rest-client from 7.5.0 to 7.5.1 in /modules/elasticsearch (#2197) @dependabot-preview
- Bump jedis from 3.1.0 to 3.2.0 in /core (#2183) @dependabot-preview
- Bump jedis from 3.1.0 to 3.2.0 in /modules/junit-jupiter (#2181) @dependabot-preview
- Bump kafka-clients from 2.3.1 to 2.4.0 in /modules/kafka (#2182) @dependabot-preview
- Bump jedis from 3.1.0 to 3.2.0 in /examples (#2184) @dependabot-preview
- Bump testng from 7.0.0 to 7.1.0 in /examples (#2164) @dependabot-preview
- Bump influxdb-java from 2.16 to 2.17 in /modules/influxdb (#2157) @dependabot-preview
- Bump org.springframework.boot from 2.2.1.RELEASE to 2.2.2.RELEASE in /examples (#2161) @dependabot-preview
- Bump postgresql from 42.2.8 to 42.2.9 in /modules/spock (#2158) @dependabot-preview
- Bump postgresql from 42.2.8 to 42.2.9 in /examples (#2162) @dependabot-preview
- Bump postgresql from 42.2.8 to 42.2.9 in /modules/postgresql (#2159) @dependabot-preview
- Bump postgresql from 42.2.8 to 42.2.9 in /modules/junit-jupiter (#2160) @dependabot-preview
- Bump mongo-java-driver from 3.11.2 to 3.12.0 in /core (#2168) @dependabot-preview
- Bump tomcat-jdbc from 9.0.29 to 9.0.30 in /modules/mariadb (#2172) @dependabot-preview
- Bump tomcat-jdbc from 9.0.29 to 9.0.30 in /modules/mysql (#2174) @dependabot-preview
- Bump amqp-client from 5.7.3 to 5.8.0 in /core (#2173) @dependabot-preview
- Bump elasticsearch-rest-client from 7.4.0 to 7.5.0 in /modules/elasticsearch (#2142) @dependabot-preview
- Bump vibur-dbcp from 22.2 to 25.0 in /modules/mysql (#2130) @dependabot-preview
- Bump mockito-core from 3.1.0 to 3.2.0 in /core (#2129) @dependabot-preview
- Bump vibur-dbcp from 22.2 to 25.0 in /modules/mariadb (#2128) @dependabot-preview
- Bump mockito-core from 3.1.0 to 3.2.0 in /modules/junit-jupiter (#2131) @dependabot-preview
- Bump java-client from 2.7.10 to 2.7.11 in /modules/couchbase (#2150) @dependabot-preview
1.12.4
What's Changed
🚀 Features
- Hash copied files (#2055) @bsideup
- Rework KafkaContainer (do not run a sub-process) (#2078) @bsideup
- Image pull policy (#1345) (#2024) @dmarkhas @bsideup
- Upgrade docker-compose image to latest version and perform dire… (#1847) @rnorth
- Lazily create/set Network in KafkaContainer (#2079) @bsideup
- Add read timeout to http wait strategy (#2058) @dweidenfeld
- Add
reused
parameter to the hooks (#2052) @bsideup - Check container's status if
WaitStrategy
fails. (#1837) @bsideup - Add docker compose support for --build and --rmi options (#1625, #1336, #924) @lightoze @sonerd @rnorth
- Localstack support for HOSTNAME_EXTERNAL (#1891) @rnorth
- Slf4jLogConsumer improvements (#1986) @toadzky
🐛 Bug Fixes
- Stabilize CouchbaseContainer by merging the Socat command (#2081) @bsideup
- Make
Startables#deepStart
always iterate sequentially (#2053) @pivovarit - Fix session label when reuse is not supported but requested (#2051) @bsideup
- Fix docker image name parsing bugs (#2022) @rnorth
📖 Documentation
- Add Transferwise to "Who is using Testcontainers" (#2105) @muzir
- Add Marquez as user (#2060) @wslulciuc
- Fix typo in docs/modules/databases/index.md (#2043) @f-lopes
- Slf4j log consumer improvements - add docs (#2016) @rnorth
🧹 Housekeeping
- Basic GitHub Action for release (#1991) @rnorth
- Add GHA for Release Drafter (#2109) @bsideup
- Switch to publishing non-delomboked sources (#1788) @rnorth
- Break up quickstart example projects and introduce JUnit 5 refe… (#1416 #2097) @bmuschko @rnorth
- Restore Flaky on couchbase tests (#2106) @bsideup
- Add Gradle wrapper to examples/ that points to the parent's wrapper (#2077) @bsideup
- Fix vault module, add new test with java client v2 (#1791) @Casz
- Tidy code style in CommandLine.java (#2004) @yorlov
- Mock TestcontainersConfiguration in ReusabilityUnitTests (#2080) @bsideup
- Future-proofing TestEnvironmentTest (#2036) @pivovarit
📦 Dependency updates
Click to expand...
- Bump mariadb-java-client from 2.5.1 to 2.5.2 in /modules/mariadb (#2098) @dependabot-preview
- Bump aws-java-sdk-s3 from 1.11.680 to 1.11.683 in /modules/loca… (#2103) @dependabot-preview
- Bump java-client from 2.7.9 to 2.7.10 in /modules/couchbase (#2057) @dependabot-preview
- Bump tomcat-jdbc from 9.0.27 to 9.0.29 in /modules/mysql (#2095) @dependabot-preview
- Bump aws-java-sdk-s3 from 1.11.636 to 1.11.680 in /modules/loca… (#2094) @dependabot-preview
- Bump tomcat-jdbc from 9.0.27 to 9.0.29 in /modules/mariadb (#2096) @dependabot-preview
- Bump slf4j-api from 1.7.28 to 1.7.29 in /core (#2030) @dependabot-preview
- Bump mongo-java-driver from 3.11.1 to 3.11.2 in /core (#2035) @dependabot-preview
- Bump org.springframework.boot from 2.2.0.RELEASE to 2.2.1.RELEA… (#2042) @dependabot-preview
- Bump slf4j-api from 1.7.28 to 1.7.29 in /examples (#2031) @dependabot-preview
- Bump jna-platform from 5.4.0 to 5.5.0 in /core (#2017) @dependabot-preview
- Bump vault-java-driver from 4.0.0 to 5.0.0 in /modules/vault (#2019) @dependabot-preview
- Bump assertj-core from 3.12.0 to 3.14.0 in /modules/vault (#2018) @dependabot-preview
- Bump assertj-core from 3.13.2 to 3.14.0 in /modules/kafka (#2008) @dependabot-preview
- Bump assertj-core from 3.13.2 to 3.14.0 in /core (#2005) @dependabot-preview
- Bump kafka-clients from 2.3.0 to 2.3.1 in /modules/kafka (#2002) @dependabot-preview
- Bump assertj-core from 3.13.2 to 3.14.0 in /modules/database-co… (#2007) @dependabot-preview
- Bump assertj-core from 3.13.2 to 3.14.0 in /modules/neo4j (#2006) @dependabot-preview
- Bump assertj-core from 3.13.2 to 3.14.0 in /modules/pulsar (#2009) @dependabot-preview
- Bump influxdb-java from 2.15 to 2.16 in /modules/influxdb (#2010) @dependabot-preview
1.12.3
What's Changed
🚀 Features
- Reusable containers (stage 1, alpha) (#1781) @bsideup
- Allow @testcontainers to be inherited from superclass (#1843) (#2001) @bmuskalla
- Add support for DockerClient event streaming (#1886) @mitchjust
- Automatically set SHM for selenium container, and allow SHM size to be configured (#1751) @glefloch
- Add cockroach db support (#499) @tolkonepiu
🐛 Bug Fixes
- Always copy to "/" (root). Fixes #1954 (#1956) @bsideup
- Fix for streaming readBytes timeout on Windows (#1947) @rnorth
- ConnectionWrapper#rollback(Savepoint) delegates to wrong method #1909 (#1937) @MariuszCwikla
- fix typo in "stepfunctions" LocalStack's service name (#1930) @glefloch
📖 Documentation
- Added documentation example of using local Docker Compose (#1987) @jonathanvila
- Update example dependency specified in junit_5.md (#1817) @sghill
- Add a simple example with how to use the mock server container (#1950) @worldtiki
- Remove
hostname
andport
from JDBC examples to avoid confusion (#1786) @bsideup
🧹 Housekeeping
- Lock the version of AWS S3 SDK in the build script. (#1955) @bsideup
- Fix use of SHM for Selenium containers on Windows (#1948) @rnorth
- Bump flaky test review dates (#1952) @rnorth
- Update Gradle to 5.6.2 (#1510) @kiview
📦 Dependency updates
- Bump org.springframework.boot from 2.1.9.RELEASE to 2.2.0.RELEASE in /examples (#1985) @dependabot-preview
- Bump mysql-connector-java from 8.0.17 to 8.0.18 in /modules/jun… (#1971) @dependabot-preview
- Bump cucumber-java from 4.7.4 to 4.8.0 in /examples (#1974) @dependabot-preview
- Bump mysql-connector-java from 8.0.17 to 8.0.18 in /modules/spo… (#1972) @dependabot-preview
- Bump tomcat-jdbc from 9.0.26 to 9.0.27 in /modules/mysql (#1969) @dependabot-preview
- Bump mysql-connector-java from 8.0.17 to 8.0.18 in /modules/mys… (#1968) @dependabot-preview
- Bump cucumber-junit from 4.7.4 to 4.8.0 in /examples (#1973) @dependabot-preview
- Bump mariadb-java-client from 2.5.0 to 2.5.1 in /modules/mariadb (#1983) @dependabot-preview
- Bump tomcat-jdbc from 9.0.26 to 9.0.27 in /modules/mariadb (#1967) @dependabot-preview
- Bump mongo-java-driver from 3.11.0 to 3.11.1 in /core (#1970) @dependabot-preview
- Bump okhttp from 3.14.2 to 3.14.4 in /core (#1924) @dependabot-preview
- Bump jna-platform from 5.3.1 to 5.4.0 in /core (#1796) @dependabot-preview
- Bump gson from 2.8.5 to 2.8.6 in /examples (#1960) @dependabot-preview
- Bump cucumber-junit from 4.7.2 to 4.7.4 in /examples (#1957) @dependabot-preview
- Bump cucumber-java from 4.7.2 to 4.7.4 in /examples (#1958) @dependabot-preview
- Bump mockito-core from 3.0.0 to 3.1.0 in /core (#1932) @dependabot-preview
- Bump org.springframework.boot from 2.1.8.RELEASE to 2.1.9.RELEASE in /examples (#1944) @dependabot-preview
- Bump elasticsearch-rest-client from 7.3.2 to 7.4.0 in /modules/elasticsearch (#1934) @dependabot-preview
- Bump rest-assured from 4.1.1 to 4.1.2 in /modules/vault (#1943) @dependabot-preview
- Bump mariadb-java-client from 2.4.4 to 2.5.0 in /modules/mariadb (#1942) @dependabot-preview
- Bump mockito-core from 3.0.0 to 3.1.0 in /modules/junit-jupiter (#1931) @dependabot-preview
- Bump okhttp from 3.14.3 to 3.14.4 in /examples (#1925) @dependabot-preview
- Bump lettuce-core from 5.1.8.RELEASE to 5.2.0.RELEASE in /examples (#1919) @dependabot-preview
1.12.2
What's Changed
🚔 Security
- Reduce logs in EnvironmentAndSystemPropertyClientProviderStrategy (#1913) @rnorth. This fixes an issue (#1912) whereby docker registry credentials could be logged:
- if credentials were hardcoded in
~/.docker/config.json
and - if Testcontainers detected environment variables/system properties (such as
DOCKER_HOST
) which set/override the address of the docker daemon.
- if credentials were hardcoded in
We recommend that you check recent CI logs for any accidentally logged credentials, and apologise for the inconvenience. Please see below for an example of the log message, which occurs during initial connection to the Docker daemon.
INFO o.t.d.DockerClientProviderStrategy - Found Docker environment with Environment
variables, system properties and defaults. Resolved:
dockerHost=unix:///var/run/docker.sock
apiVersion='{UNKNOWN_VERSION}'
registryUrl='https://index.docker.io/v1/'
registryUsername='...'
registryPassword='...'
registryEmail='...'
dockerConfig='DefaultDockerClientConfig[dockerHost=
unix:///var/run/docker.sock,registryUsername=...,registryPassword=<...>,
registryEmail=<...>,registryUrl=https://index.docker.io/v1/,
dockerConfigPath=/home/user/.docker,sslConfig=<null>,
apiVersion={UNKNOWN_VERSION},dockerConfig=<null>]'
has been changed to:
INFO o.t.d.DockerClientProviderStrategy - Found Docker environment with Environment
variables, system properties and defaults. Resolved dockerHost=unix:///var/run/docker.sock
Other changes
- Make LocalStack image configurable (#1873) @aosagie
- Use official Oracle JDBC driver for Testcontainers' own tests (#73) (#1899) @kaiwinter
📖 Documentation
- add wescale as happy user (#1887) @atomfrede
- add jhipster as user (#1838) @atomfrede
📦 Dependency updates
Click to expand...
- Bump commons-dbutils from 1.6 to 1.7 in /modules/oracle-xe (#1905) @dependabot-preview
- Bump aws-java-sdk-sqs from 1.11.635 to 1.11.636 in /modules/localstack (#1901) @dependabot-preview
- Bump aws-java-sdk-sqs from 1.11.633 to 1.11.635 in /modules/localstack (#1896) @dependabot-preview
- Bump tomcat-jdbc from 9.0.24 to 9.0.26 in /modules/mysql (#1894) @dependabot-preview
- Bump HikariCP from 3.4.0 to 3.4.1 in /modules/spock (#1888) @dependabot-preview
- Bump tomcat-jdbc from 9.0.24 to 9.0.26 in /modules/mariadb (#1895) @dependabot-preview
- Bump HikariCP from 3.4.0 to 3.4.1 in /modules/junit-jupiter (#1889) @dependabot-preview
- Bump aws-java-sdk-sqs from 1.11.632 to 1.11.633 in /modules/localstack (#1885) @dependabot-preview
- Bump HikariCP from 3.3.1 to 3.4.0 in /modules/junit-jupiter (#1883) @dependabot-preview
- Bump aws-java-sdk-sqs from 1.11.631 to 1.11.632 in /modules/localstack (#1884) @dependabot-preview
- Bump HikariCP from 3.3.1 to 3.4.0 in /modules/spock (#1882) @dependabot-preview
- Bump postgresql from 42.2.7 to 42.2.8 in /modules/postgresql (#1876) @dependabot-preview
- Bump postgresql from 42.2.7 to 42.2.8 in /modules/spock (#1878) @dependabot-preview
- Bump postgresql from 42.2.7 to 42.2.8 in /examples (#1879) @dependabot-preview
- Bump mariadb-java-client from 2.4.3 to 2.4.4 in /modules/mariadb (#1875) @dependabot-preview
- Bump postgresql from 42.2.7 to 42.2.8 in /modules/junit-jupiter (#1877) @dependabot-preview
- Bump aws-java-sdk-sqs from 1.11.630 to 1.11.631 in /modules/localstack (#1869) @dependabot-preview
- Bump elasticsearch-rest-client from 7.3.1 to 7.3.2 in /modules/elasticsearch (#1870) @dependabot-preview
- Bump lombok from 1.18.8 to 1.18.10 in /examples (#1867) @dependabot-preview
- Bump aws-java-sdk-sqs from 1.11.629 to 1.11.630 in /modules/localstack (#1866) @dependabot-preview
- Bump postgresql from 42.2.6 to 42.2.7 in /modules/postgresql (#1857) @dependabot-preview
- Bump okhttp from 3.14.2 to 3.14.3 in /examples (#1861) @dependabot-preview
- Bump postgresql from 42.2.6 to 42.2.7 in /examples (#1862) @dependabot-preview
- Bump postgresql from 42.2.6 to 42.2.7 in /modules/spock (#1860) @dependabot-preview
- Bump aws-java-sdk-sqs from 1.11.628 to 1.11.629 in /modules/localstack (#1858) @dependabot-preview
- Bump postgresql from 42.2.6 to 42.2.7 in /modules/junit-jupiter (#1856) @dependabot-preview
- Bump junit-jupiter-engine from 5.5.1 to 5.5.2 in /modules/junit-jupiter (#1840) @dependabot-preview
- Bump aws-java-sdk-sqs from 1.11.626 to 1.11.628 in /modules/localstack (#1852) @dependabot-preview
- Bump httpclient from 4.5.9 to 4.5.10 in /modules/junit-jupiter (#1851) @dependabot-preview
- Bump junit-jupiter-api from 5.5.1 to 5.5.2 in /modules/junit-jupiter (#1842) @dependabot-preview
- Bump httpclient from 4.5.9 to 4.5.10 in /modules/spock (#1850) @dependabot-preview
- Bump rest-assured from 4.1.0 to 4.1.1 in /modules/vault (#1839) @dependabot-preview
- Bump testng from 6.14.3 to 7.0.0 in /examples (#1756) @dependabot-preview
1.12.1
What's Changed
🚀 Features
- Use "copy" strategy in
withClasspathResourceMapping
where appropriate (#1814) @bsideup - Speed up listening port detection by running the checks as a single command (#1782) @bsideup
- RabbitMQ: Support legacy RabbitMQ configuration format (#1692) @twillouer
- Separate "environment" and "classpath" properties (for global things) (#1784) @bsideup
- Add check for compatible Docker OS type, to fail gracefully if Docker daemon does not support Linux containers (#1780) @Casz
🐛 Bug Fixes
- Fix credentials when using a helper that returns a token (#1734) @rszewczyk
- Reinstate retries for image pulls (#1712) @rnorth
- Amend container shutdown to catch and log for all Exception classes (#1663) @rnorth
- Coordinate image removals after stopping containers (#1745) @aguibert
- RabbitMQ: fix typo in binding command (#1792) @glefloch
- Fix Deprecated MySQL Class Name warnings (#1760) @turackangal
- Exclude jna transitive dependency from visible-assertions to reconcile versions (#1744) @eggilbert
📖 Documentation
- Fix Javadoc error (#1812, #1813) @rnorth
- update latest version with 1.12.0 (#1800) @ryukato
- Add docker-compose.yml to simplify local doc development (#1653) @mikesir87
- Update copyright notices (#1691) @twillouer
- Add networking documentation (#1651) @mikesir87
- Add Micronaut Data to who is using (#1717) @graemerocher
- Add a basic documentation page for RabbitMQ module (#1661) @rnorth
- Add link to DB2 module docs, and add incubating note to page (#1660) @rnorth
🧹 Housekeeping
Click to expand...
- Add test to demonstrate fix for #1452 (loss of whitespace in sp… (#1702) @rnorth
- Add more labels to the Stale bot's config (#1810) @bsideup
- Disable Travis for all but master branch builds (#1720) @rnorth
- Add docker-compose.yml to simplify local doc development (#1653) @mikesir87
- Add Maven Central as a fallback for dependency download (#1710) @rnorth
- Fix fixed host port test (#1355) @glebsts
- Mark toxiproxy tests as flaky pending further analysis (#1772) @rnorth
- JUnit rule for flaky test retry (#1680) @rnorth
📦 Dependency updates
Click to expand...
- Bump org.springframework.boot from 2.1.7.RELEASE to 2.1.8.RELEASE in /examples (#1831) @dependabot-preview
- Bump aws-java-sdk-sqs from 1.11.625 to 1.11.626 in /modules/localstack (#1830) @dependabot-preview
- Bump aws-java-sdk-sqs from 1.11.624 to 1.11.625 in /modules/localstack (#1829) @dependabot-preview
- Bump pulsar-client from 2.4.0 to 2.4.1 in /modules/pulsar (#1825) @dependabot-preview
- Bump aws-java-sdk-sqs from 1.11.623 to 1.11.624 in /modules/localstack (#1826) @dependabot-preview
- Bump neo4j from 3.5.8 to 3.5.9 in /modules/neo4j (#1823) @dependabot-preview
- Bump amqp-client from 5.7.2 to 5.7.3 in /core (#1818) @dependabot-preview
- Bump aws-java-sdk-sqs from 1.11.622 to 1.11.623 in /modules/localstack (#1819) @dependabot-preview
- Bump slf4j-api from 1.7.26 to 1.7.28 in /core (#1805) @dependabot-preview
- Bump rest-assured from 4.0.0 to 4.1.0 in /modules/vault (#1820) @dependabot-preview
- Bump commons-compress from 1.18 to 1.19 in /core (#1804) @dependabot-preview
- Bump cucumber-java from 4.7.1 to 4.7.2 in /examples (#1812) @dependabot-preview
- Bump aws-java-sdk-sqs from 1.11.621 to 1.11.622 in /modules/localstack (#1811) @dependabot-preview
- Bump cucumber-junit from 4.7.1 to 4.7.2 in /examples (#1809) @dependabot-preview
- Bump aws-java-sdk-sqs from 1.11.620 to 1.11.621 in /modules/localstack (#1808) @dependabot-preview
- Bump aws-java-sdk-sqs from 1.11.619 to 1.11.620 in /modules/localstack (#1803) @dependabot-preview
- Bump mongo-java-driver from 3.10.2 to 3.11.0 in /core (#1795) @dependabot-preview
- Bump aws-java-sdk-sqs from 1.11.618 to 1.11.619 in /modules/localstack (#1793) @dependabot-preview
- Bump mockito-core from 2.28.2 to 3.0.0 in /modules/junit-jupiter (#1636) @dependabot-preview
- Bump jedis from 3.0.1 to 3.1.0 in /core (#1656) @dependabot-preview
- Bump snakeyaml from 1.21 to 1.25 in /core (#1742) @dependabot-preview
- Bump assertj-core from 3.12.2 to 3.13.2 in /core (#1789) @dependabot-preview
- Bump selenium-firefox-driver from 3.14.0 to 3.141.59 in /examples (#1748) @dependabot-preview
- Bump aws-java-sdk-sqs from 1.11.616 to 1.11.618 in /modules/localstack (#1785) @dependabot-preview
- Bump mockito-core from 2.28.2 to 3.0.0 in /core (#1635) @dependabot-preview
- Bump elasticsearch-rest-client from 6.7.1 to 7.3.1 in /modules/elasticsearch (#1779) @dependabot-preview
- Bump aws-java-sdk-sqs from 1.11.615 to 1.11.616 in /modules/localstack (#1768) @dependabot-preview
- Bump aws-java-sdk-sqs from 1.11.613 to 1.11.615 in /modules/localstack (#1762) @dependabot-preview
- Bump tomcat-jdbc from 9.0.22 to 9.0.24 in /modules/mysql (#1755) @dependabot-preview
- Bump aws-java-sdk-sqs from 1.11.612 to 1.11.613 in /modules/localstack (#1754) @dependabot-preview
- Bump tomcat-jdbc from 9.0.22 to 9.0.24 in /modules/mariadb (#1753) @dependabot-preview
- Bump aws-java-sdk-sqs from 1.11.611 to 1.11.612 in /modules/localstack (#1750) @dependabot-preview
- Bump aws-java-sdk-sqs from 1.11.610 to 1.11.611 in /modules/localstack (#1747) @dependabot-preview
- Bump org.springframework.boot from 2.1.6.RELEASE to 2.1.7.RELEASE in /examples (#1736) @dependabot-preview
- Bump java-client from 2.7.7 to 2.7.9 in /modules/couchbase (#1714) @dependabot-preview
- Bump lettuce-core from 5.1.7.RELEASE to 5.1.8.RELEASE in /examples (#1696) @dependabot-preview
- Bump aws-java-sdk-sqs from 1.11.609 to 1.11.610 in /modules/localstack (#1741) @dependabot-preview
- Bump aws-java-sdk-sqs from 1.11.608 to 1.11.609 in /modules/localstack (#1735) @dependabot-preview
- Bump assertj-core from 3.13.1 to 3.13.2 in /modules/kafka (#1707) @dependabot-preview
- Bump mariadb-java-client from 2.4.2 to 2.4.3 in /modules/mariadb (#1704) @dependabot-preview
- Bump slf4j-api from 1.7.26 to 1.7.28 in /examples (#1730) @dependabot-preview
- Bump pulsar-client from 2.3.2 to 2.4.0 in /modules/pulsar (#1729) @dependabot-preview
- Bump assertj-core from 3.13.1 to 3.13.2 in /modules/neo4j (#1708) @dependabot-preview
- Bump assertj-core from 3.13.1 to 3.13.2 in /modules/database-commons (#1705) @dependabot-preview
- Bump aws-java-sdk-sqs from 1.11.604 to 1.11.608 in /modules/localstack (#1728) @dependabot-preview
- Bump assertj-core from 3.13.1 to 3.13.2 in /modules/pulsar (#1703) @dependabot-preview
- Bump aws-java-sdk-sqs from 1.11.601 to 1.11.604 in /modules/localstack (#1709) @dependabot-preview
- Bump jedis from 3.0.1 to 3.1.0 in /examples (#1686) @dependabot-preview
- Bump assertj-core from 3.12.2 to 3.13.1 in /modules/database-commons (#1685) @dependabot-preview
- Bump jedis from 3.0.1 to 3.1.0 in /modules/junit-jupiter (#1657) @dependabot-preview
- Bump assertj-core from 3.12.2 to 3.13.1 in /modules/pulsar (#1684) @dependabot-preview
- Bump cucumber-junit from 4.6.0 to 4.7.1 in /examples (#1676) @dependabot-preview
- Bump assertj-core from 3.12.2 to 3.13.1 in /modules/neo4j (#1681) @dependabot-preview
- Bump aws-java-sdk-sqs from 1.11.599 to 1.11.601 in /modules/localstack (#1682) @dependabot-preview
- Bump assertj-core from 3.12.2 to 3.13.1 in /modules/kafka (#1683) @dependabot-preview
- Bump mysql-connector-java from 8.0.16 to 8.0.17 in /modules/junit-jupiter (#1658) @dependabot-preview
- Bump mysql-connector-java from 8.0.16 to 8.0.17 in /modules/spock (#1634) @dependabot-preview
- Bump cucumber-java from 4.6.0 to 4.7.1 in /examples (#1677) @dependabot-preview
- Bump aws-java-sdk-sqs from 1.11.598 to 1.11.599 in /modules/localstack (#1667) @dependabot-preview
- Bump aws-java-sdk-sqs from 1.11.597 to 1.11.598 in /modules/localstack (#1664) @dependabot-preview
1.12.0
What's Changed
🚀 Features
-
Add DB2 module (#1611) @aguibert
As a result of our collaboration with @aguibert and @irinadel from IBM, we're happy to bring DB2 support to Testcontainers 🎉 It of course works with the JDBC URL support too! It means you can spin up a real instance of DB2 in your tests with one line:
jdbc:tc:db2:///databasename
.
For more info, check the module's page: https://www.testcontainers.org/modules/databases/db2/ -
Implement
dependsOn
for cross-container dependencies (#1404) @bsideupEver wanted to wait for container B before starting container A? We got you covered 😎
With the new
dependsOn
method, it is now possible to model a graph of dependencies between your containers:@Rule KafkaContainer kafka = new KafkaContainer(); @Rule SchemaRegistryContainer schemaRegistryContainer = new SchemaRegistryContainer("5.2.1") .withKafka(kafka) .dependsOn(kafka);
-
Improve pull handling (#1320) @rnorth
Pulling images is sometimes a long running process. And, as with every long running process, having some sort of a visualization could help understanding what is going on!
Before:
11:15:50.598 INFO 🐳 [ibmcom/db2express-c:latest] - Pulling docker image: ibmcom/db2express-c:latest. Please be patient; this may take some time but only needs to be done once.
Oh yeah, it will take some time 😅
After:
19:34:25.198 INFO 🐳 [ibmcom/db2express-c:latest] - Pulling image 19:34:25.198 INFO 🐳 [ibmcom/db2express-c:latest] - Pulling image layers: 0 pending, 0 downloaded, 0 extracted, (0 bytes/0 bytes) 19:34:25.967 INFO 🐳 [ibmcom/db2express-c:latest] - Pulling image layers: 12 pending, 1 downloaded, 0 extracted, (32 bytes/? MB) 19:34:27.363 INFO 🐳 [ibmcom/db2express-c:latest] - Pulling image layers: 11 pending, 2 downloaded, 0 extracted, (1 MB/? MB) 19:34:58.519 ERROR 🐳 [ibmcom/db2express-c:latest] - Docker image pull has not made progress in 30s - aborting pull 19:34:58.564 ERROR 🐳 [ibmcom/db2express-c:latest] - Failed to pull image: ibmcom/db2express-c:latest. Please check output of `docker pull ibmcom/db2express-c:latest`
(Note that it detected a problem with pulling and reported it, hinting you how to debug it!)
-
Add RabbitMQ module (#1449) @martingreber
Hey, 🐰 fans! How flexible do you think RabbitMQ can be? That flexible:
RabbitMQContainer container = new RabbitMQContainer() .withVhost("vhost1") .withVhostLimit("vhost1", "max-connections", 1) .withVhost("vhost2", true) .withExchange("direct-exchange", "direct") .withExchange("topic-exchange", "topic") .withQueue("queue1") .withQueue("queue2", true, false, ImmutableMap.of("x-message-ttl", 1000)) .withBinding("direct-exchange", "queue1") .withUser("user1", "password1") .withUser("user2", "password2", ImmutableSet.of("administrator")) .withPermission("vhost1", "user1", ".*", ".*", ".*") .withPolicy("max length policy", "^dog", ImmutableMap.of("max-length", 1), 1, "queues") .withPolicy("alternate exchange policy", "^direct-exchange", ImmutableMap.of("alternate-exchange", "amq.direct")) .withOperatorPolicy("operator policy 1", "^queue1", ImmutableMap.of("message-ttl", 1000), 1, "queues") .withPluginsEnabled("rabbitmq_shovel", "rabbitmq_random_exchange");
-
Allow JUnit Jupiter tests to be disabled when Docker is unavailable (#1530) @wilkinsona
Thanks to our friends from Spring Boot (who also happened to use Testcontainers a lot 😁), it is now possible to skip JUnit Platform-based tests if Docker is not available:
@Testcontainers(disabledWithoutDocker = true) class SomeIntegrationTest { // ... }
-
Fail fast if
container_name
is set in Docker Compose file (#1581) @bsideupTestcontainers does not support
container_name
property because it breaks the service discovery, but, before this change, the tests were failing without pointing to the problem.
Thanks to the initial work from @mumukiller, it will fail fast if the property is presented. -
Add new
withDockerfile
methods toImageFromDockerfile
(#1535) @aguibertImageFromDockerfile
should respect the.dockerignore
file from now on. -
Enable command override for PostgreSQLContainer (#938) @kellen
-
Simplify Kafka container by deferring the Kafka command (#1458) @bsideup
🧹 Housekeeping
-
Azure Pipelines for Windows testing (#1363) @bsideup
This one is not a feature, but an exciting change! We now test every master build (and some PRs) on Windows!
Since it requires running a real Windows machine, we have to host it ourselves.
P.S. consider contacting us if you have a few spare Windows nodes ;)
🐛 Bug Fixes
- Improve splitting of SQL scripts into statements (#1627) @rnorth
- catch exception when trying to kill dead container (#1420) @chungngoops
📖 Documentation
📦 Dependency updates
- Upgrade duct-tape library (#1433) @rnorth
- Upgrade localstack and enable new services (#1504) @rnorth
- Bumped up default version of Confluent Platform to the current 5.2.1 (Kafka container) (#1446) @wlsc
- Bump docker-java from 3.1.0-rc-4 to 3.1.5 in /core (#1649) @dependabot-preview @bsideup
- Bump mysql-connector-java from 8.0.16 to 8.0.17 in /modules/mysql (#1633) @dependabot-preview
- Bump aws-java-sdk-sqs from 1.11.594 to 1.11.597 in /modules/localstack (#1654) @dependabot-preview
- Bump junit-jupiter-api from 5.5.0 to 5.5.1 in /modules/junit-jupiter (#1638) @dependabot-preview
- Bump junit-jupiter-engine from 5.5.0 to 5.5.1 in /modules/junit-jupiter (#1642) @dependabot-preview
- Bump neo4j from 3.5.7 to 3.5.8 in /modules/neo4j (#1640) @dependabot-preview
- Bump amqp-client from 5.7.1 to 5.7.2 in /core (#1588) @dependabot-preview
- Bump cucumber-junit from 4.5.4 to 4.6.0 in /examples (#1619) @dependabot-preview
- Bump cucumber-java from 4.5.4 to 4.6.0 in /examples (#1620) @dependabot-preview
- Bump aws-java-sdk-sqs from 1.11.479 to 1.11.594 in /modules/localstack (#1626) @dependabot-preview
- Bump cucumber-java from 4.5.1 to 4.5.4 in /examples (#1615) @dependabot-preview
- Bump cucumber-junit from 4.5.1 to 4.5.4 in /examples (#1614) @dependabot-preview
- Bump tomcat-jdbc from 9.0.21 to 9.0.22 in /modules/mysql (#1599) @dependabot-preview
- Bump tomcat-jdbc from 9.0.21 to 9.0.22 in /modules/mariadb (#1600) @dependabot-preview
1.11.4
What's Changed
🚀 Features
- Add support for tmpfs to ContainerDatabaseDriver (#1500, #1239) @sparsick
- Docker Compose: Allow specific services to be started (#1528, #1497) @HaMatthias
🐛 Bug Fixes
- Fix docker registry auth parsing of GCR json key format credentials (#1492) @atomfrede
- Support MySQL 8 (#1470) @rnorth
- Remove internet connectivity dependency from test (#1502) @rnorth
📖 Documentation
- Add minimal docs describing Drone CI usage (#1505) @rnorth
- Add spock quickstart documentation (#1499) @RSchlenker
- Remove broken link to roadmap (#1511) @Spedge
- Replace deprecated RestClient.performRequest() (#1494) @izeye
- Fix typo in docs (describe use of stop() method rather than close()) (#1479) @izeye
- Fix initscript typo in documentation (#1491) @izeye
- Add Zalando SE as users (#1542) @iCubeDm
📦 Dependency updates
Click to expand...
- Bump httpclient from 4.5.8 to 4.5.9 in /core (#1544) @dependabot-preview
- Bump neo4j from 3.5.6 to 3.5.7 in /modules/neo4j (#1586) @dependabot-preview
- Bump cucumber-junit from 4.5.0 to 4.5.1 in /examples (#1584) @dependabot-preview
- Bump cucumber-java from 4.5.0 to 4.5.1 in /examples (#1583) @dependabot-preview
- Bump cucumber-java from 4.4.0 to 4.5.0 in /examples (#1580) @dependabot-preview
- Bump cucumber-junit from 4.4.0 to 4.5.0 in /examples (#1579) @dependabot-preview
- Bump junit-jupiter-engine from 5.4.2 to 5.5.0 in /modules/junit-jupiter (#1577) @dependabot-preview
- Bump kafka-clients from 2.2.1 to 2.3.0 in /modules/kafka (#1565) @dependabot-preview
- Bump postgresql from 42.2.5 to 42.2.6 in /modules/junit-jupiter (#1559) @dependabot-preview
- Bump mockserver-client-java from 5.5.1 to 5.5.4 in /modules/mockserver (#1438) @dependabot-preview
- Bump postgresql from 42.2.5 to 42.2.6 in /examples (#1561) @dependabot-preview
- Bump postgresql from 42.2.5 to 42.2.6 in /modules/postgresql (#1560) @dependabot-preview
- Bump postgresql from 42.2.5 to 42.2.6 in /modules/spock (#1558) @dependabot-preview
- Bump cucumber-java from 4.3.1 to 4.4.0 in /examples (#1553) @dependabot-preview
- Bump cucumber-junit from 4.3.1 to 4.4.0 in /examples (#1555) @dependabot-preview
- Bump org.springframework.boot from 2.1.5.RELEASE to 2.1.6.RELEASE in /examples (#1556) @dependabot-preview
- Bump lettuce-core from 5.1.6.RELEASE to 5.1.7.RELEASE in /examples (#1554) @dependabot-preview
- Bump httpclient from 4.5.8 to 4.5.9 in /modules/spock (#1545) @dependabot-preview
- Bump mariadb-java-client from 2.4.1 to 2.4.2 in /modules/mariadb (#1551) @dependabot-preview
- Bump httpclient from 4.5.8 to 4.5.9 in /modules/junit-jupiter (#1543) @dependabot-preview
- Bump tomcat-jdbc from 9.0.20 to 9.0.21 in /modules/mysql (#1539) @dependabot-preview
- Bump tomcat-jdbc from 9.0.20 to 9.0.21 in /modules/mariadb (#1538) @dependabot-preview
- Bump java-client from 2.7.6 to 2.7.7 in /modules/couchbase (#1536) @dependabot-preview
- Bump lettuce-core from 5.1.1.RELEASE to 5.1.6.RELEASE in /examples (#1526) @dependabot-preview
- Bump kafka-clients from 2.2.0 to 2.2.1 in /modules/kafka (#1522) @dependabot-preview
- Bump pulsar-client from 2.3.1 to 2.3.2 in /modules/pulsar (#1517) @dependabot-preview
- Bump okhttp from 3.13.1 to 3.14.2 in /examples (#1478) @dependabot-preview
- Bump okhttp from 3.12.1 to 3.14.2 in /core (#1475) @dependabot-preview
- Bump mockito-core from 2.27.0 to 2.28.2 in /core (#1512) @dependabot-preview
- Bump tomcat-jdbc from 9.0.19 to 9.0.20 in /modules/mariadb (#1469) @dependabot-preview
- Bump amqp-client from 5.7.0 to 5.7.1 in /core (#1501) @dependabot-preview
- Bump jna-platform from 5.2.0 to 5.3.1 in /core (#1437) @dependabot-preview
- Bump neo4j from 3.5.5 to 3.5.6 in /modules/neo4j (#1498) @dependabot-preview
- Bump java-client from 2.7.4 to 2.7.6 in /modules/couchbase (#1493) @dependabot-preview
- Bump neo4j-java-driver from 1.7.4 to 1.7.5 in /modules/neo4j (#1477) @dependabot-preview
1.11.3
What's Changed
- (JUnit 5) Add field name to ExtensionConfigurationException message (#1488) @anandProDev
🐛 Bug Fixes
- Redirect Docker-Compose stderr to INFO logger (#1485) @kiview
- Fix ScriptUtils splitting with Windows EOF (#1467) @ppfeiler
- Support SELF typing for OracleContainer (#1425) @mumukiller
📖 Documentation
- Fix formatting bug in databases documentation (#1484) @izeye
- Added example for MongoDB containers (#1288) @slu-it
- Add documentation for Bitbucket Pipelines (#1439) @mschnitzler
- Configure boomper probot (#1409) @rnorth
- Add Lightbend to the "Who is using" list (#1464) @ennru
📦 Dependency updates
- Bump org.springframework.boot from 2.1.4.RELEASE to 2.1.5.RELEASE in /examples (#1471) @dependabot
- Bump cucumber-junit from 4.3.0 to 4.3.1 in /examples (#1461) @dependabot
- Bump tomcat-jdbc from 9.0.19 to 9.0.20 in /modules/mysql (#1468) @dependabot
- Bump neo4j-java-driver from 1.7.3 to 1.7.4 in /modules/neo4j (#1451) @dependabot
- Bump rest-assured from 3.3.0 to 4.0.0 in /modules/vault (#1460) @dependabot
- Bump lombok from 1.18.6 to 1.18.8 in /examples (#1462) @dependabot
- Bump cucumber-java from 4.3.0 to 4.3.1 in /examples (#1463) @dependabot
- Bump org.springframework.boot from 2.1.2.RELEASE to 2.1.4.RELEASE in /examples (#1443) @dependabot
- Bump junit-jupiter-api from 5.4.1 to 5.4.2 in /modules/junit-jupiter (#1365) @dependabot
- Bump pulsar-client from 2.3.0 to 2.3.1 in /modules/pulsar (#1402) @dependabot
- Bump mockito-core from 2.26.0 to 2.27.0 in /core (#1382) @dependabot
- Bump neo4j from 3.5.4 to 3.5.5 in /modules/neo4j (#1426) @dependabot
- Bump mysql-connector-java from 8.0.14 to 8.0.16 in /modules/mysql (#1427) @dependabot
- Bump mysql-connector-java from 8.0.15 to 8.0.16 in /modules/junit-jupiter (#1428) @dependabot
- Bump mysql-connector-java from 8.0.15 to 8.0.16 in /modules/spock (#1429) @dependabot
1.11.2
What's Changed
🚀 Features
- Add build args and Dockerfile path override to ImageFromDockerfile (#1372) @rnorth
- Modify
exposeHostPorts
to allow host port and container port to be configured with different values (#1334) @bopi- - Improve WaitAllStrategy (#1272, #1400) @michael-simons, @kiview, @rnorth
- Make StartupCheckStrategy timeout value configurable (#1308) @mimfgg
🐛 Bug Fixes
- Use tagged version of
sshd
when exposing host ports (#1407, #1391) @rnorth - Fix shading configuration to also apply it to modules (#1390, #1342) @bsideup
Other changes
- ScriptUtils: avoid repeated, unnecessary, calls to toLowerCase() (#1397, #1396) @mumukiller
- Update default PostgreSQL image from 9.6.8 -> 9.6.12 (#1350) @sullis
- Override close method of Network without throws statement (#1392, #1389) @mumukiller
📦 Dependency updates
- Bump transport from 6.6.2 to 6.7.0 in /modules/elasticsearch (#1344) @dependabot[bot]
- Bump elasticsearch-rest-client from 6.6.2 to 6.7.0 in /modules/elasticsearch (#1343) @dependabot[bot]
- Bump neo4j from 3.5.3 to 3.5.4 in /modules/neo4j (#1368) @dependabot[bot]
- Bump elasticsearch-rest-client from 6.7.0 to 6.7.1 in /modules/elasticsearch (#1369) @dependabot[bot]
- Bump junit-jupiter-engine from 5.4.1 to 5.4.2 in /modules/junit-jupiter (#1364) @dependabot[bot]
- Bump httpclient from 4.5.7 to 4.5.8 in /modules/spock (#1353) @dependabot[bot]
- Bump httpclient from 4.5.7 to 4.5.8 in /modules/junit-jupiter (#1352) @dependabot[bot]
- Bump httpclient from 4.5.7 to 4.5.8 in /core (#1351) @dependabot[bot]
- Bump transport from 6.7.0 to 6.7.1 in /modules/elasticsearch (#1370) @dependabot[bot]
- Bump mockito-core from 2.25.1 to 2.26.0 in /core (#1366) @dependabot[bot]
- Bump amqp-client from 5.6.0 to 5.7.0 in /core (#1367) @dependabot[bot]
- Bump kafka-clients from 2.1.1 to 2.2.0 in /modules/kafka (#1338) @dependabot[bot]
- Bump mongo-java-driver from 3.10.1 to 3.10.2 in /core (#1374) @dependabot[bot]
- Bump cucumber-java from 2.3.1 to 4.3.0 in /examples (#1394) @dependabot[bot]
- Bump tomcat-jdbc from 9.0.17 to 9.0.19 in /modules/mysql (#1401) @dependabot[bot]
- Bump tomcat-jdbc from 9.0.17 to 9.0.19 in /modules/mariadb (#1403) @dependabot[bot]
1.11.1
What's Changed
🚀 Features
🐛 Bug Fixes
- Toxiproxy: Fix bug which would prevent creation of multiple proxies (#1335) @worldtiki
📦 Dependency updates
- Bump spock-core from 1.0-groovy-2.4 to 1.3-groovy-2.5 in /modules/spock (#1291) @dependabot[bot]