poppy/docker
amitgandhinz 13b15c9f39 Readme file for the Cassandra Docker setup 2014-07-21 10:56:03 -04:00
..
api-cdn fixed Docker File repo reference to rackerlabs, and fastly client reference 2014-07-01 13:41:13 -04:00
cassandra-cdn change cassandra-cdn 2014-07-01 11:11:50 -04:00
README.md Readme file for the Cassandra Docker setup 2014-07-21 10:56:03 -04:00

README.md

Building the Cassandra Docker Image

From the docker/cassandra-cdn folder:

$ docker build -t db .

Running the Cassandra Docker Container

Open the 9160 and 9042 ports for Cassandra. Name the container 'cassandra'

$ docker run -d -p 9160:9160 -p 9042:9042 --name cassandra db

Testing

Access the running cassandra instance (you may need to pip install cqlsh):

$ cqlsh <local ip> 9160

Where local ip is the ip address of your running docker container

Import Schema

Import the schema file from the cdn/storage/cassandra/schema.cql file.