Skip to content

Releases: testcontainers/testcontainers-go

v0.22.0

04 Aug 13:32
Compare
Choose a tag to compare

What's Changed

⚠️ Breaking Changes

  • chore(deps): bump docker dependencies to v24.0.5+incompatible (#1394) @mdelapenya

As a consequence of the bugs described in #1359, we had to bump the Docker version to a major version, which moved the types.AuthConfig type to registry.AuthConfig. We used that type as public API, therefore, our API has changed the signature of the method of an interface, which is used to build images from a Dockerfile. Please look at #1394 to understand the changes in the GetAuthConfigs method.

🚀 Features

📖 Documentation

🧹 Housekeeping

📦 Dependency updates

  • chore(deps): bump github.com/containerd/containerd from 1.6.19 to 1.7.3 (#1378) @dependabot
  • chore: run go mod tidy (#1417) @mdelapenya
  • chore(deps): bump github.com/tidwall/gjson from 1.14.4 to 1.15.0 in /modules/couchbase (#1376) @dependabot
  • chore(deps): bump github.com/opencontainers/image-spec from 1.1.0-rc2 to 1.1.0-rc4 (#1312) @dependabot
  • chore(deps): bump github.com/hashicorp/consul/api from 1.20.0 to 1.23.0 in /examples/consul (#1381) @dependabot
  • chore(deps): bump github.com/twmb/franz-go from 1.13.5 to 1.14.3 in /modules/redpanda (#1387) @dependabot
  • chore(deps): bump github.com/nats-io/nats.go from 1.26.0 to 1.28.0 in /examples/nats (#1389) @dependabot
  • chore(deps): bump golang.org/x/text from 0.9.0 to 0.11.0 in /modulegen (#1388) @dependabot
  • chore(deps): bump google.golang.org/api from 0.125.0 to 0.134.0 in /examples (#1412) @mdelapenya
  • chore(deps): bump golang.org/x/mod and github.com/aws/aws-sdk-go-v2/config in /modules/localstack (#1410) @mdelapenya
  • chore(deps): bump k8s.io/client-go from 0.27.2 to 0.27.4 in /modules/k3s (#1404) @dependabot
  • chore(deps): bump cloud.google.com/go in /examples (#1411) @mdelapenya
  • chore(deps): bump github.com/neo4j/neo4j-go-driver/v5 from 5.9.0 to 5.10.0 in /modules/neo4j (#1318) @dependabot
  • chore(deps): bump google.golang.org/grpc to 1.57.0 (#1409) @mdelapenya
  • chore(deps): bump go.mongodb.org/mongo-driver from 1.11.6 to 1.12.0 in /examples/mongodb (#1311) @dependabot
  • chore(deps): bump docker dependencies to v24.0.5+incompatible (#1394) @mdelapenya
  • chore: remove gotestsum to reduce the number of transitive dependencies (#1303) @mdelapenya

v0.21.0

22 Jun 09:30
Compare
Choose a tag to compare

What's Changed

🚀 Features

🐛 Bug Fixes

📖 Documentation

🧹 Housekeeping

📦 Dependency updates

  • chore(deps): bump github.com/moby/term from 0.0.0-20221128092401-c43b287e0e0f to 0.5.0 (#1253) @dependabot
  • chore(deps): bump github.com/aws/aws-sdk-go from 1.44.268 to 1.44.273 in /modules/localstack (#1271) @dependabot
  • chore(deps): bump github.com/neo4j/neo4j-go-driver/v5 from 5.8.1 to 5.9.0 in /modules/neo4j (#1265) @dependabot
  • chore(deps): bump google.golang.org/api from 0.124.0 to 0.125.0 in /examples (#1284) @mdelapenya
  • chore(deps): bump github.com/twmb/franz-go from 1.13.4 to 1.13.5 in /modules/redpanda (#1283) @dependabot
  • chore(deps): bump github.com/stretchr/testify from 1.8.3 to 1.8.4 (#1282) @mdelapenya
  • chore(deps): bump github.com/aws/aws-sdk-go-v2/config from 1.18.19 to 1.18.25 in /modules/localstack (#1222) @dependabot
  • chore(deps): bump golang.org/x/sys from 0.7.0 to 0.8.0 (#1202) @dependabot
  • chore(deps): bump github.com/stretchr/testify from 1.8.2 to 1.8.3 (#1232) @dependabot
  • chore(deps): bump cloud.google.com/go/spanner from 1.45.1 to 1.46.0 in /examples/spanner (#1226) @dependabot
  • chore(deps): bump go.mongodb.org/mongo-driver from 1.11.4 to 1.11.6 in /examples/mongodb (#1233) @dependabot
  • chore(deps): bump google.golang.org/api from 0.123.0 to 0.124.0 in /examples (#1244) @mdelapenya
  • chore(deps): bump github.com/aws/aws-sdk-go-v2/service/s3 from 1.31.3 to 1.33.1 in /modules/localstack (#1241) @dependabot
  • chore(deps): bump github.com/aws/aws-sdk-go from 1.44.244 to 1.44.268 in /modules/localstack (#1242) @dependabot
  • chore(deps): bump github.com/imdario/mergo from 0.3.12 to 0.3.15 (#1204) @dependabot
  • chore(deps): bump cloud.google.com/go/firestore from 1.9.0 to 1.10.0 in /examples/firestore (#1216) @dependabot
  • chore(deps): bump k8s.io/client-go from 0.22.5 to 0.27.2 in /modules/k3s (#1211) @dependabot
  • chore(deps): bump go.mongodb.org/mongo-driver from 1.11.3 to 1.11.4 in /examples/mongodb (#1092) @dependabot
  • chore(deps): bump github.com/neo4j/neo4j-go-driver/v5 from 5.8.0 to 5.8.1 in /modules/neo4j (#1206) @dependabot
  • chore(deps): bump github.com/twmb/franz-go from 1.13.3 to 1.13.4 in /modules/redpanda (#1201) @dependabot
  • chore(deps): bump google.golang.org/api from 0.121.0 to 0.123.0 in /examples (#1229) @mdelapenya
  • chore(deps): bump github.com/stretchr/testify from 1.8.2 to 1.8.3 (#1228) @mdelapenya
  • chore(deps): bump pymdown-extensions from 9.0 to 10.0 (#1193) @dependabot
  • chore(deps): bump github.com/docker/distribution from 2.8.1+incompatible to 2.8.2+incompatible (#1189) @mdelapenya

v0.20.1

10 May 12:39
Compare
Choose a tag to compare

What's Changed

🐛 Bug Fixes

📖 Documentation

🧹 Housekeeping

v0.20.0

08 May 12:06
Compare
Choose a tag to compare

Maintainers' note

We want to inform you about an issue that occurred with the release, v0.20.0. Due to an unintended error, the git tags associated with v0.20.0 were created in an inconsistent state. As a result, the tags were removed and recreated to accurately reflect the intended release state. This situation could have affected users relying on the Go proxy cache during the short time window between the initial release and the tag correction.

To address this issue, we have now created the patch release v0.20.1, which is based on the correct state of the project and provides a seamless transition from v0.20.0.

To ensure that you have the latest updates, we recommend updating your dependencies to use v0.20.1 instead of v0.20.0 to ensure you have the correct and stable version.

We apologise for any inconvenience this may have caused and appreciate your understanding. If you have any questions or encounter any issues, please don't hesitate to reach out to us.

Thank you for your continued support!

What's Changed

⚠️ Breaking Changes

The signature of the testcontainers.NewDockerClient has changed in order to provide a simpler API for the future changes, and for that reason we were forced to break it and simplify its signature, returning the client and an error, instead of an instance of the Testcontainers properties and the host. At the same time, the TestContainersConfig struct representing the configuration properties has been renamed to TestcontainersConfig, which is brings consistency with the name of the project.

🚀 Features

🐛 Bug Fixes

📖 Documentation

🧹 Housekeeping

📦 Dependency updates

  • chore(deps): bump dependencies in /modules/localstack (#1158) @mdelapenya
  • chore(deps): bump golang.org/x/sys from 0.6.0 to 0.7.0 (#1088) @dependabot
  • chore(deps): bump github.com/couchbase/gocb/v2 from 2.6.2 to 2.6.3 in /modules/couchbase (#1107) @dependabot
  • chore(deps): bump github.com/docker/docker v23.0.5+incompatible in modules and examples (#1156) @mdelapenya
  • chore(deps): bump google dependencies in /examples (#1155) @mdelapenya
  • chore(deps): bump github.com/docker/docker from 23.0.3+incompatible to 23.0.5+incompatible (#1134) @dependabot
  • chore(deps): bump golang.org/x/sync from 0.1.0 to 0.2.0 in /modules/compose (#1143) @dependabot
  • chore(deps): bump github.com/docker/compose/v2 from 2.17.2 to 2.17.3 in /modules/compose (#1149) @dependabot
  • chore(deps): bump dependencies in /modules/redpanda (#1154) @mdelapenya
  • chore(deps): bump github.com/apache/pulsar-client-go from 0.9.0 to 0.10.0 in /modules/pulsar (#1105) @dependabot
  • chore(deps): bump github.com/docker/{cli|docker} from 23.0.3+incompatible to 23.0.5+incompatible in /modules (#1132) @mdelapenya
  • chore(deps): bump google.golang.org/api to 0.120.0 in /examples (#1131) @mdelapenya
  • chore(deps): bump github.com/cenkalti/backoff/v4 from 4.2.0 to 4.2.1 in /modules/couchbase (#1099) @dependabot
  • chore(deps): bump github.com/go-sql-driver/mysql from 1.7.0 to 1.7.1 in /modules/mysql (#1122) @dependabot
  • chore(deps): bump github.com/lib/pq from 1.10.7 to 1.10.9 in /modules/postgres (#1127) @dependabot
  • chore(deps): bump github.com/neo4j/neo4j-go-driver/v5 from 5.7.0 to 5.8.0 in /modules/neo4j (#1126) @dependabot
  • chore(deps): bump golang.org/x/text from 0.8.0 to 0.9.0 in /modulegen (#1095) @dependabot
  • chore(deps): bump gotest.tools/gotestsum from 1.9.0 to 1.10.0 (#1129) @mdelapenya
  • chore(deps): bump aws deps in /modules/localstack (#1077) @mdelapenya
  • chore(deps): bump docker libs in /modules/compose (#1076) @mdelapenya
  • chore(deps): bump github.com/docker/docker from 23.0.2+incompatible to 23.0.3+incompatible in /modules (#1074) @mdelapenya
  • chore(deps): bump github.com/docker/docker from 23.0.2+incompatible to 23.0.3+incompatible (#1060) @mdelapenya
  • chore(deps): bump github.com/neo4j/neo4j-go-driver/v5 from 5.6.0 to 5.7.0 in /modules/neo4j (#1030) @dependabot
  • chore(deps): bump github.com/docker/docker from 23.0.1+incompatible to 23.0.2+incompatible (#1026) @mdelapenya
  • chore(deps): bump github.com/opencontainers/runc from 1.1.3 to 1.1.5 (#1017) @mdelapenya
  • chore(deps): bump localstack dependencies in /modules/localstack (#980) @mdelapenya
  • chore: update Go deps in modules (#979) @mdelapenya
  • chore(deps): bump google.golang.org/grpc from 1.53.0 to 1.54.0 in /examples (#973) @mdelapenya
  • chore(deps): bump compose dependencies in /modules/compose (#974) @mdelapenya
  • chore(deps): bump github.com/aws/aws-sdk-go in /modules/localstack (#972) @mdelapenya
  • chore(deps): bump cloud.google.com/go/pubsub from 1.28.0 to 1.30.0 in /examples/pubsub (#968) @dependabot
  • chore(deps): bump go.mongodb.org/mongo-driver from 1.11.2 to 1.11.3 in /examples/mongodb (#953) @dependabot
  • chore(deps): bump github.com/couchbase/gocb/v2 from 2.6.1 to 2.6.2 in /modules/couchbase (#952) @dependabot
  • chore: bump Ryuk to v0.4.0 release (#936) @mdelapenya
  • chore(deps): bump github.com/aws/aws-sdk-go from 1.44.211 to 1.44.217 in /modules/localstack (#934) @dependabot
  • chore(deps): bump github.com/hashicorp/consul/api from 1.19.1 to 1.20.0 in /examples/consul (#933) @dependabot

v0.19.0

08 Mar 14:22
2f49f6e
Compare
Choose a tag to compare

What's Changed

⚠️ Breaking Changes

If you are relying in the deprecated RegistryCred field from the ContainerRequest struct, then we broke your code 😞: the field is not used anymore therefore your own registry credentials won't be used. We expected that the credentials would live into the credential helpers, therefore would be automatically populated but, thanks to @srabraham, we discovered it's not. If that's your case you have to populate the DOCKER_AUTH_CONFIG env var with your own credentials, as @srabraham did here #869 (comment).

  • feat: support for reading auth credentials from docker credential helpers (#869) @mdelapenya

🔒 Security

🚀 Features

🐛 Bug Fixes

📖 Documentation

🧹 Housekeeping

📦 Dependency updates

  • chore: prepare Go modules for the next release (#929) @mdelapenya
  • chore: sync dependencies (#927) @mdelapenya
  • chore(deps): bump github.com/moby/buildkit from 0.11.2 to 0.11.4 in /modules/compose (#926) @dependabot
  • chore: sync dependencies in Go modules (#920) @mdelapenya
  • chore(deps): bump dependencies (#919) @mdelapenya
  • chore: update module dependencies (#911) @mdelapenya
  • chore(deps): bump google.golang.org/api from 0.110.0 to 0.111.0 in /examples (#908) @mdelapenya
  • chore(deps): bump github.com/aws/aws-sdk-go deps in localstack module (#907) @mdelapenya
  • chore(deps): bump github.com/jackc/pgx/v4 from 4.18.0 to 4.18.1 in /examples/cockroachdb (#895) @dependabot
  • chore(deps): bump github.com/containerd/containerd from 1.6.18 to 1.6.19 (#897) @dependabot
  • chore(deps): bump github.com/compose-spec/compose-go from 1.11.0 to 1.12.0 in /modules/compose (#899) @dependabot
  • chore: monthly updates for dependabot (#906) @mdelapenya
  • bug(892): include godog in replace block of compose gomod (#893) @cgoodsirsmyth-pp
  • chore(deps): bump github.com/lib/pq from 0.0.0-20150723085316-0dad96c0b94f to 1.10.7 in /examples/postgres (#887) @dependabot
  • chore(deps): bump golang.org/x/mod from 0.6.0-dev.0.20220419223038-86c51ed26bb4 to 0.8.0 in /modules/localstack (#886) @dependabot
  • chore(deps): bump github.com/hashicorp/consul/api from 1.18.0 to 1.19.1 in /examples/consul (#889) @dependabot
  • chore(deps): bump github.com/aws/aws-sdk-go from 1.44.204 to 1.44.209 in /modules/localstack (#884) @dependabot
  • chore(deps): bump github.com/stretchr/testify from 1.8.1 to 1.8.2 (#891) @mdelapenya
  • chore(deps): bump github.com/compose-spec/compose-go from 1.9.0 to 1.11.0 in /modules/compose (#865) @dependabot
  • chore(deps): bump github.com/docker deps from 23.0.0+incompatible to 23.0.1+incompatible (#875) @mdelapenya
  • chore(deps): bump github.com/aws/aws-sdk-go libs in /modules/localstack (#874) @mdelapenya
  • chore: remove replace directive in modules (#871) @mdelapenya
  • chore: bump testcontainers-go in Go modules (#870) @mdelapenya

v0.18.0

16 Feb 11:41
34481cf
Compare
Choose a tag to compare

What's Changed

🚀 Features

🐛 Bug Fixes

  • fix: always absolute paths when tarring files to a Docker container (#814) @mdelapenya
  • fix: nil pointer dereference in HealthStrategy (#802) @massenz
  • fix: Synchronise writes to dockerCompose.containers map (#812) @joshua-hill-form3
  • Verify Reaper state to create new or return existing instance (#782) @mdonkers
  • fix: use right import package for compose in docs (#791) @mdelapenya
  • Reaper container should not be labeled with "org.testcontainers.golang.sessionId" (#721) @rzajac
  • fix: close response body in http strategy (#718) @kruskall

📖 Documentation

🧹 Housekeeping

📦 Dependency updates

  • chore(deps): bump github.com/docker/compose/v2 from 2.15.1 to 2.16.0 in /modules/compose (#824) @dependabot
  • chore(deps): bump github.com/aws/aws-sdk-go from 1.44.192 to 1.44.200 in /modules/localstack (#835) @dependabot
  • chore(deps): bump github.com/imdario/mergo from 0.3.12 to 0.3.13 in /modules/localstack (#828) @dependabot
  • chore(deps): bump google.golang.org/api from 0.109.0 to 0.110.0 in /examples (#836) @mdelapenya
  • chore(deps): bump go.mongodb.org/mongo-driver from 1.11.1 to 1.11.2 in /examples/mongodb (#831) @dependabot
  • chore(deps): bump google.golang.org/grpc from 1.52.3 to 1.53.0 in /examples (#827) @mdelapenya
  • chore(deps): bump github.com/containerd/containerd from 1.6.16 to 1.6.17 (#817) @dependabot
  • chore(deps): bump golang.org/x/text from 0.6.0 to 0.7.0 (#818) @dependabot
  • chore(deps): bump golang.org/x/sys from 0.4.0 to 0.5.0 (#816) @dependabot
  • chore(deps): bump github.com/jackc/pgx/v4 from 4.17.2 to 4.18.0 in /examples/cockroachdb (#819) @dependabot
  • chore(deps): bump google.golang.org/api from 0.108.0 to 0.109.0 in /examples (#810) @mdelapenya
  • chore(deps): bump cloud.google.com/go/spanner from 1.43.0 to 1.44.0 in /examples/spanner (#806) @dependabot
  • chore: bump containerd in examples (#797) @mdelapenya
  • chore(deps): bump github.com/containerd/containerd from 1.6.15 to 1.6.16 (#793) @dependabot
  • chore(deps): bump google.golang.org/grpc from 1.52.1 to 1.52.3 in /examples (#790) @mdelapenya
  • chore: check dependabot dependencies weekly (#789) @mdelapenya
  • chore(deps): bump google.golang.org/grpc from 1.52.0 to 1.52.1 in /examples (#783) @mdelapenya
  • chore(deps): bump cloud.google.com/go/spanner from 1.42.0 to 1.43.0 in /examples/spanner (#771) @dependabot
  • chore(deps): bump github.com/docker/compose/v2 from 2.15.0 to 2.15.1 in /modules/compose (#735) @dependabot
  • chore(deps): bump gotest.tools/gotestsum from 1.8.2 to 1.9.0 (#774) @mdelapenya
  • chore(deps): bump github.com/compose-spec/compose-go from 1.8.2 to 1.9.0 in /modules/compose (#772) @dependabot
  • chore(deps): bump google.golang.org/api from 0.105.0 to 0.108.0 in /examples (#773) @mdelapenya
  • chore(deps): bump google.golang.org/grpc from 1.51.0 to 1.52.0 in /examples (#741) @mdelapenya
  • chore(deps): bump github.com/containerd/containerd from 1.6.14 to 1.6.15 (#733) @dependabot
  • chore(deps): bump github.com/compose-spec/compose-go from 1.8.1 to 1.8.2 in /modules/compose (#734) @dependabot
  • chore(deps): bump github.com/docker/compose/v2 from 2.14.2 to 2.15.0 in /modules/compose (#732) @dependabot
  • chore(deps): bump golang.org/x/text from 0.5.0 to 0.6.0 (#725) @dependabot
  • chore(deps): bump golang.org/x/sys from 0.3.0 to 0.4.0 (#724) @dependabot
  • chore: move e2e module to postgres example module (#717) @mdelapenya
  • chore: bump containerd transitive dep in examples (#715) @mdelapenya
  • chore(deps): bump github.com/containerd/containerd from 1.6.12 to 1.6.14 (#703) @dependabot
  • chore(deps): bump github.com/compose-spec/compose-go from 1.8.0 to 1.8.1 in /modules/compose (#710) @dependabot
  • chore: bump testcontainers-go to 0.17.0 in examples (#714) @mdelapenya
  • chore(deps): bump github.com/docker/compose/v2 from 2.14.0 to 2.14.2 in /modules/compose (#711) @dependabot
  • chore: simplify compose replace directives (#713) @mdelapenya
  • chore: add compose module to dependabot (#709) @mdelapenya

v0.17.0

23 Dec 14:57
10c899c
Compare
Choose a tag to compare

What's Changed

⚠️ Breaking Changes

Given the amount of issues after #476, causing consumers of this library to update their dependencies with multiple replace directives in their go.mod files, we have moved compose code to a separate module. Therefore the majority of the users of the library will only need to replace Docker dependency with the one used in this library, which is simpler in terms of usage. Please see Install instructions for further information.

replace (
	github.com/docker/docker => github.com/docker/docker v20.10.3-0.20221013203545-33ab36d6b304+incompatible // 22.06 branch
)

On the other hand, users of native Docker Compose code will still need all the replace directives, as described in the Compose docs.

🚀 Features

🐛 Bug Fixes

  • fix: avoid panics when checking container state and container.raw is nil (#635) @mdelapenya

📖 Documentation

🧹 Housekeeping

📦 Dependency updates

  • chore: move compose code to a separate module (#650) @mdelapenya
  • chore: move redis-specific tests to the example module (#701) @mdelapenya
  • chore: bump transitive dependencies (#527) @mdelapenya
  • chore: add mysql example (#700) @mdelapenya
  • chore(deps): bump google.golang.org/api from 0.104.0 to 0.105.0 (#699) @mdelapenya
  • chore(deps): bump google.golang.org/api from 0.103.0 to 0.104.0 in /examples/firestore (#683) @dependabot
  • chore(deps): bump cloud.google.com/go/spanner from 1.41.0 to 1.42.0 in /examples/spanner (#688) @dependabot
  • chore(deps): bump google.golang.org/api from 0.103.0 to 0.104.0 in /examples/pubsub (#685) @dependabot
  • chore(deps): bump google.golang.org/api from 0.103.0 to 0.104.0 in /examples/spanner (#684) @dependabot
  • chore(deps): bump google.golang.org/grpc from 1.50.1 to 1.51.0 in /examples/firestore (#686) @dependabot
  • chore(deps): bump google.golang.org/api from 0.102.0 to 0.104.0 in /examples/bigtable (#680) @dependabot
  • chore(deps): bump google.golang.org/api from 0.103.0 to 0.104.0 in /examples/datastore (#678) @dependabot
  • chore(deps): bump golang.org/x/text from 0.3.7 to 0.5.0 (#660) @dependabot
  • chore(deps): bump github.com/magiconair/properties from 1.8.6 to 1.8.7 (#677) @dependabot
  • chore(deps): bump github.com/containerd/containerd from 1.6.10 to 1.6.12 (#675) @dependabot
  • chore: run go mod tidy in examples (#672) @mdelapenya
  • chore: group dependabot updates (#668) @mdelapenya
  • chore(deps): bump github.com/docker/compose/v2 from 2.12.2 to 2.14.0 (#657) @dependabot
  • chore(deps): bump github.com/stretchr/testify from 1.8.0 to 1.8.1 (#583) @dependabot
  • chore(deps): bump github.com/cenkalti/backoff/v4 from 4.1.3 to 4.2.0 (#656) @dependabot
  • chore(deps): bump github.com/containerd/containerd from 1.6.8 to 1.6.10 (#621) @dependabot
  • chore(deps): bump golang.org/x/sys from 0.1.0 to 0.3.0 (#651) @dependabot
  • chore: run go mod tidy for all examples (#649) @mdelapenya

v0.16.0

21 Nov 09:00
9ad2a50
Compare
Choose a tag to compare

What's Changed

⚠️ Breaking Changes

  • feat: support native docker compose api (#476) @baez90

    Docker Compose v2 is implemented in Go, and for that reason we have decided to provide native Go support to Compose, deprecating the shell-escape based LocalDockerCompose, which was invoking the local binary of compose. Given the version includes the Compose dependency, and the Docker folks added a replace directive until the upcoming Docker 22.06 release is out, we were forced to add it too, causing consumers of Testcontainers for Go to add the following replace directive too.

replace (
	github.com/docker/cli => github.com/docker/cli v20.10.3-0.20221013132413-1d6c6e2367e2+incompatible // 22.06 master branch
	github.com/docker/docker => github.com/docker/docker v20.10.3-0.20221013203545-33ab36d6b304+incompatible // 22.06 branch
	github.com/moby/buildkit => github.com/moby/buildkit v0.10.1-0.20220816171719-55ba9d14360a // same as buildx

	github.com/opencontainers/runc => github.com/opencontainers/runc v1.1.2 // Can be removed on next bump of containerd to > 1.6.4

	// For k8s dependencies, we use a replace directive, to prevent them being
	// upgraded to the version specified in containerd, which is not relevant to the
	// version needed.
	// See https://github.com/docker/buildx/pull/948 for details.
	// https://github.com/docker/buildx/blob/v0.8.1/go.mod#L62-L64
	k8s.io/api => k8s.io/api v0.22.4
	k8s.io/apimachinery => k8s.io/apimachinery v0.22.4
	k8s.io/client-go => k8s.io/client-go v0.22.4
)
  • fix: do not prepend garbage in the container.Exec response (#624) @mdelapenya

    The signature of the Exec function on a container created by the library has been changed in what we thought it was a non-breaking change manner, using variadic arguments. But we confirmed that it could be a breaking change in the rare case where the Exec function is assigned to a variable.

// The original Exec function works here because its type is func(context.Context, []string),
// but the new Exec function’s type is func(context.Context, []string, ...ProcessOption),
// so the assignment fails at compile time. For that reason we are moving it to this section.
var execFn func(ctx context.Context, cmd []string) = myContainer.Exec

🚀 Features

  • feat: implement new MultiStrategy design (#580) @hhsnopek

    This PR enhances how the wait.ForAll strategy behaves: it will control the startup timeout and the deadline for all inner wait strategies, using two methods: WithStartupTimeoutDefault, which sets the default timeout for all inner wait strategies; and WithDeadline, which sets a time.Duration which limits all wait strategies. As a consequence, the already existing function WithStartupTimeout has been deprecated from the multi-strategy struct.

  • feat: Auth config for build images (#602) @paulozenida

  • feat: log docker info from compose (#591) @mdelapenya

🐛 Bug Fixes

  • fix: support parallel execution of reusable containers (#593) @mdelapenya

📖 Documentation

🧹 Housekeeping

📦 Dependency updates

v0.15.0

24 Oct 10:11
4c04bdf
Compare
Choose a tag to compare

What's Changed

🚀 Features

⚠️ Breaking Changes

Before this change, when waiting for a SQL to be executed in a container it always checked against localhost, but it could be the case that the database instance runs in a different container. For that reason, the library now supports passing the host where the database is running so that the wait.ForSQL function needs the host as part of the input parameters.

- func ForSQL(port nat.Port, driver string, url func(nat.Port) string) *waitForSql {
+ func ForSQL(port nat.Port, driver string, url func(host string, port nat.Port) string) *waitForSql {

🐛 Bug Fixes

  • fix: check if the container request is for the reaper (#574) @mdelapenya
  • fix: pass docker context key when reusing a container (#550) @mdelapenya
  • fix: use regex to find container by name (#558) @hwwwi
  • fix: expose default exposed ports if the NetworkMode is not container (#560) @clive-jevons
  • fix(compose): wait.ForExit() strategy should work for finished containers (#514) @Malinskiy

📖 Documentation

🧹 Housekeeping

📦 Dependency updates

v0.14.0

13 Sep 14:16
a99f307
Compare
Choose a tag to compare

What's Changed

🚀 Features

⚠️ Breaking Changes

🐛 Bug Fixes

📖 Documentation

  • docs: add contributing guides (#522) @mdelapenya
  • docs: add docs regarding Podman usage (#503) @baez90
  • docs: fix format for create-container feature (#481) @mdelapenya
  • Remove unused import in redis example (#471) @doodot
  • docs: add telegraf to users of testcontainers-go (#447) @powersj
  • chore: update branding (#429) @mdelapenya

🧹 Housekeeping

📦 Dependency updates

  • chore(deps): bump github.com/docker/go-units from 0.4.0 to 0.5.0 (#515) @dependabot
  • chore(deps): bump github.com/lib/pq from 1.10.6 to 1.10.7 in /e2e (#518) @dependabot
  • Update go-redis to v8.11.5 (#424) @johanoskarsson
  • chore(deps): bump gotest.tools/gotestsum from 1.7.0 to 1.8.2 (#499) @dependabot
  • chore(deps): bump github.com/containerd/containerd from 1.6.7 to 1.6.8 (#495) @dependabot
  • chore(deps): bump gotest.tools/gotestsum from 1.8.1 to 1.8.2 in /e2e (#498) @dependabot
  • chore(deps): bump github.com/containerd/containerd from 1.6.6 to 1.6.7 (#494) @dependabot
  • chore(deps): bump github.com/containerd/containerd from 1.5.9 to 1.6.6 (#444) @dependabot
  • chore: retire non-supported Go versions (#493) @mdelapenya
  • chore(deps): bump github.com/stretchr/testify from 1.7.2 to 1.8.0 (#487) @dependabot
  • chore(deps): bump gotest.tools/v3 from 3.2.0 to 3.3.0 (#486) @dependabot
  • chore(deps): bump github.com/cenkalti/backoff/v4 from 4.1.2 to 4.1.3 (#480) @dependabot
  • feat(deps): update dependencies to resolve dependabot security alerts (#484) @purpleclay
  • feat: update 3d party packages (#467) @VladimirStepanov
  • chore(deps): bump gotest.tools/gotestsum from 1.7.0 to 1.8.1 in /e2e (#477) @dependabot
  • chore: tell dependabot about the new module (#474) @mdelapenya
  • chore(deps): bump github.com/magiconair/properties from 1.8.5 to 1.8.6 (#448) @dependabot
  • chore(deps): bump gotest.tools/v3 from 3.0.3 to 3.2.0 (#431) @dependabot
  • chore(deps): bump containerd version to v1.5.13 (#446) @vinijabes