Sourced from github.com/testcontainers/testcontainers-go's releases.
v0.35.0
What's Changed
⚠️ Breaking Changes
The
container.Terminate(ctx)
method now accepts an extra variadic argument with termination options. The breaking change only affects users assigning this method to a variable, receiving a compile-time error. The rest of the users will simply satisfy the new signature with an empty slice of termination options.
- feat!: build log writer for container request (#2925)
@zenkovev
The
ShouldPrintBuildLog
function of theContainerRequest
has been removed. Instead, aBuildLogWriter
function appears, that returns the user-definedio.Writer
for writing the image-build logs. In case there is no writer, and theFromDockerfile.PrintBuildLog
is set to true,os.Stderr
would be used.
- feat(gcloud)!: add support to seed data when using RunBigQueryContainer (#2523)
@mtellis2
Users of the GCloud module and the
WithProjectID
option must handle the error that this option now returns. This can be get at compile time, as all the functional options for container customisers must return an error.The types and functions of the
PortForwarder
type are now private, as they are implementation details of the library, so there is no need for them to be exposed.Usages of the
GenericProviderOptions.DefaultNetwork
field must be removed, as this field is now private. The container runtime should provide the default network under the hood.🔒 Security
- security(deps): bump golang.org/x/crypto from 0.28.0 to 0.31.0 (#2916)
@dependabot
🚀 Features
- feat(postgres): ssl for postgres (#2473)
@bearrito
- feat(ollama): support calling the Ollama local process (#2923)
@stevenh
- feat(termination)!: make container termination timeout configurable (#2926)
@moogacs
- feat(wait): log sub match callback (#2929)
@stevenh
- feat!: build log writer for container request (#2925)
@zenkovev
- feat(gcloud)!: add support to seed data when using RunBigQueryContainer (#2523)
@mtellis2
- feat(nats): WithConfigFile - pass a configuration file to nats server (#2905)
@vyskocilm
- feat(wait): strategy walk (#2895)
@stevenh
- feat(wait): tls strategy (#2896)
@stevenh
- feat: add build to life cycle hooks (#2653)
@stevenh
🐛 Bug Fixes
- fix: handle nil value in CleanupNetwork (#2928)
@l0nax
- fix: avoid double lock in DockerProvider.DaemonHost() (#2900)
@vikstrous
- fix: container binds syntax (#2899)
@zregvart
- fix(influxdb): Respect custom waitStrategy (#2845)
@marcinmilewski93
- fix(redpanda): temporary file use (#2884)
@cavus700
- fix: host access port instability (#2867)
@stevenh
- fix: docker auth for identity tokens (#2866)
@stevenh
- fix(compose): container initialisation (#2844)
@stevenh
- fix!: data races (#2843)
@stevenh
- fix: mongodb replicaset should work with auth (#2847)
@abhipranay
- fix: simplify fully-qualified image names (#2846)
@mdelapenya
- fix(compose): race condition (#2842)
@stevenh
... (truncated)
add4ac3
chore: use new version (v0.35.0) in modules and examples3330dc1
feat(postgres): ssl for postgres (#2473)6ec91f1
feat(ollama): support calling the Ollama local process (#2923)632249a
chore(deps): bump jinja2 from 3.1.4 to 3.1.5 (#2935)7ca837d
chore(deps): bump sonarsource/sonarcloud-github-action (#2933)6f718ee
feat(termination)!: make container termination timeout configurable (#2926)eb5b8ed
chore(deps): bump slackapi/slack-github-action from 1.26.0 to 2.0.0 (#2934)cc55f13
chore(deps): bump github/codeql-action from 3.25.15 to 3.28.0 (#2932)63fad4d
feat(wait): log sub match callback (#2929)4f67ae0
fix: Handle nil value in CleanupNetwork (#2928)