github testcontainers/testcontainers-java 1.16.0

latest releases: 1.20.1, 1.20.0, 1.19.8...
3 years ago

What's Changed

Testcontainers 1.16.0 is here! ๐ŸŽ‰

This release brings many small fixes and improvements; among them:

Better M1 Mac compatibility

Users of M1 Mac will be pleased to know that Testcontainers now falls back to pulling x86_64 images when ARM64 images are unavailable, meaning that Docker's QEMU compatibility mode will be used to run the image. It's not perfect - not every image runs under QEMU. However, this allows Testcontainers users with M1 Macs to use more images than they could previously.

If possible, users should use recently published images for their dependencies which have a native ARM64 variant, rather than relying on QEMU emulation.

Startup performance and reliability improvements

Some issues affecting container startup time and reliability (especially with Docker for Windows) have been fixed.

Additionally, this release uses the latest version of docker-java and uses an Apache HttpClient5 transport by default. This resolves bugs encountered by some users when the previous default transport (okhttp) relating to image pulling.


As always, thank you to our many users and contributors!

๐Ÿš€ Features & Enhancements

  • Fallback to x86 image if image pulling fails (#4290) @bsideup
  • Spock Testcontainers annotation is now inherited (#4053) @tlefevre
  • Use Apache HttpClient5 transport as the default (#4287) @bsideup
  • Remove visible assertions dependency (#4010) @bsideup
  • Couchbase: Add support for community edition of couchbase server (#4221) @Gerschtli
  • Couchbase: Update to latest version, add flushEnabled flag (#4041) @Gerschtli
  • Only publish exposed ports (#4122) @rnorth
  • Allow DOCKER_HOST and related settings to be set in ~/.testcontainers.properties (#4118) @rnorth
  • Use implicit strategy when docker.host configuration is set (#4175) @rnorth
  • Improve logging in InternalCommandPortListeningCheck (#2984) (#3001) @vcvitaly

๐Ÿ› Bug Fixes

  • Remove withPublishAllPorts from Ryuk and stabilize containerInfo content on start (#4263) @kiview
  • Allow for docker timestamps with timezone offsets (#4073) @candrews
  • Fix KafkaContainer with multiple networks defined (#4213) @DennisFederico
  • Fixed potential NPE in MountableFile (#4193) @fkorotkov
  • Improve log messages when database container test query fails (#3015) @vcvitaly

๐Ÿ“– Documentation

๐Ÿงน Housekeeping

๐Ÿ“ฆ Dependency updates

Click to expand...
  • Bump aws-java-sdk-sqs from 1.11.1018 to 1.12.1 in /modules/localstack (#4181) @dependabot
  • Bump annotations from 20.1.0 to 21.0.1 in /modules/selenium (#4150) @dependabot
  • Bump annotations from 20.1.0 to 21.0.1 in /modules/nginx (#4146) @dependabot
  • Bump annotations from 20.1.0 to 21.0.1 in /modules/jdbc (#4145) @dependabot
  • Bump annotations from 20.1.0 to 21.0.1 in /modules/postgresql (#4140) @dependabot
  • Bump org.jetbrains.kotlin.jvm from 1.4.32 to 1.5.10 in /examples (#4139) @dependabot
  • Bump mysql-connector-java from 8.0.22 to 8.0.25 in /modules/junit-jupiter (#4087) @dependabot
  • Bump HikariCP from 3.4.5 to 4.0.3 in /modules/junit-jupiter (#3854) @dependabot
  • Bump actions/setup-java from 1 to 2.1.0 (#4163) @dependabot
  • Bump elasticsearch-rest-client from 7.12.1 to 7.13.0 in /modules/elasticsearch (#4157) @dependabot
  • Bump kafka-clients from 2.6.0 to 2.8.0 in /modules/kafka (#4017) @dependabot
  • Bump r2dbc-mariadb from 1.0.0 to 1.0.1 in /modules/mariadb (#3881) @dependabot
  • Bump okhttp from 4.9.0 to 4.9.1 in /examples (#3743) @dependabot
  • Bump aws-java-sdk-s3 from 1.11.930 to 1.11.1030 in /modules/localstack (#4159) @dependabot
  • Bump testng from 7.3.0 to 7.4.0 in /examples (#4116) @dependabot
  • Bump assertj-core from 3.16.1 to 3.19.0 in /modules/jdbc (#4144) @dependabot
  • Bump annotations from 20.1.0 to 21.0.1 in /modules/mysql (#4142) @dependabot
  • Bump aws-java-sdk-dynamodb from 1.11.1018 to 1.11.1030 in /modules/dynalite (#4149) @dependabot
  • Bump org.jetbrains.kotlin.plugin.spring from 1.5.0 to 1.5.10 in /examples (#4138) @dependabot
  • Bump annotations from 20.1.0 to 21.0.1 in /modules/spock (#4151) @dependabot
  • Bump rest-assured from 4.3.3 to 4.4.0 in /modules/vault (#4143) @dependabot
  • Bump junit-jupiter-engine from 5.7.1 to 5.7.2 in /modules/junit-jupiter (#4117) @dependabot
  • Bump tomcat-jdbc from 10.0.0 to 10.0.6 in /modules/jdbc (#4085) @dependabot
  • Bump assertj-core from 3.18.1 to 3.19.0 in /modules/database-commons (#3721) @dependabot

Don't miss a new testcontainers-java release

NewReleases is sending notifications on new releases.