From d7297be670b59ed2787d20d219c13bac5c8d965e Mon Sep 17 00:00:00 2001 From: Hong Hui Xiao Date: Mon, 12 Mar 2018 17:59:05 +0800 Subject: 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 --- multivimbroker/requirements.txt | 9 ++++++++- multivimbroker/run.sh | 14 +++++++++----- 2 files changed, 17 insertions(+), 6 deletions(-) (limited to 'multivimbroker') 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 -- cgit 1.2.3-korg