This repository contains Cassandra that runs in a distroless container for Docker/Kubernetes
See LICENSE
Only tested on Linux at this time. Use NO_TLS set to true for development. Using TLS requires more advanced configuration and will be documented in the future. You will need to download cqlsh, found in the Cassandra distribution, if you want to run queries.
sudo sysctl -w vm.max_map_count=1048575
docker run -it --rm -p 9042:9042 --cap-add SYS_RESOURCE --name cassandra -e NO_TLS=true linuxuser586/cassandra
In another terminal you can issue commands such as
docker exec -t cassandra nodetool info
To save data, use something like the following.
docker run -it --rm -p 9042:9042 --cap-add SYS_RESOURCE --name cassandra -v ~/cassandra/demo:/var/lib/cassandra -e NO_TLS=true linuxuser586/cassandra
You may add your own cassandra.yaml. You can start with the official version found in the cassandra release or just add the config you are interested in changing. For example if you just want to update the cluster you can create a conf directory and in your cassandra.yaml in that directory add cluster_name: 'Demo Cluster'. Then run the below command.
docker run -it --rm -p 9042:9042 --cap-add SYS_RESOURCE --name cassandra -v ~/conf:/conf -e NO_TLS=true linuxuser586/cassandra
Content type
Image
Digest
Size
86.2 MB
Last updated
almost 7 years ago
docker pull linuxuser586/cassandra