iilab / ckan-dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CKAN Dev Environment

The aim of this repository is to allow to setup a CKAN local development environment rapidly and also be able to reuse the ansible configuration scripts to provision a remote development environment or possibly a production instance.

Prerequisite

  • Vagrant 1.6.3+
  • Ansible 1.7+

To install the development environment run (this is only tested on OSX but should work on Linux).

  • git clone https://github.com/iilab/ckan-dev.git
  • cd ckan-dev
  • vagrant up (The provisioning will take a long time as it is building couch from source currently.)
    • Might have to download the ffuenf/debian-7.7.0-amd64 box like so:
vagrant box add ffuenf/debian-7.7.0-amd64 https://googledrive.com/host/0B83ZToJ3fGtDVC1DeVVzc3lkc0U/debian-7.7.0-amd64_virtualbox.box
  • (vagrant provision) Only necessary if you modify the playbook or need to provisioning an existing and running vagrant VM.

You should be able to access CKAN at http://192.168.33.50

Maintenance

You can run maintenance commands with ./paster.sh for instance to make someuser a sysadmin

./paster.sh  --plugin=ckan sysadmin -c /etc/ckan/default/ckan.ini add someuser

ToDO

This should allow to develop directly in a directory of the developer's computer and be able to execute basic maintenance tasks from outside the vagrant box.

About


Languages

Language:Shell 100.0%