Comments (4)
cassandra:
image: cassandra
ports:
- "9042:9042"
- "9160:9160"
hostname: cassandra
container_name: cassandra
volumes:
- ./random_path/random.cql:/tmp/random.cql
command: >
bash -c "((sleep 20s && cqlsh < /tmp/random.cql &)
&& (/docker-entrypoint.sh cassandra -f)"
I did it like this with docker-compose.yml
In case of normal docker, we may need to wait for cassandra to come up. And once it's up, then you may need to exec into the docker container using
docker cp /random_path/random.cql cassandra:/tmp/random.cql
docker exec -i cassandra bash -c "cqlsh < /tmp/random.cql"
Or you can mount the cql files before as shown above in docker-compose.yml file.
And then run exec commands.
from cassandra.
I came across MySQL entry point file and i would prefer something like that.
from cassandra.
We currently use this:
https://gist.github.com/awalterschulze/7732a15b555facdd9399b7f8ed9b88bf
I hope someone else can come up with something better using two phase build to build the populated schema database into the single docker.
from cassandra.
Duplicate of #31.
from cassandra.
Related Issues (20)
- Readiness probe failed On Kubernetes: /bin/bash: /ready-probe.sh: No such file or directory HOT 3
- GO vulnerabilities found in Cassandra 4.0.1 image HOT 1
- Cassandra latest and MacOs Monterey 12.3 HOT 1
- Could not read commit log descriptor in file /var/lib/cassandra/commitlog/CommitLog-6-1646630759828.log HOT 3
- Cassandra Nodetool stops working after Java update to 8u332 / 11.0.15 HOT 5
- update gosu version in dockerfile template
- "The Java thread stack size specified is too small. Specify at least 384k" for ppc64le arch HOT 1
- jmx port in host mode HOT 3
- Add Cassandra 4.1 images
- OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release. HOT 1
- Different CASSANDRA_BROADCAST_ADDRESS and CASSANDRA_BROADCAST_RPC_ADDRESS values in docker-entrypoint.sh HOT 2
- Add OCI label org.opencontainers.image.source HOT 5
- Protocol issue in ECS deployment HOT 3
- Add 5.0-alpha1 docker image
- Cassandra:4.1.2 Power image failing on Camel jenkins CI HOT 1
- Add 5.0-alpha2 docker image HOT 3
- Multiple sstable* tools missing from the PATH of the official Docker image HOT 3
- Cassandra's amd64 images seem broken starting with 3.11.16 HOT 2
- gosu vulnerabilities and usage of End-of-Life Version of GO HOT 8
- Cassandra doesn't run with a low memory on docker HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cassandra.