testcontainers / testcontainers-python

Testcontainers is a Python library that providing a friendly API to run Docker container. It is designed to create runtime environment to use during your automatic tests.
https://testcontainers-python.readthedocs.io/en/latest/
Apache License 2.0
1.58k stars 288 forks source link

New Container: Db2 #672

Closed desertsxin closed 2 months ago

desertsxin commented 2 months ago

What is the new container you'd like to have?

IBM Db2 database. Container: ibmcom/db2 Documentation: deployments-db2-community-edition-docker

Why not just use a generic container for this?

I noticed there is a PR https://github.com/testcontainers/testcontainers-python/pull/321 for the Db2 support, but it has been closed.

IBM Db2 is a widely used relational database, and it should be supported as a dedicated container. The Db2 container requires specific setup configurations as listed in https://hub.docker.com/r/ibmcom/db2, and the wait strategry involves checking the availability of the database or some specific keywords in the container log.

Other references:

Include any other relevant reading material about the enhancement.