GumpZonesConfig

Gump runs in a zone on a solaris machine called helios, with an address of

See [WWW] http://www.apache.org/dev/solaris-zones.html for basic install information about helios. Besides Solaris and the companion CD we have SVN and Python in /opt. Our own locally built packages go into /export/opt, with sources for them in /export/src.

Create gump user and group and stuff

         sudo groupadd gump
         sudo useradd -s /usr/bin/bash -d /export/home/gump -g gump gump
         sudo mkdir /export/home/gump
         sudo chown gump:gump /export/home/gump
         sudo useradd -s /usr/bin/bash -d /export/home/gump3 -g gump gump3
         sudo mkdir /export/home/gump3
         sudo chown gump3:gump /export/home/gump3
         sudo nano /etc/auto_home 
         sudo echo 'general@gump.apache.org' > ~gump/.forward
         sudo echo 'general@gump.apache.org' > ~gump3/.forward
         sudo echo 'pmc@gump.apache.org' > ~root/.forward

Set up mysql

See [WWW] http://dev.mysql.com/doc/mysql/en/installing-binary.html. Mysql is in /usr/sfw. See /etc/sfw/mysql/README.solaris.mysql.

groupadd mysql
useradd -g mysql mysql
/usr/sfw/bin/mysql_install_db  --user=mysql
chgrp -R mysql /var/mysql
chmod -R 770
installf SUNWmysqlr /var/mysql d 770 root mysql
cp /usr/sfw/share/mysql/my-medium.cnf /var/mysql/my.cnf
/usr/sfw/sbin/mysqld_safe --user=mysql &
ln /etc/sfw/mysql/mysql.server /etc/rc3.d/S99mysql
ln /etc/sfw/mysql/mysql.server /etc/rc0.d/K00mysql
ln /etc/sfw/mysql/mysql.server /etc/rc1.d/K00mysql
ln /etc/sfw/mysql/mysql.server /etc/rc2.d/K00mysql
ln /etc/sfw/mysql/mysql.server /etc/rcS.d/K00mysql

Convenience prereqs

We manage most of these in /export/opt (add /export/opt/bin to path) with tarballs in /export/src:

mkdir /export/src
mkdir /export/opt

Other prereqs

We manage most of these in /export/opt with tarballs in /export/src:

mkdir /export/src
mkdir /export/opt
mkdir /export/opt/__versions__

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 /export/home/gump/[flavour]/..., the first flavour being test:

#DISABLED JDK 1.5 - This Gump runs on JDK 1.5
#0 6 * * *       cd /export/home/gump/test/gump/cron; /usr/bin/env bash gump.sh all

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

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

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

Basic testing

cd /export/home/gump/test/gump
python bin/check.py -w metadata/gump.zones.apache.org.xml all --debug

last edited 2005-07-13 10:32:43 by StefanBodewig