Page History
...
- 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
- Remove previously compiled reasonings from the protegedata/pelletdata folder "rm -rf /local/content/protege/protegedata/pelletdata/*"
Shutdown/Startup of Services
...
- 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 protege server: "./run-background.sh"
- Do "tail ../logs/protserv-console.txt" to check that the protege server is running.
- To startup explanation server: “./pellet server --config /local/content/protege/protegedata/configdata/server.properties start"
- Do "tail ../logs/pellet-console.txt" to check that the explanation server is running.
...
- 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
There is a script called package.sh that will perform all of the below. You pass in the version of the protege build number as a parameter "./package.sh <version>"
- Navigate to /local/project/protegeClientPackage
- Remove and any previous zip files and client version directories but leave java and the run scriptseverything else.
- i.e. remove nci-protege5_V<previous> and nci-protege5_V<previous>.zip
- Create directory nci-protege5_V2.1.00vV<current>
- Copy in the desktop client "cp r /local/content/protege/protegedesktop/* ./nci-protege5_V2.1.00vV<current>"
- Copy the jre and run scripts into the new directory
cp -r ./jre1.8.0_102 .jre<version> ./nci-protege5_V2.1.00vV<current>/
cp run.* ./nci-protege5_V2.1.00vV<current>/
cp removeOldPlugins.bat ./nci-protege5_V<current>/
cp -rf bookmark ./nci-protege5_V<current>/
Create a zip "zip -r nci-protege5_V2V<current>.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.0V<current>"
Deployment
- Unzip the protege package in your chosen directory
- Run the bat or sh file
- Do NOT immediately accept download of plugins.
- Go to Launcher/Preferences then the plugins tab. Make sure you are pointed to the correct plugins location.
- Go to File/Check for plugins and select all plugins
- Restart protege
- Set up Lucene - Go to File/Preferences and choose Lucene in the General tab
- Set up Pellet - Go to File/Preferences, the Reasoner tab and the Pellet sub-tab.
- Select Remote as the reasoner type
- Enter the server address for pellet
- Optional - restart Protege
- Choose "File Open from Protege Server". Enter the credentials and wait.
- Once open, go to Lucene tab and wait for it to index.
- Once indexing done go to Reasoner on the menu and select "Pellet" as the reasoner.
- Under Reasoner on the menu select "Start Reasoner"