Adrian Moya's picture

<UPDATE 08-03-2011> Upgraded Icescrum to 3R#8, and set back jvm settings to 512M hoping grails 1.3.7 addresses the memory leak issues. </UPDATE>

<UPDATE 18-02-2011> I've updated the patch to the latest version of Icescrum and fixed some bugs. Also, the memory requirements for this one have rised a lot, as in my tests this app is memory hungry, maybe because it's using openjdk instead of oracle's jdk, or maybe due to a bug in grails 1.3.6 which causes a memory leak. 

</Update>

Agile is coming to TurnkeyLinux! This TKLPatch will convert a tomcat-11.0-lucid appliance into an IceScrum server! You'll be ready to go to manage your teams using Scrum, an iterative, incremental methodology for project management. IceScrum is an J2EE application for using Scrum while keeping the spirit of a collaborative workspace. It also offers virtual boards with post-its for sprint backlog, product backlog and others.

[Update] ISO available for testing here.[/update]

Requirements:

- You'll need at least 2GB RAM on your VM to run this one. 

Features:

- Icescrum R3#7 installation. 

- Inithook script to set admin password and email on first boot. See End to default passwords.

What it does:

1. Update apt-get package information

apt-get update

2. Install curl

apt-get install -y --force-yes curl

3.Set Hostname to icescrum

HOSTNAME=icescrum 
echo "$HOSTNAME" > /etc/hostname 
sed -i "s|127.0.1.1 \(.*\)|127.0.1.1 $HOSTNAME|" /etc/hosts 

2. Remove tomcat6 default app

rm -Rf /var/lib/tomcat6/webapps/ROOT/
rm -f /usr/lib/inithooks/firstboot.d/40tomcat
rm -f /usr/lib/inithooks/bin/tomcat.py

3. Download icescrum war

mkdir -p /opt/icescrum && cd /opt/icescrum
wget http://www.icescrum.org/downloads/icescrum_R3_7_war_tomcat6.zip
unzip icescrum_R3_7_war_tomcat6.zip
rm icescrum_R3_7_war_tomcat6.zip  

4. Create database and database user

service mysql start
mysqladmin -u root create icescrum
mysql -u root <<-END_PRIVS
GRANT ALL PRIVILEGES ON icescrum.* TO icescrum@localhost IDENTIFIED BY "icescrum";
flush privileges;
END_PRIVS
5. Set permission for tomcat user
chown tomcat6:tomcat6 /usr/share/tomcat6
6. Remove tomcat6 default / app
rm -Rf /var/lib/tomcat6/webapps/ROOT/
7. Deploy icescrum on tomcat's root
ln -s /opt/icescrum/icescrum.war /var/lib/tomcat6/webapps/ROOT.war 

8.  Reload application (to make sure the database is created)

service tomcat6 start
curl -m 200 'http://localhost/' 
service tomcat6 stop
9. Stop mysql service
service mysql stop

Enjoy!

Forum: 
Adrian Moya's picture

A VIM's swap file got into the patch as I hadn't closed the editor. It's going to work anyway, it's just an unnecesary file. 

"- Inithook script to set admin password and email on first boot. See End to default passwords."

Nice job. I enjoyed learning from this patch. I've been wondering what would result from Alon's post, and here it is. This raises the bar considerably for patchers.

Awesome.

Add new comment