Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Pre-requisite

Version

JDK

1.8

Tomcat

9+

MySQL

5.7

Oracle

11g+

Gradle

2.09

GIT1.8
node.js10+
npm
bower
grunt

The recommended memory requirement for the OpenSpecimen app is 2GB. To configure Tomcat follow /wiki/spaces/CAT/pages/83562193

Note: For the database, you can choose between Oracle or MySQL. 

          You'll also need to place an appropriate connector jar for MySQL/Oracle under the 'lib' directory in the tomcat server.

Environment Variables

...

Environment Variable

Description

JAVA_HOME

Absolute The absolute path of the directory where JDK is installed. For example:

C:\JDK1.8

...

The deployment process involves some database operations which requires require specific privileges set for the database user. Use the below command to create a database. Refer to Database Configuration and make sure these privileges are assigned before the deployment process.

...

Property NameDescriptionDefault ValueAllowed Values
app_home

The absolute path of the directory where the Tomcat server is extracted and installed.

NoneExample: /usr/local/openspecimen/tomcat-as

...

  1. Open command terminal
  2. Change to the directory where OpenSpecimen source code is checked-out
    • cd $OS_HOME
  3. Setup npm & bower dependencies.
    • cd www/
    • npm install
    • bower install
  4. Change directory to root directory of source code.
    • cd ..
  5. Use the following command to build and deploy OpenSpecimen into the app_home directory (Tomcat or JBoss server).
    • gradle deploy
  6. To only compile Java source files use the following command
    • gradle compileJava
  7. To build OpenSpecimen web app archive without deploying use following command
    • gradle build

...