testcontainers / testcontainers-node

Testcontainers is a NodeJS library that supports tests, providing lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container.
https://testcontainers.com
MIT License
1.94k stars 195 forks source link

Remove default images and versions from modules #867

Open cristianrgreco opened 1 week ago

cristianrgreco commented 1 week ago

We currently have default images and versions defined for all modules. This means users can start a container effortlessly like new PostgreSqlContainer().start(). This works well when the module is first created and is using the latest versions, but as these versions get out of date, it is not possible for Testcontainers to push a change increasing the default module versions, as it could potentially break the builds of everyone using the default values. It is not feasible to continuously update and push out breaking changes.

The change will simply make the image name and version mandatory, e.g new PostgreSqlContainer("postgres:X.Y.Z").start().

joebowbeer commented 5 days ago

NOTE to check/update the installation examples, too:

https://github.com/testcontainers/community-module-registry