Getting Started
Please setup Automatics system if not already done following Automatics Tool Setup
Follow below steps to deploy Zephyr service in Automatics System.
Zephyr Gateway Service Setup
Software Requirement
JDK 17 Setup Details
Follow Steps below to install Java 17 on CentOS/linux.
Install Java 17
| yum install java-17-openjdk |
|---|
Verify Java is Installed
Building Zephyr Service Source Code
- Clone Zephyr Gateway Service source code from Zephyr Gateway Service
- Open zephyr-gateway/src/main/resources/application.properties in source code and update the following properties and save the changes.
- automatics.url with automatics base url.
- base.url with zephyr server base url
- accessToken with the ZephyrServer access token
- privateKey with the zephyr server private key
- Build the source code using maven to generate the jar file
"mvn clean install"
Deployment
- Copy the jar file to the VM where Zephyr Gateway Service to be deployed.
- Create 2 directories zephyr-gateway and logs in VM.
- Copy the jar file to zephyr-gateway directory.
Run the below command from zephyr-gateway directory to bring the up in the VM.
| nohup java -XX:+UseSerialGC -Dlog4j2.formatMsgNoLookups=true -jar zephyrgatewayservice-0.0.1-SNAPSHOT.jar > logfile.log 2>&1 & |
|---|
- zephyrGatewayService.log file will be created in the logs directory and we can check the real time logs of the Zephyr Gateway Service using this file.