summaryrefslogtreecommitdiffstats
path: root/mgr
diff options
context:
space:
mode:
authorMahendra Raghuwanshi <mahendra.raghuwanshi@amdocs.com>2018-05-01 04:51:15 +0000
committerMahendra Raghuwanshi <mahendra.raghuwanshi@amdocs.com>2018-05-01 04:53:28 +0000
commitfe30da57b821616e9e92f27b8dd96d8056a91f30 (patch)
tree8505b69272ceb655b55414a3b4c25f291549addf /mgr
parentce0a4ef653fd6e44011fa1d3fcb961dab1e6247c (diff)
VFC Containers not coming up using K8s
Change-Id: Ic8831e8223abd52e2aebd6be0d6d0e6e92336604 Issue-ID: VFC-894 Signed-off-by: Mahendra Raghuwanshi <mahendra.raghuwanshi@amdocs.com>
Diffstat (limited to 'mgr')
-rw-r--r--mgr/docker/Dockerfile4
-rwxr-xr-xmgr/docker/instance_init.sh4
2 files changed, 5 insertions, 3 deletions
diff --git a/mgr/docker/Dockerfile b/mgr/docker/Dockerfile
index b20a7d2..b88a8a7 100644
--- a/mgr/docker/Dockerfile
+++ b/mgr/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/vnfmgr/mgr
RUN pip install -r requirements.txt
@@ -51,4 +53,4 @@ EXPOSE 3306
EXPOSE 6379
WORKDIR /service
-ENTRYPOINT vfc/gvnfm/vnfmgr/mgr/docker/docker-entrypoint.sh \ No newline at end of file
+ENTRYPOINT vfc/gvnfm/vnfmgr/mgr/docker/docker-entrypoint.sh
diff --git a/mgr/docker/instance_init.sh b/mgr/docker/instance_init.sh
index 15b597c..90468f8 100755
--- a/mgr/docker/instance_init.sh
+++ b/mgr/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
}
@@ -17,4 +17,4 @@ function create_database {
start_redis_server
start_mysql
-create_database \ No newline at end of file
+create_database