Building a new Protege version on Dev
- You will be notified of the new build number. For example: nci-1.00v
- On the dev machine go to /local/project and create a directory "mkdir nciedittab-dev-1.00v"
- Enter the directory and checkout the project from git "git clone https://github.com/ncievs/nci-protege5.git"
- The clone will create a directory "nci-protege5". Enter into the scripts subdirectory "cd nci-protege5/scripts/"
- Run the build script, passing in the version number "./build.sh nci-1.00v ncievs". Occasionally we may need to build from another server. The developer should notify when this is necessary.
- Review the output for errors or build failures.
- Shutdown the protege server and explanation server (See below)
- Navigate to /local/content/protege/
- Move the protegeserver directory to a backup and create an empty folder in its place
- "mv protegeserver protegeserver-bak"
- "mkdir protegeserver"
- Repeat the backup step for explanationserver and protegedesktop
- Copy the new protegeserver into the empty server directory "cp -r /local/project/nciedittab-dev-1.00v/nci-protege5/scripts/nci-protege5/protege-server/target/server-distribution/server/* ./protegeserver/"
- Copy the new protegedesktop into the empty desktop directory "cp -r
/local/project/nciedittab-dev-1.00v/nci-protege5/scripts/nci-protege5/protege/protege-desktop/target/protege-5.1.1-SNAPSHOT-platform-independent/Protege-5.1.1-SNAPSHOT/* ./protegedesktop"
- Copy the explanationserver tarball to the explanationserver folder "cp /local/project/nciedittab-dev-1.00v/nci-protege5/scripts/nci-protege5/pellet/distribution/target/*.gz ./explanationserver/" and untar it
Shutdown/Startup of Services
There are two services supporting Protege - the main protege server and the explanation server. The main server should be shutdown before the explanation server. When starting, the explanation server should be started before the protege server.
Shutdown
- Navigate to /local/content/protege/scripts/
- To shutdown the protegeserver: "./shutdown.sh"
- To shutdown the explanation server: ????
Startup
- Navigate to /local/content/protege/scripts/
- To startup explanation server: “./pellet server —config /local/content/protege/protegedata/configdata/server.properties start"
- To startup protege server: "./run-background.sh"
- Do "tail ../logs/protserv-console.txt" to check that the protege server is running.
Packaging Server for Deployment to Upper Tier
- Navigate to /tmp/protege and remove any files and folders there
- Copy up server directory - cp -R /local/content/protege/protegeserver .
- Copy up explanation server - cp -R /local/content/protege/explanationserver .
- Package into tarball with version number - tar -cvzf protege-server-deployment-1.00v.tar.gz explanationserver protegeserver
- Copy tarball to /priv-file-repo/protege/deployment
- Move any previous versions to /priv-file-repo/protege/archive/deployment-package
Packaging Client for Deployment
- Navigate to /local/project/protegeClientPackage
- Remove and previous zip files and client directories but leave java and the run scripts
- Create directory nci-protege5_V2.1.00v
- Copy in the desktop client "cp r /local/content/protege/protegedesktop/* ./nci-protege5_V2.1.00v"
- Copy the jre and run scripts into the new directory
cp -r ./jre1.8.0_102 ./nci-protege5_V2.1.00v/
cp run.* ./nci-protege5_V2.1.00v/
Create a zip "zip -r nci-protege5_V2.1.00v.zip nci-protege5_V2.1.00v"
Copy the zip to your local machine, unzip and test
Put zip on sFTP under evs/Protege/Protege-2.0