summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMahendra Raghuwanshi <mahendra.raghuwanshi@amdocs.com>2018-05-01 04:40:27 +0000
committerMahendra Raghuwanshi <mahendra.raghuwanshi@amdocs.com>2018-05-01 04:46:18 +0000
commit575bd01c3048274e504798da568dd0aa5c2c2b1d (patch)
treefd98d7e7c6f13002e77518371796429603ea7080
parent1f98be8e933753c1ad97ce0fd8883d95899e212a (diff)
VFC Containers not coming up using K8s
Change-Id: Ib749ca0fb4950bf433736f44a8b9ae1d170d5019 Issue-ID: VFC-894 Signed-off-by: Mahendra Raghuwanshi <mahendra.raghuwanshi@amdocs.com>
-rwxr-xr-xlcm/docker/Dockerfile2
-rwxr-xr-xlcm/docker/instance_init.sh2
2 files changed, 3 insertions, 1 deletions
diff --git a/lcm/docker/Dockerfile b/lcm/docker/Dockerfile
index 5d264543..8597e409 100755
--- a/lcm/docker/Dockerfile
+++ b/lcm/docker/Dockerfile
@@ -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
diff --git a/lcm/docker/instance_init.sh b/lcm/docker/instance_init.sh
index 599584d4..90468f83 100755
--- a/lcm/docker/instance_init.sh
+++ b/lcm/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
}