docker-library / cassandra

Docker Official Image packaging for Cassandra
Apache License 2.0
262 stars 281 forks source link

How to setup an init script with Docker Cassandra? #216

Closed r2-lf closed 3 years ago

r2-lf commented 3 years ago

I'd like to create a keyspace immediately after starting the Docker Cassandra container. What is the recommended way to do that?

My end goal is to use this container as a target for testing in TravisCI, but I need a keyspace created prior to running tests.

Thanks!

r2-lf commented 3 years ago

We're gonna use cqlsh to exec some CQL after startup. We're good.