Added watchdog feature that spawns a background thread keeping track of docker containers that are started by the test suite and removes them in the case of a CTRL+C or kill of the test process.
Introduced Container::get_host_port_ipv4, Container::get_host_port_ipv6, ContainerState::host_port_ipv4, and ContainerState::host_port_ipv6 to better handle automatically assigned ports.
Docker may bind the same exposed container port to different host ports on 0.0.0.0 and ::, depending on influences from the environment.
Changed
Container::get_host_port and ContainerState::host_port are now deprecated in favor of the new IPv4- and IPv6-specific methods.
MSRV is now 1.60.
[0.13.0] - 2022-04-04
Added
A new client implementation that talks to the Docker daemon via HTTP.
This implementation is available as testcontainers::clients::Http and provides an async interface.
As of now, this implementation is guarded behind the experimental feature-flag and not yet guaranteed to work flawlessly.
Allow using podman CLI in addition to docker
The TESTCONTAINERS environment variable to control what happens to containers and networks at the end of a test.
The default value is remove which deletes all containers and networks that were used in the test.
By setting the value to keep, containers and networks will not be deleted but kept running.
You will have to stop and delete those yourself eventually.
Upgrade default bitcoin-core image version to 0.21.0. This allows us to remove -debug for bitcoind and replace it with
-startupnotify=echo .... More details on bitcoind 0.21.0 can be found here.
Note: This release also removed the default wallet.
... (truncated)
Commits
4ba1c33 Merge pull request #524 from testcontainers/release/0.15
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Updates the requirements on testcontainers to permit the latest version.
Changelog
Sourced from testcontainers's changelog.
... (truncated)
Commits
4ba1c33
Merge pull request #524 from testcontainers/release/0.159196260
Update CHANGELOG.md53271bb
Update CHANGELOG.md749dd7d
Update CHANGELOG.md6f74455
Prepare for release8c89718
docs: mentiontestcontainers-modules
(#523)7c1be6f
Update axum requirement from 0.5.1 to 0.6.20 (#514)41f597b
Bump actions/checkout from 3 to 4 (#520)7bfc90b
Bump Swatinem/rust-cache from 2.5.0 to 2.7.0 (#522)407d924
Log error when starting a container fails (#431)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show