You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 15 Current »

Getting Started

Please setup Automatics system if not already done following Automatics Tool Setup

Follow below steps to enable CDRouter support in Automatics System.

CDRouter Service Setup

Software Requirement

  • JDK 17

  • Maven 3

JDK 17 Setup Details

Follow Steps below to install Java 17 on CentOS/linux.

    • Update before installing any new program

      yum -y update
    • Install Java 17

      yum install java-17-openjdk
    • Verify Java is Installed

      java –version

Building CDRouter Service Source Code

  1. Clone CDRouter Service source code from CDRouter Service
  2.  Open cdrouterservice/src/main/resources/application.properties in source code and update automatics.url with automatics base url and save the changes.
  3. Build the source code using maven to generate the jar file

"mvn clean install

Deployment

  1. Copy the jar file to the VM where CDRouter Service to be deployed.
  2. Create 2 directories cdrouter-service and logs in VM.
  3. Copy the jar file to cdrouter-service directory.
  4. Run the below command from cdrouter-service directory to bring the CDRouter Service up in the VM.

    nohup java -XX:+UseSerialGC -Dlog4j2.formatMsgNoLookups=true -jar cdrouterservice-0.0.1-SNAPSHOT.jar > logfile.log 2>&1 &
  5. 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.
  • No labels