VFC Containers not coming up using K8s 89/45389/1
authorMahendra Raghuwanshi <mahendra.raghuwanshi@amdocs.com>
Tue, 1 May 2018 05:28:39 +0000 (05:28 +0000)
committerMahendra Raghuwanshi <mahendra.raghuwanshi@amdocs.com>
Tue, 1 May 2018 05:29:37 +0000 (05:29 +0000)
Change-Id: Ib509e3c5001f7cf3c4f8a0915dcfe2a6dd4fb49b
Issue-ID: VFC-894
Signed-off-by: Mahendra Raghuwanshi <mahendra.raghuwanshi@amdocs.com>
res/docker/Dockerfile
res/docker/instance_init.sh

index 15f6216..963051e 100644 (file)
@@ -36,6 +36,8 @@ RUN wget -q -O vfc-gvnfm-vnfres.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/gvnfm/vnfres/res
 RUN pip install -r requirements.txt
 
index c2d91e8..1986369 100755 (executable)
@@ -5,7 +5,7 @@ function start_redis_server {
 }
 
 function start_mysql {
-    find /var/lib/mysql -type f -exec touch {} \; && service mysql start
+    service mysql start
     sleep 1
 }