summaryrefslogtreecommitdiffstats
path: root/reporting/docker/reporting.sh
diff options
context:
space:
mode:
Diffstat (limited to 'reporting/docker/reporting.sh')
-rwxr-xr-xreporting/docker/reporting.sh18
1 files changed, 17 insertions, 1 deletions
diff --git a/reporting/docker/reporting.sh b/reporting/docker/reporting.sh
index d6b173c..1bef1b8 100755
--- a/reporting/docker/reporting.sh
+++ b/reporting/docker/reporting.sh
@@ -61,4 +61,20 @@ else
echo "********************************"
python ./$project/reporting-$reporting_type.py
fi
-mv display /usr/share/nginx/html
+cp -r display /usr/share/nginx/html
+
+
+# nginx config
+cp /home/opnfv/utils/test/reporting/docker/nginx.conf /etc/nginx/conf.d/
+echo "daemon off;" >> /etc/nginx/nginx.conf
+
+# supervisor config
+cp /home/opnfv/utils/test/reporting/docker/supervisor.conf /etc/supervisor/conf.d/
+
+# build pages
+cd pages
+ln -s /usr/bin/nodejs /usr/bin/node
+npm install
+npm install -g grunt bower
+bower install --allow-root
+grunt build