Titan Graph Database v1.0 exposing graphs via GraphSON-REST that uses Cassandra and ES
639
A very simple image that runs Titan graph database v1.0.0 and exposes its functionality via REST using Gremlin-Server. Initially intended for use with Python, but can by used with any other clients.
# create test network
docker network create test_titan_network
# run indexing dependencies
docker run -d --net=test_titan_network --name test_cassandra spotify/cassandra
docker run -d --net=test_titan_network --name test_es elasticsearch:1.5
# run titan
docker run -d --name test_titan \
--net=test_titan_network \
--link test_cassandra:cassandra \
--link test_es:es \
-e "BACKEND=cassandra" \
-e "SCHEMA_DEFAULT=default" \
windj007/titan-rest
# test
export TITAN_IP=`docker inspect -f '{{ .NetworkSettings.IPAddress }}' test_titan`
curl "http://$TITAN_IP:8182/?gremlin=g.V().count()"
# cleanup
docker rm -f test_cassandra test_es test_titan
docker network rm test_titan_network
# run indexing dependencies
docker run -d --name test_es elasticsearch:1.5
# run titan
docker run -d --name test_titan \
--link test_es:es \
-e "BACKEND=bdb" \
-e "SCHEMA_DEFAULT=default" \
-v /tmp/data:/data \
windj007/titan-rest
# test
export TITAN_IP=`docker inspect -f '{{ .NetworkSettings.IPAddress }}' test_titan`
curl "http://$TITAN_IP:8182/?gremlin=g.V().count()"
Sometimes it can be useful to not to use Docker linking, e.g. to optimize network performance or when Cassandra and ES are running on other servers. In this case, one can tell docker to use host NIC and explicitly specify hostnames or IP addresses of Cassandra and ES instances.
# run indexing dependencies
docker run -d --net=host --name test_cassandra spotify/cassandra
docker run -d --net=host --name test_es elasticsearch
# run titan
docker run -d --net=host --name test_titan -e CASSANDRA_HOST=localhost -e ELASTICSEARCH_HOST=localhost windj007/titan-rest
# test
curl "http://localhost:8182/?gremlin=g.V().count()"
Image supports the following options:
Content type
Image
Digest
sha256:242c5a72f…
Size
267.8 MB
Last updated
about 10 years ago
docker pull windj007/titan-rest