-
Notifications
You must be signed in to change notification settings - Fork 10
Deploying the OCD Service
If you want to deploy the OCD Service to a server, the service must first be build. There are two basic alternatives. Either you directly build the project on the machine where it should be deployed, or you build it on some other machine and then move the files to their designated location. You will have to execute the jar target in order to create the service jar. Please refer to [Build Process](Build Process) for more information. Make sure you also generate the user agents for any required user accounts through the target by altering the gradle build file accordingly and running the jar target, if needed.
The OCD Service makes heavy use of the archive y.jar which is part of the commercial yFiles framework by yWorks. The Chair i5 of RWTH Aachen University has a license allowing the usage of this software. However, it is not allowed to make this library publicly accessible to others. Therefore, if you intend to deploy the OCD Service on a public machine (accessible to people which are not affiliated with the chair) you must obfuscate that library. For this purpose you will require the archive yguard.jar which is offered for free by yWorks. The yguard target will help you with the obfuscation. Please refer to [Build Process](Build Process) for more information. For the obfuscation requirements concerning yFiles and more information on yGuard please refer to the corresponding documentation by yWorks. Also make sure that the yGuard log file under ocd/yGuard/log.xml is not being deployed.
There are a few additional aspects that should be taken under consideration. First of all, there are several project folders which do not need to be deployed. After completing the build, only the following resources are relevant for the service execution, any others may be removed.
- bin directory
- etc directory (without ant_configuration and ivy in the old ant build)
- lib directory
- log directory
- ocd directory (without ivy in the old ant build, test and yGuard)
- service directory (in the case of a public deployment, the standard service jar must be replaced by the obfuscated one
- LICENSE
- NOTICE
- README.md
- (ocd.conf in the old ant build)
Please keep in mind again that in the case of a public deployment the yGuard log file must not be deployed.
Also, when deploying on a Linux system, make sure with chmod +x <filename>
that the execution of all relevant scripts and programs is allowed. Please refer to [Project Structure](Project Structure) for more information.
Remember also that the Security Policy Files of the JRE being used on the server will in some cases have to be changed, please refer to the LAS2peer Template Project for more information.