Software Requirement
JDK 17 Setup Details
Follow Steps below to install Java 17 on CentOS/linux.
Install Java 17
Verify Java is Installed
Configuration in CDRouter Service
In application.properties file of CDRouter Service, we can configure certain values for cdrouter test execution.
- automatics.url - We need to enter the base URL of Automatics
- devicemanager.url - We need to enter the base URL of device manager service.
- cron.package.details.jobs - This property is a used to specify the cron expression for sending the package details from CDRouter Service to Automatics for saving in the database. By default it is configured in such a way that from Monday to Friday at 10:30 AM, package details from CDRouter Instance will be sent to Automatics.
Building CDRouter Service Source Code
- Clone CDRouter Service source code from CDRouter Service
- Open cdrouterservice/src/main/resources/application.properties in source code and update below properties with values and save the changes.
- Build the source code using maven to generate the jar file
"mvn clean install"
Deployment
- Copy the jar file to the VM where CDRouter Service to be deployed.
- Create 2 directories cdrouter-service and logs in VM.
- Copy the jar file to cdrouter-service directory.
Run the below command from cdrouter-service directory to bring the CDRouter Service up in the VM.
- CDRouterService.log file will be created in the logs directory and we can check the real time logs of the CDRouter Service using this file.