gump-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Gump Wiki] Update of "NewVmgumpConfig" by LeoSimons
Date Sun, 08 Jul 2007 13:11:48 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Gump Wiki" for change notification.

The following page has been changed by LeoSimons:
http://wiki.apache.org/gump/NewVmgumpConfig

The comment on the change is:
got to the point where I'm doing a test run...

------------------------------------------------------------------------------
  chown -R gump:gump /srv/gump/packages
  }}}
  
+ == Apache2 ==
+ 
+ {{{
+ cat > /etc/apache2/sites-available/vmgump.apache.org << END
+ NameVirtualHost * 
+ <VirtualHost *>
+         ServerAdmin private@gump.apache.org
+         ServerName vmgump.apache.org
+ 
+         DocumentRoot /var/www/vmgump.apache.org
+ 
+         <Directory />
+                 Options FollowSymLinks
+                 AllowOverride None
+         </Directory>
+         <Directory /var/www/vmgump.apache.org>
+                 Options Indexes FollowSymLinks MultiViews
+                 AllowOverride None
+                 Order allow,deny
+                 allow from all
+         </Directory>
+ 
+         ErrorLog /var/log/apache2/vmgump.apache.org.error.log
+         LogLevel warn
+ 
+         CustomLog /var/log/apache2/vmgump.apache.org.access.log combined
+         ServerSignature On
+ 
+         Alias /gump/public/ /srv/gump/public/results/
+         Alias /gump/public-jars/ /srv/gump/public/jars/
+ 
+         Alias /gump/test/ /srv/gump/test/results/
+         Alias /gump/test-jars/ /srv/gump/test/jars/
+ 
+         <Directory /srv/gump/>
+             HeaderName /disclaimer.html
+             Options Indexes MultiViews FollowSymLinks
+             AllowOverride None
+             Order allow,deny
+             Allow from all
+         </Directory>
+ 
+         <Location /gump/public/workspace_defn.html>
+             Order deny,allow
+             Deny from all
+         </Location>
+ </VirtualHost>
+ END
+ 
+ mkdir /var/www/vmgump.apache.org && chown gump:gump /var/www/vmgump.apache.org
+ a2dissite default
+ a2ensite vmgump.apache.org
+ /etc/init.d/apache2 reload
+ 
+ mkdir /srv/gump/public/results
+ rsync -av vmgump.apache.org:/usr/local/gump/public/results/ /srv/gump/public/results/
+ chown -R gump:gump /srv/gump/public/results/
+ rsync -av vmgump.apache.org:/var/www/vmgump.apache.org/ /var/www/vmgump.apache.org/
+ chown -R gump:gump /var/www/vmgump.apache.org/
+ }}}
+ 
+ == Test run ==
+ 
+ Before starting the first run, but with backups/saved results from old machine and such:
+ {{{
+ root@vmgump:~# df -h
+ Filesystem            Size  Used Avail Use% Mounted on
+ /dev/sda1              95G  7.8G   82G   9% /
+ varrun                760M   52K  760M   1% /var/run
+ varlock               760M     0  760M   0% /var/lock
+ udev                  760M   64K  760M   1% /dev
+ devshm                760M     0  760M   0% /dev/shm
+ }}}
+ 
+ {{{
+ sudo -u gump -i
+ cd /srv/gump/public/gump/cron
+ echo /bin/bash gump.sh all | at now
+ }}}
+ 
+ == Cron setup ==
+ 
+ {{{
+ cat > ~gump/crontab <<END
+ # "OFFICIAL" Public - The official Gump run, the one that sends email (uses JDK 1.6 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 8,16 * * *    cd /srv/gump/public/gump/cron; /bin/bash gump.sh all
+ 
+ # Clean up older artifacts
+ 5 21 * * * /usr/bin/find /srv/gump/*/jars -type f -ctime +2 | /usr/bin/xargs -r /bin/rm
+ 10 21 * * * /usr/bin/find /home/gump/.ivy -type f -ctime +7 | /usr/bin/xargs -r /bin/rm
+ 15 21 * * * /usr/bin/find /home/gump/.m2 -type f -ctime +7 | /usr/bin/xargs -r /bin/rm
+ 20 21 * * * /usr/bin/find /home/gump/.maven -type f -ctime +7 | /usr/bin/xargs -r /bin/rm
+ 
+ #Clean up after POI...
+ 0 0 * * * /bin/rm -f /tmp/*.xls
+ END
+ }}}
+ 
+ ==== TODO ====
+ If the test run completes properly:
+ 
+  * update DNS
+  * then install cron:
+ {{{
+ sudo -u gump -i
+ crontab ~gump/crontab
+ }}}
+ 

Mime
View raw message