From 7f5664310fac572a2670acff817796da55a7b925 Mon Sep 17 00:00:00 2001 From: Mahendra Raghuwanshi Date: Tue, 1 May 2018 05:28:39 +0000 Subject: VFC Containers not coming up using K8s Change-Id: Ib509e3c5001f7cf3c4f8a0915dcfe2a6dd4fb49b Issue-ID: VFC-894 Signed-off-by: Mahendra Raghuwanshi --- res/docker/Dockerfile | 2 ++ res/docker/instance_init.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/res/docker/Dockerfile b/res/docker/Dockerfile index 15f6216..963051e 100644 --- a/res/docker/Dockerfile +++ b/res/docker/Dockerfile @@ -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 diff --git a/res/docker/instance_init.sh b/res/docker/instance_init.sh index c2d91e8..1986369 100755 --- a/res/docker/instance_init.sh +++ b/res/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