Add common backend to dev-setup 11/89011/1
authorkurczews <krzysztof.kurczewski@nokia.com>
Fri, 31 May 2019 09:57:55 +0000 (11:57 +0200)
committerkurczews <krzysztof.kurczewski@nokia.com>
Fri, 31 May 2019 10:12:07 +0000 (12:12 +0200)
Issue-ID: AAI-2465
Change-Id: If358817be1a79cef06f0fa1496c60f6def1de145
Signed-off-by: kurczews <krzysztof.kurczewski@nokia.com>
dev-setup/docker-compose.yml
dev-setup/janusgraph.properties [new file with mode: 0644]

index 098d779..b8a17a1 100644 (file)
@@ -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 (file)
index 0000000..c70a3b8
--- /dev/null
@@ -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