# RICDMS ## Building ### Local build and Run Chekout code for [RICDMS](https://gerrit.o-ran-sc.org/r/admin/repos/ric-plt/ricdms) repository from gerrit. ```sh $ git clone ssh://subhash_singh@gerrit.o-ran-sc.org:29418/ric-plt/ricdms ``` build locally ```sh $ make build ``` Run the executable ```sh $./ricdms {"ts":1684321663015,"crit":"INFO","id":"ricdms","mdc":{},"msg":"Logger is initialized without config file()."} {"ts":1684321663023,"crit":"INFO","id":"ricdms","mdc":{},"msg":"Starting server at : 0.0.0.0:8000"} 2023/05/17 11:07:43 Serving r i c d m s at http://[::]:8000 ``` It will start the RICDMS on port `:8000` ### Kubernetes Build the image ``` $ make image ``` Add the changes to `deployment/dms-config.yaml` as per your environment (refer your `.kubeconfig` file). ```yaml apiVersion: v1 kind: ConfigMap metadata: name: kube-env data: config: | apiVersion: v1 clusters: - cluster: certificate-authority-data: server: https://: name: contexts: - context: cluster: user: name: current-context: kind: Config preferences: {} users: - name: user: client-certificate-data: client-key-data: ``` Apply the deployment yaml : ``` $ kubectl apply -f deployment ``` Make sure that following pod, svc and configmap is created : ```sh $ kubectl get po,svc,config NAME READY STATUS RESTARTS AGE pod/dms-server-r2k64 1/1 Running 0 15s NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE service/ric-dms-service NodePort 8000:32625/TCP 15s NAME DATA AGE configmap/kube-env 1 90s ```