You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
Version 1
Next »
In the Xconf RDK community instance , the data service and Admin UI is added standalone jetty services. This documentation explains the steps that were followed to achieve it.
KeyPoints
- According to this tutorial, Cassandra DB and the two xconf applications are deployed in the same server
- The xconf applications – data service and admin ui are deployed in two separate jetty instances
- Both the applications are deployed as separate processes
Prerequisites
- Required: Xconf dataservice and Xconf admin ui war files
- Environment: Ubuntu 18.04
- Jetty 9.4.37
- Install Java
- Setup Cassandra DB
Steps to be followed
Deploy Xconf-data-service wit
- Create folder ‘jetty’ and install jetty in it by downloading jetty 9.4.37 version using ‘wget’ command
cd /opt
mkdir jetty
cd jetty
wget https://repo1.maven.org/maven2/org/eclipse/jetty/jetty-distribution/9.4.37.v20210219/jetty-distribution-9.4.37.v20210219.tar.gz
gzip –d jetty-distribution-9.4.37.v20210219.tar.gz
tar -xf jetty-distribution-9.4.37.v20210219.tar.gz--strip=1
- Copy war file to webapps folder and make it to ROOT.war. This is to
get the application URL in the format “http://127.0.0.1:9092/queries/environments”
To rename – sudo mv xconf-dataservice.war ROOT.war
- Copy the service.properties file to jetty home folder
- Edit start.ini in your JETTY_HOME directory with the following contents. (If we want to enable both http and https)
--module=https
etc/jetty-ssl.xml
-DappConfig=service.properties
-Djetty.logs=/opt/jetty/logs