Releases: testcontainers/testcontainers-rs
Releases · testcontainers/testcontainers-rs
v0.16.3
Details
Bug Fixes
- Expose mount-related types (#603)
Migration guide
See the migration guide in release 0.16.0. To update from 0.15 to 0.16.x
v0.16.2
Details
Documentation
- Fix
docsrsattributes
Migration guide
See the migration guide in release 0.16.0. To update from 0.15 to 0.16.x
v0.16.1
Details
Documentation
Migration guide
See the migration guide in release 0.16.0. To update from 0.15 to 0.16.x
v0.16.0
Details
Bug Fixes
- Use the binds option instead of volumes for mounts (#581)
Documentation
- Mention a way to preserve running containers (#586)
Features
- Support for docker cli flag
--add-host(#547) - Allow to override args in a
RunnableImage(#558) - Add
nameparameter toRunnableImage(#549) - [❗] Container-centric API with refactored underlying layer (#575)
- Add ability to pull-image explicitly (#579)
Miscellaneous Tasks
- Remove
spectralfromdev-dependencies(#526) - Update reqwest requirement from 0.11.14 to 0.12.3 (#569)
- Update bollard and bollard-stubs (#574)
- Reuse workspace level configs (#568)
Refactor
- [❗] Api for mounts and volumes (#596)
Styling
- Derive
Defaultto fix clippy lint (#525) - Actualize formatting configs (#567)
- Enable
StdExternalCrategrouping
Migration guide
- Sync API migration (
Cliclient)- Add
blockingfeature - Drop all usages of
clients::Cli - Add
use testcontainers::runners::SyncRunner; - Replace
client.run(image)withimage.start()
- Add
- Async API migration (
Httpclient)- Remove
experimentalfeature - Drop all usages of
clients::Http - Add
use testcontainers::runners::AsyncRunner; - Replace
client.run(image)withimage.start()
- Remove
- ENV variable
TESTCONTAINERSwas renamed toTESTCONTAINERS_COMMANDand still accepts eitherremove(default to remove containers on drop) orkeep ExecCommandinterface was changed to builder-like:- use
ExecCommand::new(cmd)instead ofExecCommand { ... } cmdisVec<String>now, so make sure your commands are separated- use any of the new methods to check the result
with_container_ready_conditions&with_cmd_ready_condition
- use
- If your
Imageimplementsvolumesmethod:- rename method to
mounts - wrap all existed "volumes" into
Mount::bind_mount(host_path, container_path)
- rename method to
- If your code uses
RunnableImage::with_volume- replace the call with
RunnableImage::with_mount
- replace the call with
- If your code uses
GenericImage::with_volume- replace the call with
GenericImage::with_mount
- replace the call with
Docker host resolution
We have completely switched to an http client with special host resolution logic.
The host is resolved in the following order:
- Docker host from the
tc.hostproperty in the~/.testcontainers.propertiesfile. DOCKER_HOSTenvironment variable.- Docker host from the "docker.host" property in the
~/.testcontainers.propertiesfile. - Else, the default Docker socket will be returned.
0.15
Merge pull request #524 from testcontainers/release/0.15
0.14.0
Merge pull request #375 from testcontainers/release/0.14.0 Release 0.14.0
0.13
Merge pull request #350 from testcontainers/release/0.13
0.12.0
Merge pull request #249 from testcontainers/release/0.12.0
0.11.0
Merge pull request #211 from testcontainers/release/0.11.0
0.10.0
Merge pull request #196 from testcontainers/release/0.10.0