Dawal,
Community Resources for Software Engineering
you are here: Home Tools & Products Polarion Installing Polarion ALM 2010 on Linux

Login

Installing Polarion ALM 2010 on Linux
Written by Boris Baldassari   
Saturday, 10 April 2010 18:32

In this article, we will install the Polarion ALM software on a CentOS 5 system and import the example data. We will follow for this the Polarion ALM installation guide that is available on the Polarion website.

 

Prerequisites

Polarion needs Subversion 1.4 or higher and a web server for DAV access to the svn repositories.

We have already installed subversion and setup Webdav access in another article, check it out here. We assume from here that you could access your subversion repository from a web browser.


Installing Polarion ALM

Copy the install zip file to the server and unzip it. A directory named Polarion has been created. 

We have some steps to perform before executing the automatic install script.

  1. First backup your apache configuration (e.g. save your whole /etc/httpd directory).
  2. Copy your license file to the polarion/license directory.
  3. Install a JDK.
  4. Set the JDK_HOME environment variable to the path of the Sun JDK.

[root@polarionlive ~]# unzip PolarionALM_2010_linux.zip
[root@polarionlive ~]# cd Polarion
[root@polarionlive Polarion]# tar cjf ~/httpd_pre_polarion.tar.bz2 /etc/httpd/
 tar: Removing leading `/' from member names
[root@polarionlive Polarion]# cp ~/polarion.lic polarion/license/
[root@polarionlive ~]# java -version
java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
Java HotSpot(TM) Client VM (build 14.3-b01, mixed mode, sharing)
[root@polarionlive Polarion]# export JDK_HOME=/opt/jdk1.6.0_17/

Then execute the automatic install script. Automatic and manual installs are described in the text documents stored in the Polarion directory.

[root@polarionlive Polarion]# . install.sh

Welcome to the Polarion ALM 2010 Clean Installation Script!

IMPORTANT!! Please back up your existing Apache Web server configuration
 prior installation.

You can stop this script at any time and re-run  it later.

Press "Enter" to continue with a clean installation... 
Or press "Ctrl+C" to stop the installation.

Type enter, agree (or not) to the license. The script then checks your system.

*******************************************************************
* 2/10) SYSTEM CHECK
*******************************************************************
Hm! I found CentOS release 5.4 (Final)
Detected os:redhat
Will make a new installation!

*******************************************************************
* 3/10) REPOSITORY SETTINGS
*******************************************************************
You can use an existing SVN repository or create a new local repository with default settings.
In that case you can change the SVN repository later. 

Do you want use a new local SVN repository with default settings?:
Type answer <yes|no>, default [yes]

*********************************************************************************
* 4/10) PREREQUISITES INSTALLATION
*********************************************************************************

Polarion needs the following additional sofware :
 Apache 2.2.x with mod_proxy_ajp, mod_deflate, mod_headers 
 and mod_dav_svn, mod_authz_svn for Subversion server.
 Subversion utils.

Would you like to check and install the prerequisities?
Type answer <yes|no>, default [yes]
[SNIP]
Found httpd
Found subversion
Found mod_dav_svn
Disable old 'subversion.conf'
Found out JDK_HOME=/opt/jdk1.6.0_17/
Finished installation of prerequisities.

The script will try to automatically install missing dependencies with yum. Better prepare your system, as automatic installs are likely to fail.

*********************************************************************************
* 5/10) FILES INSTALLATION
*********************************************************************************

Installing core...
Preparing base...
Check disk space for /opt/polarion ...
Installing base...
[SNIP]
Creating '/srv/polarion' links to '/opt/polarion/data' ...
Creating init script for Polarion
Creating '/etc/init.d/polarion' links to '/opt/polarion/bin/polarion.init' ...

*********************************************************************************
* 6/10) APACHE SETTINGS
*********************************************************************************
Would you like to install the default Apache and Subversion configuration?
Please make a back up of /etc before continuing!
Do you want to copy predefined conf. files into /etc/httpd?
Type answer <yes|no>, default [yes]
Got yes!
Copying default config from libinstall/predefined/redhat ...
Restarting Apache server - please wait...
Arrêt de httpd :                                           [  OK  ]
Démarrage de httpd :                               [  OK  ]
Found out /usr/sbin/httpd

Check the files in the /etc/httpd/conf.d/ directory and your global configuration. Thanks to the conf.d mechanism changes should be limited, but better check it.

*********************************************************************************
* 7/10) CONFIGURATION CHECK
*********************************************************************************

Please check settings in files
 "/opt/polarion/etc/polarion.properties" 
and  
 "/opt/polarion/etc/config.sh"
before continuing.
When you are done press Enter to continue. 
 Or press "Ctrl+C" to halt the script. You can re-run it later.

Have a look into the files. The first one (polarion.properties) defines global characteristics: polarion path, admin users, smtp server, etc.

File config.sh defines environment variables (check the JDK_HOME variable).

*********************************************************************************
* 8/10) REPOSITORY INITIALIZATION
*********************************************************************************

Do you want initialize the repository now?
Type answer <yes|no>, default [yes] yes
Got yes!

Optional Polaron sample data provides examples of several kinds of projects.

Would you like install Polarion sample data?
Type answer <yes|no>, default [yes] yes
Got yes!
Importing Polarion sample data into SVN repository. Please wait...
Reading repo URL from /opt/polarion/etc/polarion.properties
Creating new Subversion repository in '/opt/polarion/data/svn/repo/'...
Work on repo with parameters: target=demo force=yes
Repository URL: http://polarionlive/repo
Expanding: /opt/polarion/polarion/install/demo-data.zip into 
/tmp/polarion-repo-data-5689658901119053452.tmp
Demo data: preprocessing repository data...
Importing data to repository: http://polarionlive/repo
Deleting directory /tmp/polarion-repo-data-5689658901119053452.tmp
Creating RR and BIR demo data
Expanding: /opt/polarion/polarion/install/demo-bir+rr.zip into 
/opt/polarion/data

Done.

We wanted to import example data for training. This creates polarion projects, work items and users.

*********************************************************************************
* 9/10) INSTALLATION CLEAN UP
*********************************************************************************

Cleaning up ...
done
Do you want start Polarion now?
Type answer <yes|no>, default [yes] yes
Got yes!
Automatically starting the Polarion system...
Reading SVN parameters from /opt/polarion/etc/polarion.properties

Starting Polarion service...
Please wait for background operation to finish! For more information see:
tail -100f /var/log/polarion/polarion.log OR /etc/init.d/polarion log
Launching the Polarion Server. This can take some time; please be patient...
UID        PID  PPID  PGID   SID  C STIME TTY          TIME CMD
polarion 29280 29279 29278 29278 87 17:56 ?        00:00:00 polarion-server
-Djava.sdk.home=/opt/jdk1.6.0_17 -server -Xms256m -Xmx707m -XX:PermSize
=128m -XX:MaxPermSize=128m -XX:+HeapDumpOnOutOfMemoryError -Dcom
.polarion.propertyFile=/opt/polarion/etc/polarion.properties -Dmultirepository.co
nfiguration=/opt/polarion/etc/multirepository -Dcom.polarion.logs.main=/opt/pol
arion/data/logs/main -Xbootclasspath/a:/opt/jdk1.6.0_17/lib/tools.jar -cp /opt/po
larion/polarion/startup.jar org.eclipse.core.launcher.Main -nosplash -data /opt/
polarion/data/workspace -configuration /opt/polarion/data/workspace/.config

Running Polarion service..

==============================================
 Polarion ALM 2010 installed successfully!
==============================================

[root@polarionlive Polarion]#

 

First steps in Polarion

Go to http://localhost/repo. It's the SVN webdav repository used by polarion. You can browse it with your web browser or a webdav client.

Go to http://localhost/polarion to access your new install. Enter admin / admin as login / password and login.

Capture

 

Add comment

Please respect this work and community, do not abuse it.


Security code
Refresh