Create keyspace automatically inside docker container with cassandra
问题 I was wondering if someone has tried to build a cassandra docker image with default keyspace, I've tried to do it on BUILD time but it doesn't work because cassandra is not running in that phase. It was something similar to this: FROM cassandra:2.0 COPY ../somewhere/keyspace_definition.txt /src/keyspace_definition.txt RUN /usr/bin/cqlsh -f /src/keyspace_definition.txt My new approach will be to do it from the entrypoint script, but, I wanted to now if someone else has a better idea. Happy