Add ansible docker support 03/69803/3
authorAaron Hay <ah415j@att.com>
Thu, 4 Oct 2018 09:24:45 +0000 (09:24 +0000)
committerTakamune Cho <takamune.cho@att.com>
Fri, 5 Oct 2018 18:02:38 +0000 (18:02 +0000)
Change-Id: I782e0f3b4c13d7acf1b3ae320f603866ac6d8966
Issue-ID: APPC-1168
Signed-off-by: Aaron Hay <ah415j@att.com>
docker-compose/docker-compose.yml

index aa737bb..dfceb9f 100644 (file)
@@ -40,6 +40,25 @@ services:
         max-size: "30m"
         max-file: "5"
 
+  ansible:
+    image: onap/sdnc-ansible-server-image:latest
+    depends_on :
+      - db
+    container_name: appc_ansible_container
+    entrypoint: ["/opt/onap/ccsdk/startAnsibleServer.sh"]
+    ports:
+      - "8000"
+    links:
+      - db:dbhost
+    environment:
+      - MYSQL_ROOT_PASSWORD=openECOMP1.0
+    logging:
+      driver:   "json-file"
+      options:
+        max-size: "30m"
+        max-file: "5"
+
+
 # Tweaking SDNC_CONFIG_DIR temporarily from ../sdnc/.. to ../appc/.. since it may be needed in this script
 #    to map to SDN-C AAI Service Bundle's AAI Activator class inside the gerrit sdnc/adaptors repo, so that
 #    the AAI Service bundle loads APP-C's aaiclient.properties instead of SDN-C's aaiclient.properties.
@@ -47,6 +66,7 @@ services:
     image: "onap/appc-image:latest"
     depends_on :
       - db
+      - ansible
     container_name: appc_controller_container
     entrypoint: ["/opt/onap/appc/bin/startODL.sh"]
     ports:
@@ -56,8 +76,7 @@ services:
       - "30290:9191"
     links:
       - db:dbhost
-      - db:sdnctldb01
-      - db:sdnctldb02
+      - ansible:ansiblehost
     environment:
       - MYSQL_ROOT_PASSWORD=openECOMP1.0
       - SDNC_CONFIG_DIR=/opt/onap/appc/data/properties
@@ -83,8 +102,6 @@ services:
       - "3000:3100"
     links:
       - db:dbhost
-      - db:sdnctldb01
-      - db:sdnctldb02
       - appc:sdnhost
     environment:
       - MYSQL_ROOT_PASSWORD=openECOMP1.0