Skip to content
This repository has been archived by the owner on Apr 13, 2021. It is now read-only.

KSP-CKAN/NetKAN-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

App::KSP-CKAN Build Status Coverage Status

Non Perl Dependencies

apt-get install liblocal-lib-perl cpanminus build-essential mono-complete libcurl4-openssl-dev libdist-zilla-perl

NetKAN will need certs for mono

mozroots --import --ask-remove

Configure local::lib if you haven't already done so:

$ perl -Mlocal::lib >> ~/.bashrc
$ eval $(perl -Mlocal::lib)

Installation

Install from git, you can then use:

$ touch Changes
$ dzil authordeps | cpanm
$ dzil listdeps   | cpanm
$ dzil install

or cpanm via the tar.gz on the GitHub Release page

cpanm App-KSP_CKAN-0.001.tar.gz

Configuration

An ini file with the following contents will need to created at ~/.ksp-ckan

CKAN_meta=git@github.com:KSP-CKAN/CKAN-meta.git
NetKAN=git@github.com:KSP-CKAN/NetKAN-bot.git
netkan_exe=https://ckan-travis.s3.amazonaws.com/netkan.exe
working=/home/NetKAN/NetKAN

If you have a GitHub token, add the following line (helpful for prevent expending the GitHub public API limits):

GH_token=1234567890

Running

Completing a full index is as straight forward as:

netkan-indexer

Debugging will print debug messages to the logfile and to the screen. It is enabled with

netkan-indexer --debug

Enable it in cron with (crontab -e as the netkan user):

# Run full index every 3 hours
00 */3 * * * PERL5LIB=/home/netkan/perl5/lib/perl5/ netkan-indexer

There is a 'lite' cli option is not implemented. It's a future concept to allow 'lite' skimming of metadata API endpoints without performing a full metadata inflation.

License

Dist::Zilla handles the generation of the license file.

However this project is covered by The MIT License (MIT)