Monday, November 26, 2012

OpenGrok is now in the Ubuntu Charm Store!

http://jujucharms.com/charms/precise/opengrok
  • Now supports multiple projects using a simple JSON format
  • Supports both git and bzr
$ juju bootstrap
$ juju deploy opengrok
$ juju expose opengrok

Thursday, November 1, 2012

My first juju charm: OpenGrok

From the project page:

" OpenGrok is a fast and usable source code search and cross reference engine. It helps you search, cross-reference and navigate your source tree. It can understand various program file formats and version control histories like Mercurial, Git, SCCS, RCS, CVS, Subversion, Teamware, ClearCase, Perforce, Monotone and Bazaar. In other words it lets you grok (profoundly understand) source code and is developed in the open, hence the name OpenGrok. It is written in Java."

To get started:
$ juju deploy cs:~peter-petrakis/precise/opengrok
$ juju expose opengrok
and the icing, you can add and index new projects by simply:
juju set opengrok og-content=lp:juju
Currently it only will do this with lp urls but later I intend to expand to general bzr urls and of course git. Automatic source code updating and indexing is also in the works. It's currently in the charm store submission stage but is ready for trial use. Remember, you can use LXC containers with juju so it's trivial to deploy complex services locally without a cloud.