From c164830cef9b4b48c8148bd68792287a4cf6a29b Mon Sep 17 00:00:00 2001 From: Kumar Rishabh Date: Wed, 15 Mar 2017 01:20:39 +0530 Subject: Adds cronjob for filling vnf table row entries It uses github api calls to fill no_of_developers, no_of_stars and versions entry. It is a bit hacky as it sets some parameters and parses the header link line to get the number. TODO lines_of_code entry as it is not provided directly by github api. Change-Id: I6cba54ad48fbb6aa5f4823100a426abbb82fc447 Signed-off-by: Kumar Rishabh --- utils/test/vnfcatalogue/cronjobs/README.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 utils/test/vnfcatalogue/cronjobs/README.md (limited to 'utils/test/vnfcatalogue/cronjobs/README.md') diff --git a/utils/test/vnfcatalogue/cronjobs/README.md b/utils/test/vnfcatalogue/cronjobs/README.md new file mode 100644 index 000000000..cf27ff8c7 --- /dev/null +++ b/utils/test/vnfcatalogue/cronjobs/README.md @@ -0,0 +1,24 @@ +# CRONJOB Directory + +## Helper to setup cronjob to fill the vnf table + +There are two important parameters that need to be set in github.js +before running cronjob. + + +``` + access_token : generate an access token from github account for accessing + the github apis. This is necessary as the non access token limit tends to + be 50 api calls per hour. + delta : the threshold between the last update of the row of the vnf table + and current time. It is measured in seconds. +``` + +Enter the details namely username and password in the **database.js**. +Then setup the cronjob by putting the following line in the crontab + +In the crontab + +```bash + node github +``` -- cgit 1.2.3-korg