summaryrefslogtreecommitdiffstats
path: root/res/docker
diff options
context:
space:
mode:
authorMahendra Raghuwanshi <mahendra.raghuwanshi@amdocs.com>2018-05-01 05:28:39 +0000
committerMahendra Raghuwanshi <mahendra.raghuwanshi@amdocs.com>2018-05-01 05:29:37 +0000
commit7f5664310fac572a2670acff817796da55a7b925 (patch)
tree4a3fc64b1926d8c3dac6c909aa44be29134794bf /res/docker
parent1edea8332599487975e8367435bc4134103f019b (diff)
VFC Containers not coming up using K8s
Change-Id: Ib509e3c5001f7cf3c4f8a0915dcfe2a6dd4fb49b Issue-ID: VFC-894 Signed-off-by: Mahendra Raghuwanshi <mahendra.raghuwanshi@amdocs.com>
Diffstat (limited to 'res/docker')
-rw-r--r--res/docker/Dockerfile2
-rwxr-xr-xres/docker/instance_init.sh2
2 files changed, 3 insertions, 1 deletions
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
}