summaryrefslogtreecommitdiffstats
path: root/multivimbroker
diff options
context:
space:
mode:
authorHong Hui Xiao <honghui_xiao@yeah.net>2018-03-12 17:59:05 +0800
committerHong Hui Xiao <honghui_xiao@yeah.net>2018-03-23 10:44:52 +0800
commitd7297be670b59ed2787d20d219c13bac5c8d965e (patch)
tree5010283e074e7b010a005e6d142a13701f6028cc /multivimbroker
parent7850f681fb63a7dca983accd42433926334fd287 (diff)
Add pecan in bootstrap script
Add pecan as an option in bootstrap. Change-Id: Ib6ba34406e7c7fefaeae2af5a91cf9ffd297293c Issue-ID: MULTICLOUD-150 Signed-off-by: Hong Hui Xiao <honghui_xiao@yeah.net>
Diffstat (limited to 'multivimbroker')
-rw-r--r--multivimbroker/requirements.txt9
-rwxr-xr-xmultivimbroker/run.sh14
2 files changed, 17 insertions, 6 deletions
diff --git a/multivimbroker/requirements.txt b/multivimbroker/requirements.txt
index ef24d49..1d8330c 100644
--- a/multivimbroker/requirements.txt
+++ b/multivimbroker/requirements.txt
@@ -24,4 +24,11 @@ mock==2.0.0
unittest_xml_reporting==1.12.0
# for onap logging
-onappylog>=1.0.6 \ No newline at end of file
+onappylog>=1.0.6
+
+# for pecan framework
+pecan>=1.2.1
+oslo.concurrency>=3.21.0
+oslo.config>=4.11.0
+oslo.service>=1.25.0
+eventlet>=0.20.0
diff --git a/multivimbroker/run.sh b/multivimbroker/run.sh
index 35f2b9e..e73496f 100755
--- a/multivimbroker/run.sh
+++ b/multivimbroker/run.sh
@@ -26,10 +26,14 @@ if [ ! -x $logDir ]; then
mkdir -p $logDir
fi
-nohup python manage.py runserver 0.0.0.0:9001 2>&1 &
+if [ "$WEB_FRAMEWORK" == "pecan" ]
+then
+ python multivimbroker/scripts/api.py
+else
+ nohup python manage.py runserver 0.0.0.0:9001 2>&1 &
-while [ ! -f $logDir/multivimbroker.log ]; do
- sleep 1
-done
+ while [ ! -f $logDir/multivimbroker.log ]; do
+ sleep 1
+ done
-tail -F $logDir/multivimbroker.log
+ tail -F $logDir/multivimbroker.log