user wait-for to control container boot order 81/20081/2
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>
Mon, 23 Oct 2017 08:32:22 +0000 (10:32 +0200)
committerSylvain Desbureaux <sylvain.desbureaux@orange.com>
Wed, 25 Oct 2017 06:49:47 +0000 (08:49 +0200)
also added a link between db and so containers

Change-Id: I60b2fc862e94eefd4d5f1e2782750953da8be45d
Issue-ID: SO-208
Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com>
docker-compose.yml

index e5ac8c7..c2c867a 100644 (file)
@@ -37,8 +37,17 @@ services:
       mso.mso.testlab.openecomp.org
     depends_on:
       - mariadb
+    links:
+      - mariadb
     logging:
       driver: "json-file"
       options:
         max-size: "30m"
         max-file: "5"
+    command:
+      - /wait-for.sh
+      - -t
+      - "300"
+      - mariadb:3306
+      - --
+      - /opt/mso/scripts/start-jboss-server.sh