Skip to content

openmash/cosmo

This branch is 5 commits ahead of Spectrsys/cosmo:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

42c3179 · Jun 13, 2013
Feb 5, 2007
Nov 6, 2006
Feb 11, 2009
Feb 5, 2009
Jul 22, 2008
Jul 22, 2008
Jul 22, 2008
Nov 21, 2008
Jul 18, 2008
Jun 13, 2013
Jun 13, 2013
Jun 13, 2013
Jul 22, 2008

Repository files navigation

cosmo

The OSAF mirror

VA branch is va, version is tagged as v1.3.1-va

Building and deploying

  1. Checkout cosmo from https://github.com/openmash/cosmo
    git clone git@github.com:openmash/cosmo.git cosmo && cd cosmo
  2. Switch to relocations branch
    git checkout relocations
  3. Build cosmo with maven (tests are skipped to speed up process)
    mvn clean install -Dmaven.test.skip.exec=true
  4. Copy cosmo-webapp/target/chandler.war to /opt, an important note - do not copy this file to tomcat/webapps!
    cp cosmo-webapp/target/chandler.war /opt
  5. Go to tomcat home
    cd /opt/tomcat
  6. Download JDBC drivers and put them into lib directory, download java.mail and place it into lib as well
  1. Create directory etc in tomcat
    mkdir -p /opt/tomcat/etc
  2. Inside etc place file cosmo.properties (attached in this mail)
  3. Create directory conf/Catalina/localhost directory if missing
  4. Copy file chandler.xml (attached) to conf/Catalina/localhost
  • In chandler.xml you may specify context name in path attribute if you do not want to use "chandler" as path name
  • give proper location of chandler.war (/opt/chandler.war) in docBase attribute

Setting up the database

MySQL

  • Create user & password & database for cosmo
  • Edit etc/cosmo.properties
    uncomment line
    cosmo.hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect
    comment out other dialects
  • Edit conf/Catalina/localhost/chandler.xml uncomment resource

<Resource name="jdbc/cosmo" [...] />

  • put database access data - replace user/password/host/database

H2 (java database)

  • Edit etc/cosmo.properties
    uncomment line cosmo.hibernate.dialect=org.hibernate.dialect.H2Dialect comment other dialects
  • Edit conf/Catalina/localhost/chandler.xml uncomment resource

<Resource name="jdbc/cosmo" [...] />

  • put database access data - replace database location with disk location where database should be stored.

Packages

No packages published

Languages

  • Java 73.3%
  • JavaScript 21.3%
  • Python 2.7%
  • Ruby 1.3%
  • Perl 0.8%
  • Shell 0.3%
  • XSLT 0.3%