From cce4b07b19aa41b2e67997bc3329a34b52f068ad Mon Sep 17 00:00:00 2001 From: Pradeep Patel Date: Tue, 1 May 2018 07:30:15 +0000 Subject: VFC Containers not coming up using K8s Change-Id: Ibda444cc215d41adef9a0e184893d913de74de3d Issue-ID: VFC-894 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 } -- cgit 1.2.3-korg