diff options
author | Kumar Rishabh <shailrishabh@gmail.com> | 2017-03-15 01:20:39 +0530 |
---|---|---|
committer | Kumar Rishabh <shailrishabh@gmail.com> | 2017-03-15 19:00:30 +0530 |
commit | c164830cef9b4b48c8148bd68792287a4cf6a29b (patch) | |
tree | 72506935527bb19a216e64c369d6892153202966 /utils/test/vnfcatalogue/cronjobs/README.md | |
parent | d08d2aa2484626b66bd3d904d67a653f7683f6b4 (diff) |
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 <shailrishabh@gmail.com>
Diffstat (limited to 'utils/test/vnfcatalogue/cronjobs/README.md')
-rw-r--r-- | utils/test/vnfcatalogue/cronjobs/README.md | 24 |
1 files changed, 24 insertions, 0 deletions
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 +``` |