mount the /opt/cord directory into XOS containers

Change-Id: I1911258347c139afd619b717439c88580ee12688
diff --git a/cord-pod/xos.yaml b/cord-pod/xos.yaml
index a60f52d..8648af7 100644
--- a/cord-pod/xos.yaml
+++ b/cord-pod/xos.yaml
@@ -46,6 +46,16 @@
               node: xos
               relationship: tosca.relationships.UsedByXOS
 
+    /opt/cord:
+      type: tosca.nodes.XOSVolume
+      properties:
+          host_path: "/opt/cord"
+          read_only: true
+      requirements:
+          - xos:
+             node: xos
+             relationship: tosca.relationships.UsedByXOS
+
     /root/setup:
       type: tosca.nodes.XOSVolume
       properties:
diff --git a/frontend/docker-compose-bootstrap.yml b/frontend/docker-compose-bootstrap.yml
index 26f4b42..3a15e48 100644
--- a/frontend/docker-compose-bootstrap.yml
+++ b/frontend/docker-compose-bootstrap.yml
@@ -12,8 +12,6 @@
       - xos
     expose:
       - "5432"
-    ports:
-      - "5432:5432"
 
   xos_redis:
     image: redis
diff --git a/frontend/xos.yaml b/frontend/xos.yaml
index c1f4188..e73141f 100644
--- a/frontend/xos.yaml
+++ b/frontend/xos.yaml
@@ -37,6 +37,18 @@
               node: xos
               relationship: tosca.relationships.UsedByXOS
 
+    /opt/cord:
+      type: tosca.nodes.XOSVolume
+      properties:
+          # note: The following path should be set to the place where `repo init`
+          # was run to checkout your CORD hierarchy.
+          host_path: "/opt/cord"
+          read_only: true
+      requirements:
+          - xos:
+             node: xos
+             relationship: tosca.relationships.UsedByXOS
+
     /opt/xos/core/templatetags:
           type: tosca.nodes.XOSVolume
           properties:
diff --git a/mcord/xos.yaml b/mcord/xos.yaml
index ad22fc9..ed642b1 100644
--- a/mcord/xos.yaml
+++ b/mcord/xos.yaml
@@ -47,6 +47,16 @@
               node: xos
               relationship: tosca.relationships.UsedByXOS
 
+    /opt/cord:
+      type: tosca.nodes.XOSVolume
+      properties:
+          host_path: "/opt/cord"
+          read_only: true
+      requirements:
+          - xos:
+             node: xos
+             relationship: tosca.relationships.UsedByXOS
+
     /root/setup:
       type: tosca.nodes.XOSVolume
       properties: