[2014-09-16] Update: The command now brings up a 5-node Cassandra cluster in addition to DataStax OpsCenter 5.0.0 and wires it all up together. See the GitHub repo for details. Each node runs in its own container with the Cassandra process + DataStax Agent while OpsCenter runs in its own container separate from the cluster.
Run this command to bring up a 5-node Cassandra (2.1.0) cluster locally using Docker.
bash <(curl -sL http://bit.ly/docker-cassandra)
1. Pull the abh1nav/cassandra:latest image.
2. Start the first node with the name cass1
3. Start cass2..5 with the environment variable SEED=<ip of cass1>
If you don’t like or trust the one liner, here’s how to do it manually.
Single Node Setup
To start the first node, pull the latest version of image:
docker pull abh1nav/cassandra:latest
Start the first instance:
docker run -d --name cass1 abh1nav/cassandra:latest