Wednesday, April 25, 2007

An SMF package for Maven Continuum

The Continuum continuous build system is excellent for Maven projects (and ant, etc), but it doesn't ship with a good way to start/stop it. It only comes with a start script, and a wrapper for sparc solaris that'll start/stop, which naturally won't work.

So, why not an SMF package?

Download:
GTcontinuum-smf.pkg.gz

Manual Installation:

Decompress:
# gunzip GTcontinuum-smf.pkg.gz
Add the Package:
# pkgadd -d GTcontinuum-smf.pkg

You will be prompted for the install location of continuum, the user and group to run as, and where the Java JDK is located.

Verify SMF sees it:
# svcs continuum
Startup Continuum:
# svcadm enable continuum
Check logs:
# tail -f /var/svc/log/network-continuum\:default.log

Automated Install

Create a response file like this gtcontinuum.cf:

CONTINUUM_HOME=/usr/local/continuum
CONTINUUM_USER=mvnbuild
CONTINUUM_GROUP=other
JAVA_HOME=/usr/java

Run pkgadd using response file:
# echo y | pkgadd -r gtcontinuum.cf -d GTcontinuum-smf.pkg GTcontinuum-smf

I'll post a "how to setup continuum" as well soon, since you'll probably want to change the port that it starts up on.

Cheers

Brian

No comments: