DevEnv
ISO Tracker
The ISO Tracker is the tool that the Ubuntu QA team uses to track the results of the testing during milestone testing. To know more about ISO testing, please read the ISO procedures.
Technically, it is a Drupal instance with some in-house developed modules, hosted at the ubuntu-qa-website project in Launchpad.
Installing a development environment
Getting the dependencies
These instructions are for drupal5 and PHP5.2.
Note
If your using any release >= Lucid, you will need to downgrade to drupal5 and php5.2 using the following PPAs:
To force apt to install php5.2 instead of php5.3 you need to to create a file called "php" in /etc/apt/preferences.d/ with this contents:
Package: libapache2-mod-php5 Pin: version 5.2.10* Pin-Priority: 991 Package: libapache2-mod-php5filter Pin: version 5.2.10* Pin-Priority: 991 Package: php-pear Pin: version 5.2.10* Pin-Priority: 991 Package: php5 Pin: version 5.2.10* Pin-Priority: 991 Package: php5-cgi Pin: version 5.2.10* Pin-Priority: 991 Package: php5-cli Pin: version 5.2.10* Pin-Priority: 991 Package: php5-common Pin: version 5.2.10* Pin-Priority: 991 Package: php5-curl Pin: version 5.2.10* Pin-Priority: 991 Package: php5-dbg Pin: version 5.2.10* Pin-Priority: 991 Package: php5-dev Pin: version 5.2.10* Pin-Priority: 991 Package: php5-gd Pin: version 5.2.10* Pin-Priority: 991 Package: php5-gmp Pin: version 5.2.10* Pin-Priority: 991 Package: php5-ldap Pin: version 5.2.10* Pin-Priority: 991 Package: php5-mhash Pin: version 5.2.10* Pin-Priority: 991 Package: php5-mysql Pin: version 5.2.10* Pin-Priority: 991 Package: php5-odbc Pin: version 5.2.10* Pin-Priority: 991 Package: php5-pgsql Pin: version 5.2.10* Pin-Priority: 991 Package: php5-pspell Pin: version 5.2.10* Pin-Priority: 991 Package: php5-recode Pin: version 5.2.10* Pin-Priority: 991 Package: php5-snmp Pin: version 5.2.10* Pin-Priority: 991 Package: php5-sqlite Pin: version 5.2.10* Pin-Priority: 991 Package: php5-sybase Pin: version 5.2.10* Pin-Priority: 991 Package: php5-tidy Pin: version 5.2.10* Package: php5-xmlrpc Pin: version 5.2.10* Pin-Priority: 991 Package: php5-xsl Pin: version 5.2.10* Pin-Priority: 991
First, install PHP5 and postgresql (and all the dependencies):
$ sudo apt-get install php5-pgsql postgresql
Now install drupal5 with the default options:
$ sudo apt-get install drupal5
After installing drupal, we are going to drop the default database:
$ sudo -u postgres -i postgres$ dropdb drupal5 postgres$ dropuser drupal5 postgres$ exit
Now, we are going to create a user called "qatracker" and we are going to reconfigure drupal to use that user:
$ sudo adduser qatracker $ sudo dpkg-reconfigure drupal5
In the drupal5 reconfiguration, when asked by the username, type "qatracker" (password "qatracker") and database name also "qatracker"
Get the modules and theme from ubuntu-qa-website and copy them to your drupal5 installation:
$ bzr branch lp:ubuntu-qa-website $ sudo cp -R ubuntu-qa-website/code/modules/* /usr/share/drupal5/modules $ sudo cp -R ubuntu-qa-website/artwork/* /usr/share/drupal5/themes $ sudo cp ubuntu-qa-website/code/modules/htaccess /usr/share/drupal5/.htaccess
Now we need to populate the database.
$ cd /tmp $ wget http://people.canonical.com/~ara/qatracker_db/dump_qatracker_safe.tar.gz $ tar xzvf dump_qatracker_safe.tar.gz $ sudo -u qatracker -i qatracker$ psql qatracker < /tmp/dump_qatracker_safe.tar.gz qatracker$ exit
This command will populate the database with the needed tables and an admin user (admin/admin).
We will activate the rewrite Apache module, to be able to convert correctly the different links in the site:
$ sudo a2enmod rewrite
Now, we will make the drupal5 instance point to the Apache root folder:
- Delete the symlink at /etc/apache2/conf.d/drupal.conf
- Modify /etc/apache2/site-enabled/000-default with.
<VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot /usr/share/drupal5 <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /usr/share/drupal5/> AllowOverride All order allow,deny allow from all </Directory> </VirtualHost>
- Restart Apache:
$ sudo /etc/init.d/apache2 restart