Brutus no longer runs gump!
Debian
Install the following via apt-get install:
required: apache2 cvs libxp-dev libxt6 libxtst6 python subversion xvfb mysql-server python2.3-mysqldb unzip libxml2 libxml2-utils xsltproc libtool curl
convenience: lynx sudo vim bzip2 mutt nano mysql-client libapache2-mod-php4 phpmyadmin
Create gump user
useradd -d /home/gump -s /bin/bash -p xxxxxxxx gump (preferably with something more imaginative than xxxxxxxx for the password)
adduser gump staff
mkdir /usr/local/gump
chown gump:staff /usr/local/gump
Other prereqs
- Java SDK:
Download j2sdk-1_4_2_xx for Linux to /tmp
cd /opt/__versions__
execute /tmp/j2sdk-1_4_2_xx-linux-i586.bin
create a symbolic link /opt/jdk1.4 pointing to the installed version
- Apache Maven:
Download Maven to /tmp (select .tar.gz format)
cd /opt/__versions__
tar -xzf /tmp/maven-xxx.tar.gz
create a symbolic link /opt/maven pointing to the installed version
Note: MAVEN_HOME will be exported and added to the PATH in step 5
Optional Extra
Gump Setup
Set up /usr/local/gump/[flavour]/..., the first flavour being public:
set CVSROOT per Gump Getting Started
mkdir -p /usr/local/gump/public
cd /usr/local/gump/public
svn checkout https://svn.apache.org/repos/asf/gump/trunk/ gump
cd gump
cvs login
cvs checkout -d metadata gump
create/edit ./metadata/brutus.xml (to match `hostname`.xml and supplying the database password)
<workspace name="brutus-public" basedir="/usr/local/gump/public/workspace" jardir="/usr/local/gump/public/jars" pkgdir="/usr/local/gump/packages" logdir="/usr/local/gump/public/results" logurl="http://brutus.apache.org/gump/public" mailserver="mail.apache.org" email="brutus@gump.apache.org" version="0.4"> <property name="build.sysclasspath" value="only"/> <sysproperty name="java.awt.headless" value="true"/> <profile href="profile/gump.xml"/> <nag/> <database database="gump_public" passwd="password" /> <!-- additional background threads, over main thread --> <threads updaters="5" builders="0" /> </workspace>install packages in /usr/local/gump/packages [shared, not under 'flavour'], after first diligently clicking on license agreements as required.
create/edit /usr/local/gump/public/gump/local-env-py-brutus.sh:
export JAVA_HOME=/usr/local/j2sdk1.4.2_04 export CLASSPATH=$JAVA_HOME/lib/tools.jar export PATH=$PATH:$JAVA_HOME/bin export MAVEN_HOME=/usr/local/gump/maven-1.0-rc{N} export PATH=$PATH:$MAVEN_HOME/bin- create/edit /home/gump/.bash_profile: {{{set -o vi
umask 002 . /usr/local/gump/public/gump/local-env-py-brutus.sh }}}
- add this crontab entry: {{{0 0 * * * cd /usr/local/gump/public/gump; /bin/bash gumpy.sh
}}}
copy the file /etc/apache2/sites-available/default into /etc/apache2/sites-available/[virtual.host]
configure /etc/apache2/sites-available/[virtual.host] for your needs
add the following to /etc/apache2/sites-avaliable/[virtual.host] immediately after all the other Aliases: {{{Alias /gump/public /usr/local/gump/public/results
<Directory /usr/local/gump/public/results>
Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all
</Directory>}}}
run a2ensite and when prompted, enter [virtual.host] (the same name that you used above)
/etc/init.d/apache2 restart
- logoff, logon as gump, and run some tests: {{{cd /usr/local/gump/public/gump/python
export PYTHONPATH=pwd python gump/check.py -w ../brutus.xml all --debug python gump/integrate.py -w ../brutus.xml all --debug }}}
Gump Farm Layout Details
Current structure is:
File System:
/usr/local/gump -- root
/usr/local/gump/packages -- shared packages
/usr/local/gump/{flavour} -- e.g. public or jdk15 or test or ...
/usr/local/gump/{flavour}/gump -- Installation of Gump
/usr/local/gump/{flavour}/workspace -- working area
/usr/local/gump/{flavour}/results -- WWW site
/usr/local/gump/{flavour}/jars -- Artifact RepositoryHTTP:
http://brutus.apache.org/gump/{flavour} ->
/usr/local/gump/{flavour}/results -- WWW site
http://brutus.apache.org/gump/{flavour}-jars/ ->
/usr/local/gump/{flavour}/jars -- Artifact Repository