summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--huawei/vnfmadapter/VnfmadapterService/docker/Dockerfile7
-rw-r--r--huawei/vnfmadapter/VnfmadapterService/docker/docker-env-config.sh2
-rw-r--r--huawei/vnfmadapter/VnfmadapterService/requirements.txt21
3 files changed, 25 insertions, 5 deletions
diff --git a/huawei/vnfmadapter/VnfmadapterService/docker/Dockerfile b/huawei/vnfmadapter/VnfmadapterService/docker/Dockerfile
index 7f0fb6eb..11161ae8 100644
--- a/huawei/vnfmadapter/VnfmadapterService/docker/Dockerfile
+++ b/huawei/vnfmadapter/VnfmadapterService/docker/Dockerfile
@@ -12,10 +12,9 @@ ENV pkg_verison=${PKG_VERSION}
ADD . /service
WORKDIR /service
-RUN bash docker-env-config.sh
-VOLUME /var/lib/mysql
-
+RUN sh /service/docker-env-config.sh
EXPOSE 8482
USER onap
-ENTRYPOINT /service/docker-entrypoint.sh
+WORKDIR /service
+ENTRYPOINT /docker/docker-entrypoint.sh
diff --git a/huawei/vnfmadapter/VnfmadapterService/docker/docker-env-config.sh b/huawei/vnfmadapter/VnfmadapterService/docker/docker-env-config.sh
index c82b81a8..7c630937 100644
--- a/huawei/vnfmadapter/VnfmadapterService/docker/docker-env-config.sh
+++ b/huawei/vnfmadapter/VnfmadapterService/docker/docker-env-config.sh
@@ -12,7 +12,7 @@ install_sf(){
rm -f nfvo-driver-vnfm-huawei.zip
wait
pip install --upgrade setuptools pip
- pip install --no-cache-dir --pre -r /service/vfc/nfvo/driver/vnfm/svnfm/huawei/vnfmadapter/requirements.txt
+ pip install --no-cache-dir --pre -r /service/requirements.txt
find /service -name '*.sh'|xargs chmod a+x
}
diff --git a/huawei/vnfmadapter/VnfmadapterService/requirements.txt b/huawei/vnfmadapter/VnfmadapterService/requirements.txt
new file mode 100644
index 00000000..8d63bf0d
--- /dev/null
+++ b/huawei/vnfmadapter/VnfmadapterService/requirements.txt
@@ -0,0 +1,21 @@
+# rest framework
+Django==2.1.10
+djangorestframework==3.10.0
+
+# for call rest api
+httplib2==0.19.1
+
+# for unit test
+coverage==4.2
+mock==3.0.5
+unittest_xml_reporting==1.12.0
+
+# for auto swagger
+drf-yasg==1.17.0
+flex>=6.11.1
+swagger-spec-validator>=2.1.0
+
+# uwsgi for parallel processing
+# uwsgi
+
+PyYAML==5.4.1