Standlone/Clustered Datastax Community running on top of a Ubuntu-based Docker image with opscenter agent
Version for Docker
This was started from the docker-cassandra project and enhanced (substantially)
opscenter container must be run first and be named:
opscenter
cassandra seed containers must be named one of the following:
cass1
cass2
cass3
cass4
cass5
cass6
cass7
cass8
cass9
cassandra containers must be linked to the opscenter container. This is needed to set the STOMP IP in the datastax-agent for the opscenter.
Note: any linked cassX containers are considered SEEDs.
see BUILD
Three node cluster with opscenter
DOCKER_REPO=quay.io/spiffxp
TAG=v4
docker run -d --name opscenter -p 8888:8888 ${DOCKER_REPO}/opscenter_mln:${TAG}
docker run -d --name cass1 --link opscenter:opscenter ${DOCKER_REPO}/cassandra_mln:${TAG}
docker run -d --name cass2 --link opscenter:opscenter --link cass1:cass1 ${DOCKER_REPO}/cassandra_mln:${TAG}
docker run -d --name cass3 --link opscenter:opscenter --link cass1:cass1 ${DOCKER_REPO}/cassandra_mln:${TAG}
Debug help
docker exec -it <container name> bash
Browser URL (boot2docker)
open http://$(boot2docker ip):8888
docker inspect cass1 # (look for NetworkSettings.IPAddress)
# Connect to existing cluster in web UI popup. Supply the IP address.