A Vagrant based local development setup for CKAN 2.8.4
-
Clone this repository
-
Install vagrant, https://www.vagrantup.com/docs/installation/
-
Install some vagrant extensions, run this on your CLI
vagrant plugin install vagrant-hostmanager vagrant plugin install vagrant-cachier vagrant plugin install vagrant-vbguest
-
Install any git submodules:
git submodule init git submodule update
-
Launch the Vagrant box:
cd vagrant vagrant up
-
SSH into the Vagrant box and launch the CKAN instance:
vagrant ssh . /usr/lib/ckan/default/bin/activate paster serve --reload /etc/ckan/default/development.ini
-
Browse your local CKAN instance:
http://ckan284.loc:5000
The setup_ckan
script imports a CKAN database with some test data setup:
-
test organisation
-
test dataset
-
test users (all p/w: password):
- admin
- org_admin
- org_editor
- org_member
- test_user (no affiliations)
-
test groups
- Group 1
- Group 2
After vagrant ssh
you can use the following commands:
serve
- stop & start Solr, then serve CKAN
reserve
- serve CKAN without stopping & starting Solr.
jobworker
- start the CKAN Job Worker.