Debian

Upgrade to sid:

#deb file:///cdrom/ sarge main

deb http://linux.csua.berkeley.edu/debian/ sid main
deb-src http://linux.csua.berkeley.edu/debian/ sid main
#deb http://linux.csua.berkeley.edu/debian/ testing main
#deb-src http://linux.csua.berkeley.edu/debian/ testing main

deb http://security.debian.org/ testing/updates main

Install the following via apt-get install:

Create gump user and group and stuff

useradd -d /home/gump -s /bin/bash gump
addgroup gump
adduser gump gump
adduser gump staff
mkdir /home/gump
chown -Rf gump:gump /home/gump
mkdir /x1/gump
ln -s /x1/gump /srv/gump
chown gump:gump /x1/gump
echo 'general@gump.apache.org' > ~gump/.forward
echo 'pmc@gump.apache.org' > ~root/.forward

Set up mysql

Other prereqs

We manage most of these in /opt:

mkdir /x1/opt
mkdir /x1/opt/__versions__
rm -r /opt
ln -s /x1/opt /opt

Optional prereqs

TODO: figure out which packages of the below on brutus is needed

lrwxrwxrwx   1 root root    35 Oct  6  2004 ant -> /opt/__versions__/apache-ant-1.6.2/
lrwxrwxrwx   1 root root    31 Jan  7 11:57 cocoon -> /opt/__versions__/cocoon-trunk/
lrwxrwxrwx   1 root root    32 Jan  7 11:57 forrest -> /opt/__versions__/forrest-trunk/
lrwxrwxrwx   1 root root    29 Jan 24 23:47 jdk1.3 -> /opt/__versions__/jdk1.3.1_14
lrwxrwxrwx   1 root root    27 Oct  6  2004 jdk1.5 -> /opt/__versions__/jdk1.5.0/
lrwxrwxrwx   1 root root    31 Oct  6  2004 jetty -> /opt/__versions__/jetty-4.2.21/
lrwxrwxrwx   1 root root    23 Oct 12  2004 kaffe -> /opt/__versions__/kaffe
lrwxrwxrwx   1 root root    29 Oct  6  2004 loader -> /opt/__versions__/loader-1.0/
lrwxrwxrwx   1 root root    49 Oct  6  2004 mysql -> /opt/__versions__/mysql-connector-java-3.0.15-ga/
lrwxrwxrwx   1 root root    31 Oct  6  2004 rdflib -> /opt/__versions__/rdflib-2.0.3/
lrwxrwxrwx   1 root root    30 Oct  6  2004 servlet-api -> /opt/__versions__/servlet-2.4/
lrwxrwxrwx   1 root root    32 Oct  9  2004 webware -> /opt/__versions__/Webware-0.8.1/

Gump Setup

Set up /srv/gump/[flavour]/..., the first flavour being public:

#NOT "OFFICIAL" Public - The official Gump run, the one that sends email (uses JDK 1.4 and the 'live' branch)
#0 0 * * *       cd /srv/gump/public/gump/cron; /bin/bash gump.sh all --official

# Public - these are subruns of public that don't send email but update the web site
#0 18 * * *    cd /srv/gump/public/gump/cron; /bin/bash gump.sh all
0 0,6,12,18 * * *    cd /srv/gump/public/gump/cron; /bin/bash gump.sh all

#DISABLED JDK 1.5 - This Gump runs on JDK 1.5
#0 6 * * *       cd /srv/gump/jdk15/gump/cron; /bin/bash gump.sh all

#DISABLED Test - This Gump runs on JDK 1.4 but uses the latest-and-greatest gump code out of 'trunk'
#0 12 * * *      cd /srv/gump/test/gump/cron; /bin/bash gump.sh all

#DISABLED Gump3 - This is the new Gump...
#0 12 * * *      cd /srv/gump/gump3/Gump3/; /bin/bash gump run --databasename=gump3

#DISABLED Kaffe - This Gump runs on top of Kaffe and uses the 'live' branch
#0 3,9,15,21 * * *      cd /srv/gump/kaffe/gump/cron; /bin/bash gump.sh all; /usr/bin/killall -9w kaffe-bin; rm -f /home/gump/workspaces/kaffe/workspace/ant/src/main/org/apache/tools/ThisIsALink

# Clean up older artifacts
0 0 * * * /usr/bin/find /srv/gump/*/jars -type f -ctime +6 | /usr/bin/xargs -r /bin/rm

#TODO Update the local environments and workspace information
#55 * * * * /home/gump/update-envs.sh

#TODO Checkout (from CVS) and update blog
#1,16,31,46 * * * * /home/gump/update-blog.sh

#TODO Update website from svn
#2,17,32,47 * * * * /home/gump/update-site.sh

#Clean up after POI...
0 0 * * * /bin/rm -f /tmp/*.xls

<VirtualHost *>

</VirtualHost>}}}

gump3 setup

useradd -d /home/gump3 -s /bin/bash gump3
addgroup gump3
adduser gump3 gump3
adduser gump3 staff
mkdir /home/gump3
chown -Rf gump3:gump3 /home/gump3
passwd gump3
$EDITOR ~gump3/.passwd # save password
chmod 600 ~gump3/.passwd
chown gump3:gump3 ~gump3/.passwd
su - gump3 # do the below as "gump3" user in /home/gump3...
svn co https://svn.apache.org/repos/asf/gump/branches/Gump3
echo 'general@gump.apache.org' > ~gump3/.forward

### Section for authentication and authorization customizations.
[auth]
### Set store-passwords to 'no' to avoid storing passwords in the
### auth/ area of your config directory.  It defaults to 'yes'.
### Note that this option only prevents saving of *new* passwords;
### it doesn't invalidate existing passwords.  (To do that, remove
### the cache files by hand as described in the Subversion book.)
store-passwords = no
### Set store-auth-creds to 'no' to avoid storing any subversion
### credentials in the auth/ area of your config directory.
### It defaults to 'yes'.  Note that this option only prevents
### saving of *new* credentials;  it doesn't invalidate existing
### caches.  (To do that, remove the cache files by hand.)
store-auth-creds = no

exit # fromp gump3, back into su mode
apt-get install python2.4 python2.4-mysqldb python-pmock
# no python2.4-pmock...
cp /usr/lib/python2.3/site-packages/pmock.py /usr/lib/python2.4/site-packages
python2.4 -OO -c "from pmock import *; import pmock; import sys; sys.exit()"

su - gump3
GUMP_TEST_NO_MYSQL=yes gump test

Done!

Get to business...

export PYTHONPATH=pwd python gump/check.py -w ../brutus.xml all --debug }}}

cd /srv/gump/public/gump/cron; /bin/bash gump.sh all

Gump Farm Layout Details

Current structure is:

File System:

    /srv/gump -- root
    /srv/gump/packages -- shared packages

    /srv/gump/{flavour} -- e.g. public or jdk15 or test or ...
    /srv/gump/{flavour}/gump -- Installation of Gump
    /srv/gump/{flavour}/workspace -- working area 
    /srv/gump/{flavour}/results -- WWW site
    /srv/gump/{flavour}/jars -- Artifact Repository

    /opt -- prereqs not installed using apt
    /var/www/vmgump.apache.org -- website

HTTP:

    http://vmgump.apache.org/gump/{flavour} ->
        /srv/gump/{flavour}/results -- WWW site

    http://vmgump.apache.org/gump/{flavour}-jars/ ->
        /srv/gump/{flavour}/jars -- Artifact Repository

Currently deployed flavours:

    public -- against SVN /live, does e-mail notification, automatic runs.

    test -- against SVN /trunk, manual runs. Often cleaned out to save disk space.

VmgumpConfig (last edited 2009-09-20 23:49:24 by localhost)