VFC Containers not coming up using K8s 85/45385/1
authorMahendra Raghuwanshi <mahendra.raghuwanshi@amdocs.com>
Tue, 1 May 2018 04:40:27 +0000 (04:40 +0000)
committerMahendra Raghuwanshi <mahendra.raghuwanshi@amdocs.com>
Tue, 1 May 2018 04:46:18 +0000 (04:46 +0000)
Change-Id: Ib749ca0fb4950bf433736f44a8b9ae1d170d5019
Issue-ID: VFC-894
Signed-off-by: Mahendra Raghuwanshi <mahendra.raghuwanshi@amdocs.com>
lcm/docker/Dockerfile
lcm/docker/instance_init.sh

index 5d26454..8597e40 100755 (executable)
@@ -43,6 +43,8 @@ RUN wget -q -O vfc-gvnfm-vnfres-res.zip 'https://nexus.onap.org/service/local/ar
 
 RUN sed -i "s|bind-address.*|# bind-address = 127.0.0.1|" /etc/mysql/my.cnf
 
+VOLUME /var/lib/mysql
+
 WORKDIR /service/vfc/gvnfm/vnflcm/lcm
 RUN pip install -r requirements.txt
 
index 599584d..90468f8 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
 }