Archive for March, 2010

Hudson Redux

Wednesday, March 10th, 2010

I keep losing my Hudson instance so I am making this my memory for what to do each time

  • Proxy
    • export http_proxy=”<address of proxy from browser>”
  • MySQL
    • Much of this for MySQL is stolen from Yet Another Blog. Thank you.
    • yum install mysql-server
    • /usr/bin/mysqladmin -u root password 'new-password'
    • /usr/bin/mysqladmin -u root -h <hostname> password 'new-password'
    • service mysqld start
    • mysql --user=root mysql
    • CREATE DATABASE <dbname>;
    • CREATE USER '<username>'@'%' IDENTIFIED BY 'some_pass';
    • GRANT ALL PRIVILEGES ON <dbname>.* to '<username>'@'%';
    • FLUSH PRIVILEGES;
    • SOURCE createdb.sql;
    • exit;
  • Jetty
    • wget "http://dist.codehaus.org/jetty/jetty-6.1.22/jetty-6.1.22.zip"
    • unzip and put it on the attached volume
    • cd /usr/local
    • ln -s /mnt/installs/jetty-6.1.22 jetty
    • don't forget to create tools and static dirs and
    • don't forget to chmod all dirs allow hudson access
  • Fitnesse
    • wget "http://www.fitnesse.org/fitnesse.jar?responder=releaseDownload&release=20100103"
    • rename the crap you get and put it where you want
    • cd /usr/local
    • ln -s /mnt/installs/fitnesse_20100103 fitnesse
    • don't forget to chmod all dirs allow hudson access
    • java -jar fitnesse
  • Gradle
    • wget "http://dist.codehaus.org/gradle/gradle-0.8-all.zip"
    • unzip and put it on the attached volume
    • cd /usr/local
    • ln -s /mnt/installs/gradle-0.8 gradle
    • export GRADLE_HOME=/usr/local/gradle
    • Then go into Hudson and add the Gradle plug-in and define a gradle build task