Sign inSign up

ncarlier/cassandra

By ncarlier

Updated about 8 years ago

Cassandra Docker image based on spotify/cassandra image. This image is built to run on CoreOS.

Image
0

2.3K

ncarlier/cassandra repository overview

Cassandra Docker image

Image size Docker pulls

Description

Cassandra Docker image based on Spotify image.

Usage

On a Docker host

Start the container:

docker run -d -P -e SERVICE_PORT=9160 -e CASSANDRA_TOKEN=0 --name cassandra ncarlier/cassandra
On CoreOS

Configure etcd:

# Get tokens (for 3 nodes)
python -c 'print [str(((2**64 / 3) * i) - 2**63) for i in range(3)]'

# Set cluster name
etcdctl set /configurations/cassandra/clustername wlcore
# Set seeds IP
etcdctl set /configurations/cassandra/seeds 10.0.0.205,10.0.0.11,10.0.0.250
# Set tokens for each node:
etcdctl set -- /configurations/cassandra/node1/token -9223372036854775808
etcdctl set -- /configurations/cassandra/node2/token -3074457345618258603
etcdctl set /configurations/cassandra/node3/token 3074457345618258602

Start the cluster:

fleetctl start cassandra@{1..3}.service

Build

Build the image with make.

Use make help to see available commands for this image.

Tag summary

Content type

Image

Digest

sha256:d45a56dfd

Size

169.6 MB

Last updated

about 8 years ago

docker pull ncarlier/cassandra