[ckan-dev] CKAN Packaging and MultiInstance

Seb Bacon seb.bacon at gmail.com
Wed Jun 15 08:10:09 UTC 2011


This is exactly what's needed -- great stuff :)

Seb

On 13 June 2011 11:54, James Gardner <james at 3aims.com> wrote:
> Hi all,
>
> I'm just writing to keep you up to date with some packaging discussion.
>
> At the moment I've written a script called repo.py (with David Read) which
> automatically builds Debian packages from pip requirements such as these:
>
> https://bitbucket.org/okfn/ckan/src/1ab655b7b76a/requires/lucid_missing.txt
>
> That's pretty handy in itself but I've also gone further and written a set
> of common helper functions in bash which each help you perform one part of
> the CKAN install process for setting up an instance:
>
> https://bitbucket.org/okfn/ckan-debs-public/src/877b300622dc/ckan-common/usr/lib/ckan/common.sh
>
> They each check for a condition and only perform their action if they need
> to so they are safe to run multiple times.
>
> Finally, I've gone even further and written DEBAIN postinst scripts so that
> a CKAN instance can be automatically set up, using the bash functions in
> common.sh, when a package is installed.
>
> The repo.py script mentioned above is capable of building packages that use
> the postinst scripts so it should be soon be possible to install multiple
> instances of CKAN alongside each other on Ubuntu 10.04 amd64 as simply as
> this:
>
> sudo apt-get install ckan-std ckan-dgu etc
>
> If we can automate the generation of sample instance templates, we can
> automatically build the packages above and that will get us a long way
> towards being able to easily host and manage lots of CKAN instances on a
> single machine.
>
> More to come soon...
>
> Cheers,
>
> James
>
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev
>



-- 
skype: seb.bacon
mobile: 07790 939224
land: 01531 671074
web: http://baconconsulting.co.uk




More information about the ckan-dev mailing list