summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkurczews <krzysztof.kurczewski@nokia.com>2019-05-31 11:57:55 +0200
committerkurczews <krzysztof.kurczewski@nokia.com>2019-05-31 12:12:07 +0200
commit799470ca439ad6cd16230dbc27b88e9d71627b49 (patch)
treedcb1941a28d9265eeb5d6abcb4aa2918d377346d
parent1390c775a64ef8ad19b2cdc449a4ef094cbb1e30 (diff)
Add common backend to dev-setup
Issue-ID: AAI-2465 Change-Id: If358817be1a79cef06f0fa1496c60f6def1de145 Signed-off-by: kurczews <krzysztof.kurczewski@nokia.com>
-rw-r--r--dev-setup/docker-compose.yml17
-rw-r--r--dev-setup/janusgraph.properties15
2 files changed, 29 insertions, 3 deletions
diff --git a/dev-setup/docker-compose.yml b/dev-setup/docker-compose.yml
index 098d779..b8a17a1 100644
--- a/dev-setup/docker-compose.yml
+++ b/dev-setup/docker-compose.yml
@@ -2,10 +2,16 @@ version: '3'
services:
aai-resources:
- image: onap/aai-resources:1.3.4
+ image: onap/aai-resources:1.4.0
+ volumes:
+ - ./janusgraph.properties:/opt/app/aai-resources/resources/etc/appprops/janusgraph-cached.properties
+ - ./janusgraph.properties:/opt/app/aai-resources/resources/etc/appprops/janusgraph-realtime.properties
aai-traversal:
- image: onap/aai-traversal:1.3.4
+ image: onap/aai-traversal:1.4.0
+ volumes:
+ - ./janusgraph.properties:/opt/app/aai-traversal/resources/etc/appprops/janusgraph-cached.properties
+ - ./janusgraph.properties:/opt/app/aai-traversal/resources/etc/appprops/janusgraph-realtime.properties
aai-haproxy:
image: aaionap/haproxy:1.2.4
@@ -13,4 +19,9 @@ services:
- aai-resources:aai-resources.api.simpledemo.onap.org
- aai-traversal:aai-traversal.api.simpledemo.onap.org
ports:
- - "8443:8443"
+ - 8443:8443
+
+ aai-backend:
+ image: cassandra:3.11
+ environment:
+ - CASSANDRA_START_RPC=true
diff --git a/dev-setup/janusgraph.properties b/dev-setup/janusgraph.properties
new file mode 100644
index 0000000..c70a3b8
--- /dev/null
+++ b/dev-setup/janusgraph.properties
@@ -0,0 +1,15 @@
+query.fast-property=true
+query.smart-limit=false
+
+storage.backend=cassandra
+storage.hostname=aai-backend
+
+storage.cassandra.keyspace=aaigraph
+storage.cassandra.read-consistency-level=LOCAL_QUORUM
+storage.cassandra.write-consistency-level=LOCAL_QUORUM
+storage.cassandra.replication-factor=1
+storage.cassandra.replication-strategy-class=org.apache.cassandra.locator.SimpleStrategy
+storage.lock.wait-time=300
+
+cache.db-cache = false
+load.snapshot.file=false