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

NetKAN indexing service

Notifications You must be signed in to change notification settings

KSP-CKAN/NetKAN-bot

Folders and files

NameName
Last commit message
Last commit date
May 7, 2018
Apr 26, 2016
Jun 27, 2019
Jun 29, 2019
Jun 28, 2015
Jun 27, 2019
Jun 27, 2019
Jun 27, 2019
Jun 27, 2019
Aug 13, 2015

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

[email protected]:KSP-CKAN/CKAN-meta.git
[email protected]: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)