Skip to content

Commit a66b924

Browse files
authored
Merge pull request #529 from gaeljw/docs/upgrade-guide-v2
📝 docs: document upgrade to 0.44 (v2)
2 parents e45d003 + d431247 commit a66b924

File tree

3 files changed

+39
-1
lines changed

3 files changed

+39
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ allows using docker containers for functional/integration/~~unit~~ testing.
2020

2121
* [Setup and modules choice](docs/src/main/tut/setup.md)
2222
* [Usage](docs/src/main/tut/usage.md)
23+
* [Upgrade guide](docs/src/main/tut/upgrade_guide.md)
2324
* [testcontainers-scala in action (blog post)](http://dimafeng.com/2016/08/01/testcontainers-selenium)
2425

2526
The following test frameworks are supported:

docs/src/main/tut/setup.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ Here is the full list of the [currently available modules](https://github.com/te
7474
* `testcontainers-scala-cockroachdb` — module with the CockroachDB container.
7575
* `testcontainers-scala-couchbase` — module with the Couchbase container.
7676
* `testcontainers-scala-db2` — module with the DB2 container.
77-
* `testcontainers-scala-dynalite` — module with the Dynalite container.
7877
* `testcontainers-scala-elasticsearch` — module with the Elastic search container.
7978
* `testcontainers-scala-influxdb` — module with the InfluxDB container.
8079
* `testcontainers-scala-localstack` — module with the Localstack container.

docs/src/main/tut/upgrade_guide.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Upgrade guide
2+
3+
This guide contains information for upgrading to some versions when there are major changes.
4+
5+
## Upgrade to 0.44.x
6+
7+
This version bumps the underlying testcontainers-java to v2 ([release note](https://github.com/testcontainers/testcontainers-java/releases/tag/2.0.0)).
8+
9+
### Breaking changes
10+
11+
- Dynalite module is removed (`testcontainers-scala-dynalite`), following its removal in testcontainers-java. No replacement.
12+
- Kafka module:
13+
- `KafkaContainer` now targets the Apache Kafka image (`apache/kafka:latest`) instead of the Confluent one (`confluentinc/cp-kafka`) (as does testcontainers-java). Use `KafkaConfluentContainer` to keep using the Confluent one.
14+
- `ConfluentKafkaContainer` defaults to tag `8.1.0` (was `7.6.1`).
15+
16+
### Image changes
17+
18+
- `CockroackContainer`: now uses `cockroachdb/cockroach` by default (was `v19.2.11`).
19+
- `Db2Container`: now uses `icr.io/db2_community/db2:latest` by default (was `ibmcom/db2:11.5.0.0a`).
20+
- `MariaDBContainer`: now uses `mariadb:latest` by default (was `mariadb:10.3.6`).
21+
- `MSSQLServerContainer`: now uses `mcr.microsoft.com/mssql/server:latest` by default (was `mcr.microsoft.com/mssql/server:2017-CU12`).
22+
- `MySQLContainer`: now uses `mysql:latest` by default (was `mysql:5.7.34`).
23+
24+
### New
25+
26+
- Add support for specifying Docker image in `DockerComposeContainer` and `ComposeContainer`
27+
28+
### Others
29+
30+
Removed several deprecated (or removed from the underlying testcontainers-java library) methods/attributes.
31+
32+
- `CassandraContainer`: `jmxReporting` is removed.
33+
- `OrientDBContainer`: `testQueryString`, `orientDB`, and `session` are removed.
34+
- `RabbitMQContainer`: `queues`, `exchanges`, `bindings`, `users`, `vhosts`, `vhostsLimits`, `operatorPolicies`, `policies`, `parameters`, `permissions`, `pluginsEnabled`, `ssl` are removed.
35+
- `ToxiproxyContainer`: `proxy` is removed.
36+
- `DockerComposeContainer`: `localCompose` is removed.
37+
- `Container` and `MultipleContainers`: `finished`, `succeeded`, `starting` and `failed` are removed in favour of `stop`, `start` or optionally `afterTest`.
38+
- Transitive dependency to JUnit 4 removed in Scalatest, munit and specs2 modules.

0 commit comments

Comments
 (0)