summaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
authorPradeep Patel <pradeep.patel2@amdocs.com>2018-05-01 07:30:15 +0000
committerPradeep Patel <pradeep.patel2@amdocs.com>2018-05-01 07:31:17 +0000
commitcce4b07b19aa41b2e67997bc3329a34b52f068ad (patch)
tree0ede21a518c0a572f581992f66067eb73b9afc7e /docker
parent8f0e6f9e65f1f1825cbabae07a0ac9e116498136 (diff)
VFC Containers not coming up using K8s
Change-Id: Ibda444cc215d41adef9a0e184893d913de74de3d Issue-ID: VFC-894 Signed-off-by: Pradeep Patel <pradeep.patel2@amdocs.com>
Diffstat (limited to 'docker')
-rwxr-xr-xdocker/Dockerfile2
-rwxr-xr-xdocker/instance_init.sh2
2 files changed, 3 insertions, 1 deletions
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
}