summaryrefslogtreecommitdiffstats
path: root/reporting/docker/reporting.sh
diff options
context:
space:
mode:
authorchenjiankun <chenjiankun1@huawei.com>2016-12-16 07:34:13 +0000
committerchenjiankun <chenjiankun1@huawei.com>2016-12-16 10:17:19 +0000
commitfaf50c5d000ccf3a7523ba153798b20c44bd7142 (patch)
tree26405178dc5df3ceb0f5957fe4677ec87aca3394 /reporting/docker/reporting.sh
parentf6f24d49702a4680b40b3f5bbf809951ef44ac37 (diff)
Bugfix: reporting docker image build failed
JIRA: RELENG-181 Since we just decide to use dynamic server, we need to deploy a dynamic server such as tornado . But when I use the Dockerfile to build image, it failed due to some reasons. So I need fix it first and then deploy the dynamic server. Then we can use this command: docker run -it -d -p 8080:80 opnfv/releng:latest And visit reporting page by http://server_ip:8080/display/... Change-Id: Id04575c7b38e4c07625ce217d23ebca1c5bf0191 Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
Diffstat (limited to 'reporting/docker/reporting.sh')
-rwxr-xr-xreporting/docker/reporting.sh11
1 files changed, 5 insertions, 6 deletions
diff --git a/reporting/docker/reporting.sh b/reporting/docker/reporting.sh
index 5d4ea11..d6b173c 100755
--- a/reporting/docker/reporting.sh
+++ b/reporting/docker/reporting.sh
@@ -1,5 +1,4 @@
#!/bin/bash
-cd ..
export PYTHONPATH="${PYTHONPATH}:."
export CONFIG_REPORTING_YAML=./reporting.yaml
@@ -20,7 +19,7 @@ do
done
# copy images, js, css, 3rd_party
-cp -Rf 3rd_party display
+cp -Rf 3rd_party display
cp -Rf css display
cp -Rf html/* display
cp -Rf img display
@@ -34,7 +33,7 @@ cp -Rf js display
if [ -z "$1" ]; then
echo "********************************"
- echo " Functest reporting "
+ echo " Functest reporting "
echo "********************************"
echo "reporting vIMS..."
python ./functest/reporting-vims.py
@@ -49,7 +48,7 @@ if [ -z "$1" ]; then
echo "Functest reporting status...OK"
echo "********************************"
- echo " Yardstick reporting "
+ echo " Yardstick reporting "
echo "********************************"
python ./yardstick/reporting-status.py
echo "Yardstick reporting status...OK"
@@ -58,8 +57,8 @@ else
reporting_type="status"
fi
echo "********************************"
- echo " $project/$reporting_type reporting "
+ echo " $project/$reporting_type reporting "
echo "********************************"
python ./$project/reporting-$reporting_type.py
fi
-
+mv display /usr/share/nginx/html