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 12:40:50 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

------------------------------------------------------------------------------
  == Packages ==
  
  {{{
+ $ apt-get install subversion cvs sun-java5-jdk sun-java6-jdk
+ $ which java
+ /usr/bin/java
+ $ java -version
+ java version "1.6.0"
+ Java(TM) SE Runtime Environment (build 1.6.0-b105)
+ Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing)
+ }}}
+ 
+ {{{
- apt-get install apache2 cvs libxp-dev libxt6 libxtst6 python2.4 python2.5 subversion xvfb
mysql-server python2.4-dev python2.4-mysqldb python2.5-dev python2.5-mysqldb unzip zip libxml2
libxml2-utils xsltproc libtool curl ntp ntpdate lynx sudo vim bzip2 mutt nano mysql-client
rsync autoconf automake
+ $ apt-get install apache2 cvs libxp-dev libxt6 libxtst6 python2.4 python2.5 subversion xvfb
mysql-server python2.4-dev python2.4-mysqldb python2.5-dev python2.5-mysqldb unzip zip libxml2
libxml2-utils xsltproc libtool curl ntp ntpdate lynx sudo vim bzip2 mutt nano mysql-client
rsync autoconf automake ccache
  }}}
  see [NewVmgumpConfigPackageInstallLog]
  
@@ -34, +44 @@

  ssh $newvmgump chmod -R go-rwx /home/old-homes
  }}}
  
+ == MySQL ==
+ 
+ set up database:
+ {{{
+ mysql
+ mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('newpwd');
+ mysql> SET PASSWORD FOR 'root'@'vmgump' = PASSWORD('newpwd');
+ mysql> CREATE DATABASE gump_public;
+ mysql> GRANT ALL PRIVILEGES ON gump_public.* TO 'gump'@'localhost' IDENTIFIED BY 'othernewpwd';
+ mysql> FLUSH PRIVILEGES;
+ mysql> EXIT;
+ nano ~root/.mysqlpass
+ }}}
+ 
+ dump databases on old vmgump and copy them over:
+ {{{
+ mkdir /root/mysqldump
+ cd /root/mysqldump/
+ umask 277
+ export currdate=`date +%Y%m%d`
+ mysqldump -u root -p gump --add-drop-table --create-options > $currdate-gump.mysqldump
+ mysqldump -u root -p gump --add-drop-table --create-options > $currdate-gump.mysqldump
+ mysqldump -u root -p gump3 --add-drop-table --create-options > $currdate-gump3.mysqldump
+ mysqldump -u root -p gump_public --add-drop-table --create-options > $currdate-gump_public.mysqldump
+ rsync -av /root/mysqldump/ $newvmgump:/srv/backup/mysqldump/
+ }}}
+ 
+ load gump_public database on new machine:
+ {{{
+ export currdate=`date +%Y%m%d`
+ cat /srv/backup/mysqldump/$currdate-gump_public.mysqldump | mysql -u root --password=`cat
~/.mysqlpass | grep 'user root:' | sed 's/user root: //'` gump_public
+ }}}
+ 
+ Note: hmm. These tables are all empty. I guess we don't use these for gump2 anymore.
+ 
+ == Non-debian packages ==
+ 
+ See [VmgumpConfig] for how these are set up.
+ {{{
+ rsync -av $oldvmgump:/opt/ /opt/
+ rm -Rf /opt/mono /opt/__versions__/mono-1.2.3.1
+ }}}
+ 
+ re-install mono:
+ {{{
+ cd /tmp
+ wget ftp://www.go-mono.com/archive/1.2.4/linux-installer/5/mono-1.2.4_5-installer.bin
+ scp $trusted:/some/where/mono-1.2.4_5-installer.bin.md5 $newvmgump:/tmp
+ cat mono-1.2.4_5-installer.bin.md5
+ md5sum mono-1.2.4_5-installer.bin > mono-1.2.4_5-installer.bin.downloaded
+ diff -u mono-1.2.4_5-installer.bin.md5.downloaded mono-1.2.4_5-installer.bin.md5
+ # should be no output...
+ chmod +x mono-1.2.4_5-installer.bin
+ ./mono-1.2.4_5-installer.bin --text
+ cd /opt
+ ln -s __versions__/mono-1.2.4 mono
+ }}}
+ 
+ {{{
+ $ root@vmgump:/opt# ls -lah /opt
+ total 12K
+ drwxr-xr-x  3 root root 4.0K 2007-07-08 04:49 .
+ drwxr-xr-x 21 root root 4.0K 2007-07-07 22:54 ..
+ lrwxrwxrwx  1 root root   29 2007-07-08 04:37 jdk1.5 -> /opt/__versions__/jdk1.5.0_11
+ lrwxrwxrwx  1 root root   24 2007-07-08 04:37 maven -> __versions__/maven-1.0.2
+ lrwxrwxrwx  1 root root   24 2007-07-08 04:37 maven2 -> __versions__/maven-2.0.6
+ lrwxrwxrwx  1 root root   23 2007-07-08 04:49 mono -> __versions__/mono-1.2.4
+ lrwxrwxrwx  1 root root   33 2007-07-08 04:37 python-irclib -> __versions__/python-irclib-0.4.5/
+ drwxr-xr-x  7 root root 4.0K 2007-07-08 04:48 __versions__
+ }}}
+ 
+ == Old gump homes ==
+ 
+ {{{
+ mkdir -p /home/old-gump-homes/gump
+ mkdir -p /home/old-gump-homes/gump3
+ rsync -av $oldvmgump:/home/gump3/ /home/old-gump-homes/gump3/
+ rsync -av $oldvmgump:/home/gump/ /home/old-gump-homes/gump/
+ }}}
+ 
+ == Gump user ==
+ 
+ {{{
+ adduser gump
+ touch ~gump/.pass
+ chmod go-rwx ~gump/.pass
+ nano ~gump/.pass
+ echo 'private@gump.apache.org' > /home/gump/.forward
+ chown gump:gump /home/gump/.forward
+ }}}
+ 
+ ==== .cvspass / .subversion ====
+ {{{
+ cp /home/old-gump-homes/gump/.cvspass /home/gump/
+ cp -r /home/old-gump-homes/gump/.subversion /home/gump/
+ chown gump:gump /home/gump/.cvspass /home/gump/.subversion
+ }}}
+ See [PublicCvspassFile]
+ 
+ ==== .m2, .maven, .ivy ====
+ {{{
+ mkdir /home/gump/.m2
+ mkdir /home/gump/.maven
+ mkdir /home/gump/.ivy
+ rsync -av /home/old-gump-homes/.m2/ /home/gump/.m2/
+ rsync -av /home/old-gump-homes/.maven/ /home/gump/.maven/
+ rsync -av /home/old-gump-homes/.ivy/ /home/gump/.ivy/
+ chown -R gump:gump /home/gump/.m2 /home/gump/.maven /home/gump/.ivy
+ }}}
+ 
+ == Gump workspace ==
+ {{{
+ mkdir -p /srv/gump/public
+ chown gump:gump /srv/gump/public
+ sudo -u gump -i
+ cd /srv/gump/public
+ svn checkout https://svn.apache.org/repos/asf/gump/live/ gump
+ cd gump/metadata
+ cat > `hostname -s`.xml <<END
+ <?xml version="1.0"?>
+ <workspace name="vmgump-public"
+         basedir="/srv/gump/public/workspace"
+         jardir="/srv/gump/public/jars"
+         pkgdir="/srv/gump/packages"
+         logdir="/srv/gump/public/results"
+         logurl="http://vmgump.apache.org/gump/public"
+ 
+         administrator="general@gump.apache.org"
+         email="gump@vmgump.apache.org"
+ 
+         version="0.4">
+ 
+ 
+         <property name="build.sysclasspath" value="only"/>
+         <sysproperty name="java.awt.headless" value="true"/>
+ 
+         <profile href="profile/gump.xml"/>
+ 
+         <database database="gump_public" user="gump" passwd="password"/>
+ 
+         <!-- additional background threads, over main thread -->
+         <threads updaters="0" builders="0" />
+ 
+         <!-- Performing Notifications (when doing official builds)-->
+         <nag/>
+ </workspace>
+ END
+ nano `hostname -s`.xml # set mysql password
+ cat > /srv/gump/public/gump/cron/local-env-vmgump.sh <<END
+ export CC="ccache gcc"
+ export CXX="ccache g++"
+ 
+ export JAVA_HOME=/usr/lib/jvm/java-6-sun
+ export CLASSPATH=$JAVA_HOME/lib/tools.jar
+ export PATH=$JAVA_HOME/bin:\$PATH
+ 
+ export MAVEN_HOME=/opt/maven
+ export PATH=$MAVEN_HOME/bin:\$PATH
+ 
+ export M2_HOME=/opt/maven2
+ export PATH=$M2_HOME/bin:\$PATH
+ 
+ export PKG_CONFIG_PATH=\$PKG_CONFIG_PATH:/opt/mono/lib/pkgconfig
+ export PATH=/opt/mono/bin:\$PATH
+ END
+ 
+ cat >> ~gump/.bash_profile <<END
+ umask 002
+ . /srv/gump/public/gump/cron/local-env-vmgump.sh
+ END
+ 
+ cat >> ~gump/.bashrc <<END
+ . ~/.bash_profile
+ END
+ }}}
+ 
+ ==== Installed packages ====
+ 
+ {{{
+ mkdir /srv/gump/packages/
+ rsync -av $oldvmgump:/usr/local/gump/packages/ /srv/gump/packages/
+ find /srv/gump/packages -type d \
+   -name docs \
+   -or -name doc \
+   -or -name apidocs \
+   -or -name javadocs \
+   -or -name htdocs \
+   -exec rm -Rf \{\} \;
+ chown -R gump:gump /srv/gump/packages
+ }}}
+ 

Mime
View raw message