...
- Download and install Maven 2 from http://maven.apache.org
(if behind a proxy don't forget to configure your Maven settings file appropriately) - check out the codebase from our bitbucket repository: https://bitbucket.org/tdar/tdar.devsrc
- install the prerequisites:
- PostgresSQL - 9.1 (Harris+)
- Postgis
- Tomcat (production only)
- Atlassian Crowd or an LDAP server
- set up the database:
- create a user named tdar and grant CREATEDB permissions on postgres
- create the following database:
- tdarmetadata
- tdardata
- tdargis
- unzip
Setup "tdar" user:
Code Block title psql console create user tdar with CREATEDB; GRANT USAGE ON LANGUAGE plpgsql TO tdar;
setup the databases and load the sample data
Code Block language bash title run script src/main/db/
tdardata.zip, src/main/db/tdarmetadata.zip, src/main/db/tdargis.zipload_tdarmetadata_database.sh
- To setup the tdardata database and tdargis database, locate the zip files in the https://bitbucket.org/tdar/tdar.support repository
- setup the tdargis database as a postgis database
- load the sql for each zip file into the corresponding
databaserun src/main/db/upgrade-db.sql on the tdarmetdata - database
- database
- set up the instance by performing the following:
- make sure you have a tdar user with CREATEDB permissions on postgres
run the maven setup task:
Code Block mvn -Psetup-new-instance compile
- setup auth environment
- in src/main/resources/ find the requisite config file (crowd.properties, ldap.properties)
- configure as needed
- Make sure that the auth system has the following groups:
tdar-admins
tdar-editors
tdar-users
...