From 9762c5f7227cef5d953452216dcced6014aa4aad Mon Sep 17 00:00:00 2001 From: chenjiankun Date: Mon, 20 Feb 2017 09:35:22 +0000 Subject: Create Test Reporting landing page JIRA: RELENG-165 In this patch, I upload the backend code usage: docker run -itd -p 8000:8000 -e SERVER_URL=server_ip:8000 opnfv/reporting: note: must point SERVER_URL, it is the api server. visit landing page: http://server_ip:8000/reporting/index.html Change-Id: I10121574e0c4b2733a8084c986d7a2746e7ce2a4 Signed-off-by: chenjiankun --- reporting/pages/angular.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 reporting/pages/angular.sh (limited to 'reporting/pages/angular.sh') diff --git a/reporting/pages/angular.sh b/reporting/pages/angular.sh new file mode 100755 index 0000000..a7f1675 --- /dev/null +++ b/reporting/pages/angular.sh @@ -0,0 +1,10 @@ +: ${SERVER_URL:='http://testresults.opnfv.org/reporting/api'} + +echo "var BASE_URL = 'http://${SERVER_URL}/landing-page'" > app/scripts/app.config.js + +apt-get install -y nodejs +apt-get install -y npm +npm install +npm install -g grunt bower +bower install --allow-root +grunt build -- cgit 1.2.3-korg