CBIIT/nci-webtools-dceg-classification

Name: nci-webtools-dceg-classification

Owner: NCI CBIIT Development Sandbox

Description: null

Created: 2015-04-15 02:44:36.0

Updated: 2017-05-11 18:48:32.0

Pushed: 2017-06-08 19:38:26.0

Homepage: null

Size: 255299

Language: Python

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

SOCcer Build and Deployment

Created by Sue Pan, last modified on Jul 02, 2015

SOCcer is composed of two applications: webapp and client. Therefore, there are two build.xml files. Read the following instructions thoroughly before deploying both applications.

1. Pull the source codes from github

Git link: https://github.com/CBIIT/nci-webtools-dceg-classification.git

 -rf nci-webtools-dceg-classification.old
 nci-webtools-dceg-classification nci-webtools-dceg-classification.old
t clone https://github.com/CBIIT/nci-webtools-dceg-classification.git
2. Deploy web application

Working directory: nci-webtools-dceg-classification/soccer/webapp

a. Issue ant deploy command

Define the following variables when executing ant deploy command:

occer.domain.name=soccer-dev.nci.nih.gov                  // Modify soccer domain name accordingly (dev, stage, prod)
omee.dir=/local/content/tomee                             // The installation folder of TomEE plus
occer.dir=/local/content/soccer                           // Soccer related folder     
ov.nih.cit.soccer.wordnet.dir=/local/content/soccer/dict  // The folder of WordNet dictionary
ov.nih.cit.soccer.rscript=/usr/bin/Rscript                // Whereis Rscript command

For example,

t -Dsoccer.domain.name=soccer-dev.nci.nih.gov -Dtomee.dir=/local/content/tomee -Dsoccer.dir=/local/content/soccer -Dgov.nih.cit.soccer.wordnet.dir=/local/content/soccer/dict -Dgov.nih.cit.soccer.rscript=/usr/bin/Rscript deploy

Note: Please make sure the directories reference in the build properties are already created and exist on the server. Ant deploy compiles the source codes, generates soccer.war and tomee.xml files, then copies the soccer.war to /webapps folder, and copies the tomee.xml to /conf folder, so please make sure the user has write permission to both /webapps and /conf directories.

b. Restart TomEE Plus
rvice tomee restart
3. Deploy client application

Working directory: nci-webtools-dceg-classification/soccer/client

a. Issue ant deploy command

Define the following variables when executing ant deploy command:

occer.domain.name=soccer-dev.nci.nih.gov                  // Modify soccer domain name accordingly (dev, stage, prod)
omee.dir=/local/content/tomee                             // The installation folder of TomEE plus   
occer.dir=/local/content/soccer                           // Soccer related folder   
occer.remote.web.port=80                                  // The port# to access SOCcer web application through the soccer.domain.name defined above
ov.nih.cit.soccer.wordnet.dir=/local/content/soccer/dict  // The folder of WordNet dictionary
ov.nih.cit.soccer.rscript=/usr/bin/Rscript                // Whereis Rscript command   
eploy.target.dir=/local/content/soccer                    // Where to deploy the client application

For example,

$ ant -Dsoccer.domain.name=soccer-dev.nci.nih.gov -Dtomee.dir=/local/content/tome -Dsoccer.dir=/local/content/soccer -Dsoccer.remote.web.port=80 -Dgov.nih.cit.soccer.wordnet.dir=/local/content/soccer/dict -Dgov.nih.cit.soccer.rscript=/usr/bin/Rscript -Ddeploy.target.dir=/local/content/soccer deploy

Note: Please make sure the directories reference in the build properties are already created and exist on the server. Ant deploy compiles the source codes, copies all the artifacts in the dist folder to the target folder designated by -Ddeploy.target.dir above, and if the OS is Linux/Unix, adds execute (+x) permission to the jcmd.sh script.

b. Start client application
rvice soccer stop
rvice soccer start
il -f /local/content/soccer/soccer.log  

If you are able to see the following message: “INFO: Request to run every <10> seconds.“, congratulations, the client application is running well.

4. Open soccer web link in web browser and test the application.

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.