Skip to content

feat: add Cassandra image#460

Open
barsdeveloper wants to merge 1 commit intotestcontainers:mainfrom
barsdeveloper:cassandra
Open

feat: add Cassandra image#460
barsdeveloper wants to merge 1 commit intotestcontainers:mainfrom
barsdeveloper:cassandra

Conversation

@barsdeveloper
Copy link
Copy Markdown

No description provided.

@barsdeveloper
Copy link
Copy Markdown
Author

In the test and docs example, I use scylla crate it seems to be the best and most maintained crate to use Cassandra in Rust. There are other crates but they appear to be unmaintained.

@krispenney
Copy link
Copy Markdown

👋 @DDtKey @barsdeveloper were there any blockers to merge this one? I'm looking to build a rust app with a similar setup and this would really help me test.

@DDtKey
Copy link
Copy Markdown
Contributor

DDtKey commented Apr 15, 2026

No, I just didn't have a bandwidth to take a look

Will do soon!

@barsdeveloper
Copy link
Copy Markdown
Author

barsdeveloper commented Apr 15, 2026

Hi, You can very easily do it without this specific image. Look how I initialize my test here:
https://github.com/TankHQ/tank/blob/master/tank-scylladb/tests/init.rs#L136

    let mut image = GenericImage::new("cassandra", "5.0.6")
        .with_startup_timeout(Duration::from_secs(120))
        .with_log_consumer(TestcontainersLogConsumer)
        .with_mapped_port(9042, ContainerPort::Tcp(9042))
        .with_ready_conditions(vec![WaitFor::message_on_either_std("Startup complete")]);

SSL on Cassandra I didn't manage to make it work, please ignore all the encryption specific settings.

@DDtKey DDtKey changed the title Add Cassandra image feat: add Cassandra image Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants