summaryrefslogtreecommitdiffstats
path: root/mgr/docker/Dockerfile
diff options
context:
space:
mode:
authorfujinhua <fu.jinhua@zte.com.cn>2017-09-07 09:03:14 +0800
committerfujinhua <fu.jinhua@zte.com.cn>2017-09-07 09:03:14 +0800
commitaed9b965c6333766cf35594408fe6a9002ff6eb8 (patch)
treeee8be7b8ebd14e93f425a35ad97310fe870e38e6 /mgr/docker/Dockerfile
parentd816d444383c73862535c89483c01e0d125a722c (diff)
Fix docker scripts of gvnfm-vnfmgr
Use db scripts in gvnfm-vnfres Change-Id: Icdee02e9999a77899e08b607319a936ecdf29faf Issue-Id: VFC-300 Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
Diffstat (limited to 'mgr/docker/Dockerfile')
-rw-r--r--mgr/docker/Dockerfile7
1 files changed, 7 insertions, 0 deletions
diff --git a/mgr/docker/Dockerfile b/mgr/docker/Dockerfile
index 45c1545..c59b229 100644
--- a/mgr/docker/Dockerfile
+++ b/mgr/docker/Dockerfile
@@ -34,6 +34,13 @@ RUN wget -q -O vfc-gvnfm-vnfmgr.zip 'https://nexus.onap.org/service/local/artifa
unzip vfc-gvnfm-vnfmgr.zip && \
rm -rf vfc-gvnfm-vnfmgr.zip
+# get db scripts from nexus
+RUN wget -q -O vfc-gvnfm-vnfres-res.zip 'https://nexus.onap.org/service/local/artifact/maven/redirect?r=snapshots&g=org.onap.vfc.gvnfm.vnfres&a=vfc-gvnfm-vnfres-res&v=LATEST&e=zip' && \
+ unzip vfc-gvnfm-vnfres-res.zip vfc/gvnfm/vnfres/res/assembly/*.* && \
+ mv ./vfc/gvnfm/vnfres/res/assembly/bin ./bin && \
+ mv ./vfc/gvnfm/vnfres/res/assembly/dbscripts ./dbscripts && \
+ rm -rf vfc-gvnfm-vnfres-res.zip
+
RUN sed -i "s|bind-address.*|# bind-address = 127.0.0.1|" /etc/mysql/my.cnf
WORKDIR /service/vfc/gvnfm/vnfmgr/mgr