Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

  1. Download and install Maven 2 from http://maven.apache.org
    (if behind a proxy don't forget to configure your Maven settings file appropriately)
  2. check out the codebase from our bitbucket repository: https://bitbucket.org/tdar/tdar.devsrc
  3. install the prerequisites:
    1. PostgresSQL - 9.1 (Harris+)
    2. Postgis
    3. Tomcat (production only)
    4. Atlassian Crowd or an LDAP server
  4. set up the database:
    1. create a user named tdar and grant CREATEDB permissions on postgres
    2. create the following database:
      1. tdarmetadata
      2. tdardata
      3. tdargis
    3. unzip

      Setup "tdar" user:

      Code Block
      titlepsql console
      create user tdar with CREATEDB;
      GRANT USAGE ON LANGUAGE plpgsql TO tdar;
    1. setup the databases and load the sample data

      Code Block
      languagebash
      titlerun script
      src/main/db/
  1. tdardata.zip, src/main/db/tdarmetadata.zip, src/main/db/tdargis.zip
    1. load_tdarmetadata_database.sh
    2. To setup the tdardata database and tdargis database, locate the zip files in the https://bitbucket.org/tdar/tdar.support repository
    3. setup the tdargis database as a postgis database
    4. load the sql for each zip file into the corresponding
  2. databaserun src/main/db/upgrade-db.sql on the tdarmetdata
    1. database

  3. set up the instance by performing the following:
    1. make sure you have a tdar user with CREATEDB permissions on postgres
    2. run the maven setup task:

      Code Block
      mvn -Psetup-new-instance compile
  4. setup auth environment
    1. in src/main/resources/ find the requisite config file (crowd.properties, ldap.properties)
    2. configure as needed
    3. Make sure that the auth system has the following groups:
      1. tdar-admins

      2. tdar-editors

      3. tdar-users

...