testcontainers-python icon indicating copy to clipboard operation
testcontainers-python copied to clipboard

New Container: CrateDB

Open surister opened this issue 3 months ago • 3 comments

What is the new container you'd like to have? Container for CrateDB database.

Why not just use a generic container for this?

CrateDB has it's own wait strategy as well as the need to have different setups, for example to form a cluster we'd need 3 docker instances. These would be better implemented here, upstream.

Other references:

We have already a working implementation thanks to @amotl https://github.com/crate/cratedb-toolkit/blob/main/cratedb_toolkit/testing/testcontainers/cratedb.py

surister avatar Sep 30 '25 09:09 surister

Btw, I will submit a PR for this soon, I'd only need some kind of review from the maintainers, thanks in advance!

surister avatar Sep 30 '25 09:09 surister

One note please, as DbContainer is been deprecated you should not use it as a baseline for any new additions. (As discussed on https://github.com/testcontainers/testcontainers-python/issues/884)

Tranquility2 avatar Sep 30 '25 17:09 Tranquility2

depending on what you want to implement and how important it is to share to get people started with cratedb, its a good chance we will merge it.

These would be better implemented here, upstream.

in general we aim for the examples in this repo to be a starting point, not a final destination. so we encourage you to continue maintenance if you have the means. e.g. i do not maintain the community modules (we get PRs and i merge them but its not my focus, i have barely enough bandwidth for core)

alexanderankin avatar Oct 01 '25 22:10 alexanderankin