...
Code Block |
---|
apt-get install subversion postgresql libpgjava tomcat7 openjdk-7-jdk ant apache2 |
Download source code, in this case we're fetching version 2.1.1 and stick that under /opt:
...
Code Block |
---|
cd /opt/GROUPER_2_1_1/grouper ant dist |
Run the tests. This will blitz your database, so make sure it doesn't contain precious dataCreate the database structure:
Code Block |
---|
cd /opt/GROUPER_2_1_1/grouper/ bin/gsh.sh -testregistry -all |
This took more than an hour on a reasonably beefy VM. In the end this should not yield any errors.
FIXME BELOW
runscript |
Check if this went OKNow it's time to install the database schema. This is a two-step process. The following command should generate a chunk of SQL code and save it to a file:
Code Block |
---|
bin/gsh.sh -registry -check |
This will end with something like this:
Code Block |
---|
Note: this script was not executed due to option passed in
To run script via gsh, carefully review it, then run this:
gsh -registry -runsqlfile /opt/GROUPER_2_1_1/grouper/ddlScripts/grouperDdl_20120725_13_14_17_596.sql |
Now do as you're told and run the SQL
Run the tests. This is an extensive test suite - on a powerful VM it took me about one hour:
Code Block |
---|
bin/gsh.sh -test -all |
No errors should be reported in the end.
Apache
Code Block |
---|
cd /etc/apache2 a2enmod proxy_ajp |
...