Dockerfile of Cassandra for Docker's automated build.
1.2K
Based on Cassandra Datastax, version 2.1.8.
docker build -t 47deg/cassandra .
docker push 47deg/cassandra
docker run -d --name opscenter 47deg/opscenter
To get the OpsCenter IP from the container:
OPS_IP=$(docker inspect -f '{{ .NetworkSettings.IPAddress }}' opscenter)
3 Cassandra nodes for instance, would be launched in this way:
docker run -d -p 9042:9042 --name cass1 -e OPS_IP=$OPS_IP 47deg/cassandra
sleep $DEFAULT_SLEEP
docker run -d -p 9042:9042 --name cass2 -e OPS_IP=$OPS_IP 47deg/cassandra
sleep $DEFAULT_SLEEP
docker run -d -p 9042:9042 --name cass3 -e OPS_IP=$OPS_IP 47deg/cassandra
sleep $DEFAULT_SLEEP
This docker image is based on @abh1nav work, in his excellent repository https://github.com/abh1nav/docker-cassandra .
Content type
Image
Digest
sha256:c1490e970…
Size
291.7 MB
Last updated
about 11 years ago
docker pull 47deg/cassandra