Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

loading data files into cqlsh before the container get's exposed #149

Closed
wants to merge 1 commit into from

Conversation

emschimmel
Copy link

This is a feature I use to run initialisation scripts before the container is exposed.
If a folder names /data is mounted, it will execute cql, cql.gz and sh scripts in alphabetic order.
This way the container doesn't have to be started empty, but can be started as a fresh container with a defined keyspace and data.

@tianon
Copy link
Member

tianon commented Oct 3, 2018

Closing given #31 (comment):

Closing with a similar rationale to #94 -- the proper deployment of Cassandra is clustered, and is much more complicated to get right automatically. It is not recommended to use a standalone deployment, and I fear such a feature would encourage folks to do so (since it couldn't possibly work with a cluster properly and/or detect clustered operation). For folks that really want to go there, building something like that on top of the provided image shouldn't be too much work. 👍

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.

2 participants