1.15.0-rc1
版本发布时间: 2020-07-20 03:25:50
testcontainers/testcontainers-java最新发布版本:1.20.2(2024-10-01 06:18:31)
What's Changed
This is a release candidate build for version 1.15.0, including a large number of small but noticeable changes.
At least one further release candidate build is expected before 1.15.0 final, and some API changes may still be made. We would encourage users to upgrade to this release candidate version if possible, and to give us feedback on any issues that are encountered.
Notable changes
-
Add a rootless Docker strategy (#2985) @bsideup. This allows Testcontainers to be used with Docker's rootless mode. All Testcontainers' features and modules are compatible with Docker rootless mode, but we would appreciate feedback on unidentified edge cases.
-
Deprecate ambiguous constructors (#2839) @rnorth. This change affects the majority of constructors for container classes. This is intended to encourage users to specify an exact docker image and tag for dependencies, rather than relying on a (potentially outdated) default image chosen by Testcontainers.
-
new XyzContainer()
-style andnew XyzContainer(String)
-style constructors are deprecated throughout, in favour of a strongly typednew XyzContainer(DockerImageName)
-style constructor. - Users should identify an appropriate Docker image for their test dependencies, and use as follows:
new XyzContainer( DockerImageName.parse( "the/image:tag" ) )
. - We expect to make some further improvements in this area before the final 1.15.0 release.
-
-
Un-shade docker-java-api (#2882) @bsideup. This change follows some significant refactoring of the docker-java library, and should resolve various issues associated with shading of dependencies.
-
New optional transport based on Apache HttpClient5. This is a very promising transport that most probably will become the default in future versions of Testcontainers. You can give it a try by putting
transport.type = httpclient5
to$HOME/.testcontainers.properties
.
⚠️ Breaking API changes
While we expect that the vast majority of users will notice no difference, these changes can be considered breaking, so warrant special mention:
- Un-shade docker-java-api (#2882) @bsideup
- Remove deprecated implicit network in
KafkaContainer
(#2932) @bsideup - Clean up deprecated methods (#2835) @bsideup
- Migrate postgis image to the postgis/postgis docker hub repo. (#2797) @Sanych
☠️ Deprecations
- Deprecate ambiguous constructors (#2839) @rnorth.
🚀 Features & Enhancements
- Add a rootless Docker strategy (#2985) @bsideup
- Maintain deterministic order in withCopyFileToContainer (#2897) @findepi
- Couchbase: include error response from Couchbase in checkSuccessfulResponse() (#3006) @aaronjwhiteside
- Allow overriding detected host (#2991) @bsideup
- Use
EnvAndSysPropClientProviderStrategy
only ifDOCKER_HOST
is set (#2987) @bsideup - Un-shade docker-java-api (#2882) @bsideup
- Method to enable functions worker in pulsar container (#2711) @lanwen
- Remove deprecated implicit network in
KafkaContainer
(#2932) @bsideup - Do not resolve
LazyFuture
fromRemoteDockerImage#toString
(#2930) @bsideup - Cache Ryuk's failure to prevent the double start (#2935) @bsideup
- Upgrade to docker-java 3.2.2, try Apache HttpClient5 (#2803) @bsideup
- Use testcontainers/* Docker Hub images (#2850) @bsideup
- Enable AWS KMS For LocalStack 0.10.8 (#2812) @SahilWadhwa
- Add acceptLicense method to MSSQLServerContainer (#2085) @KyleAure
- Update to latest LocalStack container and support unified port mode (#2825) @artamonovkirill
🐛 Bug Fixes
- Fix PrestoContainer WaitStrategy regex (#2992) @MrBuddyCasino
- Fix local Docker Compose (#2998) @bsideup
- Pin version of RabbitMQ image to
3.7.25-management-alpine
(#2941) @rnorth - Run correct subset of docker compose containers when
withServices
/withScaledService
used (#2922) @rnorth - Fix log-related leaks (#2883) @bsideup
- Avoid connection leaks in
LogUtils
(#2834) @bsideup
📖 Documentation
- Add fkorotkov to backers (#2997) @rnorth
- Convert Docs for the Junit5 (#2977) @raynigon
- Add breaking change and deprecation sections to release notes (#2978) @rnorth
- Adapt docs to non deprecated way of setting --memory and --memory-swap (#2511) @tschmidt01
- Add Windows Server 2019 as unsupported to docs (#2963) @kiview
- Add user from Apache SkyWalking (#2967) @kezhenxu94
- Add backers (#2958) @rnorth
- Convert Docs for Kafka Module #1158 (#2925) @raynigon
- Convert Docs for Webdriver Containers (#2927) @raynigon
- Add initial bounty policy documentation. (#2954) @rnorth
- Convert Docs for the Spock Testframework (#2928) @raynigon
- Use codeinclude for Elasticsearch Module (#2828) @raynigon
- Update Windows docs for WSL2 (#2816) @kiview
- Update Mysql and Postgres tests example URLs (#2832) @muzir
- Added jOOQ to the who's using section, and me to the backers section (#2996) @lukaseder
🧹 Housekeeping
- RabbitMQ: correct
shouldMountConfigurationFileSysctl
test so that it exercises thewithRabbitMQConfigSysctl
method (#2945) @JeanBaptisteWATENBERG - Delete pom.xml in examples/singleton-container (#2937) @bsideup
- Continue on ciMate's error (#2933) @bsideup
- Pin registry image used for testing (#2926) @rnorth
- upgrade to Dependabot 2 (#2898) @sullis
- Fix compilation error related to unicode in source code (#2464) @trexinc
- Hard deprecate
ProxiedUnixSocketClientProviderStrategy
(#2851) @bsideup - Migrate postgis image to the postgis/postgis docker hub repo. (#2797) @Sanych
- Switch to latest v5 release of release-drafter (#2815) @jetersen
📦 Dependency updates
Click to expand...
- Bump cucumber-java from 5.7.0 to 6.1.1 in /examples (#2919) @dependabot
- Bump aws-java-sdk-dynamodb from 1.11.812 to 1.11.816 in /modules/dynalite (#2976) @dependabot
- Bump pulsar-client-admin from 2.5.1 to 2.6.0 in /modules/pulsar (#2975) @dependabot
- Bump aws-java-sdk-s3 from 1.11.812 to 1.11.816 in /modules/localstack (#2973) @dependabot
- Bump s3 from 2.13.46 to 2.13.50 in /modules/localstack (#2972) @dependabot
- Bump tomcat-jdbc from 9.0.36 to 9.0.37 in /modules/jdbc (#2971) @dependabot
- Bump rest-assured from 4.3.0 to 4.3.1 in /modules/vault (#2970) @dependabot
- Bump tomcat-jdbc from 9.0.36 to 9.0.37 in /modules/jdbc-test (#2969) @dependabot
- Bump s3 from 2.13.41 to 2.13.46 in /modules/localstack (#2947) @dependabot
- Bump aws-java-sdk-dynamodb from 1.11.807 to 1.11.812 in /modules/dynalite (#2953) @dependabot
- Bump mariadb-java-client from 2.6.0 to 2.6.1 in /modules/mariadb (#2950) @dependabot
- Bump aws-java-sdk-sqs from 1.11.807 to 1.11.812 in /modules/localstack (#2949) @dependabot
- Bump aws-java-sdk-s3 from 1.11.807 to 1.11.812 in /modules/localstack (#2948) @dependabot
- Update to
docker-java
3.2.5 (#2938) @bsideup - Upgrade docker-java to 3.2.4 (#2924) @rnorth
- Bump s3 from 2.13.36 to 2.13.41 in /modules/localstack (#2907) @dependabot
- Bump okhttp from 3.14.8 to 4.7.2 in /examples (#2915) @dependabot
- Bump selenium-chrome-driver from 3.14.0 to 3.141.59 in /examples (#2914) @dependabot
- Bump selenium-remote-driver from 3.14.0 to 3.141.59 in /examples (#2913) @dependabot
- Bump aws-java-sdk-sqs from 1.11.797 to 1.11.807 in /modules/localstack (#2896) @dependabot-preview
- Bump me.champeau.gradle.japicmp from 0.2.8 to 0.2.9 in /core (#2900) @dependabot
- Bump aws-java-sdk-dynamodb from 1.11.479 to 1.11.807 in /modules/dynalite (#2905) @dependabot
- Bump aws-java-sdk-s3 from 1.11.802 to 1.11.807 in /modules/localstack (#2894) @dependabot-preview
- Bump postgresql from 42.2.13 to 42.2.14 in /examples (#2892) @dependabot-preview
- Bump pulsar-client from 2.5.2 to 2.6.0 in /modules/pulsar (#2893) @dependabot-preview
- Bump cucumber-junit from 5.7.0 to 6.1.1 in /examples (#2891) @dependabot-preview
- Bump elasticsearch-rest-client from 7.7.1 to 7.8.0 in /modules/elasticsearch (#2889) @dependabot-preview
- upgrade to Dependabot 2 (#2898) @sullis
- Bump postgresql from 42.2.13 to 42.2.14 in /modules/spock (#2873) @dependabot-preview
- Bump tomcat-jdbc from 9.0.35 to 9.0.36 in /modules/jdbc-test (#2866) @dependabot-preview
- Bump postgresql from 42.2.13 to 42.2.14 in /modules/junit-jupiter (#2869) @dependabot-preview
- Bump s3 from 2.13.31 to 2.13.36 in /modules/localstack (#2872) @dependabot-preview
- Bump org.springframework.boot from 2.3.0.RELEASE to 2.3.1.RELEASE in /examples (#2871) @dependabot-preview
- Bump tomcat-jdbc from 9.0.35 to 9.0.36 in /modules/jdbc (#2865) @dependabot-preview
- Bump postgresql from 42.2.13 to 42.2.14 in /modules/postgresql (#2867) @dependabot-preview
- Bump aws-java-sdk-s3 from 1.11.797 to 1.11.802 in /modules/localstack (#2870) @dependabot-preview
- Update to docker-java 3.2.3 (#2885) @bsideup
- Bump aws-java-sdk-logs from 1.11.792 to 1.11.797 in /modules/localstack (#2849) @dependabot-preview
- Bump postgresql from 42.2.12 to 42.2.13 in /modules/postgresql (#2846) @dependabot-preview
- Bump s3 from 2.13.23 to 2.13.31 in /modules/localstack (#2848) @dependabot-preview
- Bump aws-java-sdk-sqs from 1.11.792 to 1.11.797 in /modules/localstack (#2847) @dependabot-preview
- Bump postgresql from 42.2.12 to 42.2.13 in /modules/junit-jupiter (#2845) @dependabot-preview
- Bump postgresql from 42.2.12 to 42.2.13 in /modules/spock (#2840) @dependabot-preview
- Bump postgresql from 42.2.12 to 42.2.13 in /examples (#2842) @dependabot-preview
- Bump elasticsearch-rest-client from 7.6.2 to 7.7.1 in /modules/elasticsearch (#2841) @dependabot-preview
- Bump mongo-java-driver from 3.12.4 to 3.12.5 in /core (#2844) @dependabot-preview
- Bump testcontainers from 1.14.2 to 1.14.3 in /core (#2818) @dependabot-preview
- Bump r2dbc-mssql from 0.8.2.RELEASE to 0.8.3.RELEASE in /modules/mssqlserver (#2821) @dependabot-preview
- Bump aws-java-sdk-s3 from 1.11.784 to 1.11.792 in /modules/localstack (#2817) @dependabot-preview
- Bump r2dbc-postgresql from 0.8.2.RELEASE to 0.8.3.RELEASE in /modules/postgresql (#2824) @dependabot-preview
- Bump mssql-jdbc from 8.3.0.jre8-preview to 8.3.1.jre8-preview in /modules/mssqlserver (#2823) @dependabot-preview
- Bump solr-solrj from 8.5.1 to 8.5.2 in /examples (#2819) @dependabot-preview
- Bump aws-java-sdk-sqs from 1.11.789 to 1.11.792 in /modules/localstack (#2820) @dependabot-preview
- Bump aws-java-sdk-logs from 1.11.789 to 1.11.792 in /modules/localstack (#2822) @dependabot-preview