VFC Containers not coming up using K8s 91/45391/1
authorPradeep Patel <pradeep.patel2@amdocs.com>
Tue, 1 May 2018 06:32:02 +0000 (06:32 +0000)
committerPradeep Patel <pradeep.patel2@amdocs.com>
Tue, 1 May 2018 06:43:07 +0000 (06:43 +0000)
Issue-ID: VFC-894
Change-Id: I53398ee32ea7e771c2c44492c78849fa87ab0d28
Signed-off-by: Pradeep Patel <pradeep.patel2@amdocs.com>
docker/Dockerfile
docker/instance_init.sh

index b42c1e7..8df62df 100755 (executable)
@@ -36,6 +36,8 @@ RUN wget -q -O vfc-nfvo-catalog.zip 'https://nexus.onap.org/service/local/artifa
 
 RUN sed -i "s|bind-address.*|# bind-address = 127.0.0.1|" /etc/mysql/my.cnf
 
+VOLUME /var/lib/mysql
+
 WORKDIR /service/vfc/nfvo/catalog
 RUN pip install --pre -r requirements.txt
 
index 47ceea6..622477f 100755 (executable)
@@ -10,7 +10,7 @@ function start_redis_server {
 }
 
 function start_mysql {
-    find /var/lib/mysql -type f -exec touch {} \; && service mysql start
+    service mysql start
     sleep 1
 }