commit | a9156ec5f40039b97f97dfd3d3bae255a44c6333 | [log] [tgz] |
---|---|---|
author | subhash kumar singh <subh.singh@samsung.com> | Mon May 29 12:55:05 2023 +0000 |
committer | subhash kumar singh <subh.singh@samsung.com> | Mon May 29 12:56:31 2023 +0000 |
tree | b9a970692bb1ed158b6c6d56b3729d6f6968f908 | |
parent | 31505299317b3fbc8b5f918e7bb811c243606705 [diff] |
Add error check if arg is nil Implemented error check to avoid crash if `helmpkg` is nil. Issue-ID: RIC-955 Signed-off-by: subhash kumar singh <subh.singh@samsung.com> Change-Id: I0c1686ea11dd6d715c2e1fca3b3bea82c9406935
Chekout code for RICDMS repository from gerrit.
$ git clone ssh://subhash_singh@gerrit.o-ran-sc.org:29418/ric-plt/ricdms
build locally
$ make build
Run the executable
$./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
Build the image
$ make image
Add the changes to deployment/dms-config.yaml
as per your environment (refer your .kubeconfig
file).
apiVersion: v1 kind: ConfigMap metadata: name: kube-env data: config: | apiVersion: v1 clusters: - cluster: certificate-authority-data: <certificate> server: https://<kube-ip>:<kube-port> name: <name> contexts: - context: cluster:<cluster-name> user: <user> name: <name> current-context: <context> kind: Config preferences: {} users: - name: <name> user: client-certificate-data: <cliet-cert> client-key-data: <client-key-data>
Apply the deployment yaml :
$ kubectl apply -f deployment
Make sure that following pod, svc and configmap is created :
$ 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 <cluster-IP> <none> 8000:32625/TCP 15s NAME DATA AGE configmap/kube-env 1 90s
One can bring moco
server to mock environment for development purpose. Mocks are captured in mock
folder.
Use below command to bring up the mock server :
$ docker run --rm -d -v /home/ubuntu/osc/ric-plt/ricdms/mock:/var/moco -p 9191:8000 rezzza/docker-moco:latest
Export the enviroment variable to use the URLs from
so that mock server could be used.
$ export RIC_DMS_CONFIG_FILE=$(pwd)/config/config-test.yaml
Now, developer environment is ready :computer: