[titan-gremin] Fixed linked ES container lookup

* removed unnecessary complexity from README
This commit is contained in:
Geoff Bourne committed 2015-05-19 20:41:17 -05:00
1 parent ea32f70dd7
commit f9c7dddb19
2 files changed
+7 -10

No files matched your search

+6 -9
View File
@@ -12,28 +12,25 @@ attach a host directory to the container's `/conf` such as
docker run -it -v $(pwd)/conf:/conf itzg/titan-gremlin docker run -it -v $(pwd)/conf:/conf itzg/titan-gremlin
After running once your host directory will be populated with the distribution-default After running once your host directory will be populated with the distribution-default
configuration files. Modify those or add to them and they will available during configuration files. Modify those or add to them and they will be available during
the next use of gremlin. the next time you (re)start your container.
# Connecting to Cassandra and Elasticsearch Containers # Connecting to Cassandra and Elasticsearch Containers
First start containers for Cassandra and Elasticsearch, where the `--name` you choose First start containers for Cassandra and Elasticsearch, where the `--name` you choose
can be arbitrary or left off to use a generated name. can be arbitrary or left off to use a generated name.
_Note: Cassandra's Thrift port is exposed to allow for external usage, such as Titan Browser._
docker run -d --name cass -e PUBLISH_AS=192.168.59.103 -p 9160:9160 cass docker run -d --name gremlin-cass itzg/cassandra
docker run -d --name es -p 9300:9300 -e PUBLISH_AS=192.168.59.103:9300 itzg/elasticsearch docker run -d --name gremlin-es itzg/elasticsearch
Replacing `192.168.59.103` with your Docker host's LAN IP address. Now start Gremlin with networking links to those containers with the aliases
Now start Gremlin linking the containers to the respective aliases
* `--link <container>:cass` * `--link <container>:cass`
* `--link <container>:es` * `--link <container>:es`
such as such as
docker run -it --rm --link cass:cass --link es:es itzg/titan-gremlin docker run -it --rm --link gremlin-cass:cass --link gremlin-es:es itzg/titan-gremlin
and with that you can follow the and with that you can follow the
[Graph of the Gods example](http://s3.thinkaurelius.com/docs/titan/current/getting-started.html), such as [Graph of the Gods example](http://s3.thinkaurelius.com/docs/titan/current/getting-started.html), such as
+1 -1
View File
@@ -27,7 +27,7 @@ END
fi fi
esAddr=${ES_ENV_PUBLISH_AS:-ES_PORT_9300_TCP_ADDR} esAddr=${ES_ENV_PUBLISH_AS:-${ES_PORT_9300_TCP_ADDR}}
if [ -n "$ES_CLUSTER" -o -n "$esAddr" ]; then if [ -n "$ES_CLUSTER" -o -n "$esAddr" ]; then
shortcut=/tmp/titan.properties shortcut=/tmp/titan.properties