Sign inSign up

rhyscampbell/dockercassandra

By rhyscampbell

Updated almost 7 years ago

A Cassandra Instance running on CentOS 8

Image
0

10K+

rhyscampbell/dockercassandra repository overview

Cassandra Docker Image

This Docker Image runs Cassandra in CentOS 8 and exposes the following ports...

  • 9042 - cql port
  • 9160 - thrift port
  • 7199 - jmx port

Build and run the Docker image

docker build -t cassandra .
docker volume create cass
docker run -tid --mount source=cass,target=/var/lib/cassandra --rm -p 9042:9042 -p 9160:9160 -p 7199:7199 --name rhys  cassandra
docker container ls

Verify ports are open on host

  • MacOS
netstat -anp tcp | grep LISTEN
  • Linux
netstat -tulpn | grep LISTEN

Access the running container and check Cassandra

docker exec -ti rhys sh
nodetool status

TODO

  • Add volume to persist data

Add tests for container ports

Tag summary

Content type

Image

Digest

Size

242.7 MB

Last updated

almost 7 years ago

docker pull rhyscampbell/dockercassandra