From a03dc51c900bd65f3967b8c670ed8433ead0d637 Mon Sep 17 00:00:00 2001 From: Pradeep Patel Date: Tue, 1 May 2018 08:04:00 +0000 Subject: [PATCH] VFC Containers not coming up using K8s Issue-ID: VFC-894 Change-Id: I929ef4a9c3f2a1ccc7ef177c7dc813448a3689e2 Signed-off-by: Pradeep Patel --- docker/Dockerfile | 2 ++ docker/instance_init.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index ec325137..1911a262 100755 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -36,6 +36,8 @@ RUN wget -q -O vfc-nfvo-lcm.zip 'https://nexus.onap.org/service/local/artifact/m RUN sed -i "s|bind-address.*|# bind-address = 127.0.0.1|" /etc/mysql/my.cnf +VOLUME /var/lib/mysql + WORKDIR /service/vfc/nfvo/lcm RUN pip install --pre -r requirements.txt diff --git a/docker/instance_init.sh b/docker/instance_init.sh index fb4f84a6..e8ee4bbc 100755 --- a/docker/instance_init.sh +++ b/docker/instance_init.sh @@ -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 } -- 2.16.6