Added support for publishing metrics using RMR and new descriptor file format
[ric-app/mc.git] / mc-core / container_start.sh
index 22d121d..a2195ea 100755 (executable)
@@ -42,6 +42,7 @@
 set -e
 
 SIMULATOR_MODE=`python /mc/extract_params.py ${XAPP_DESCRIPTOR_PATH}/config-file.json simulator_mode`
+RMR_PORT=`python /mc/extract_rmr_port.py ${XAPP_DESCRIPTOR_PATH}/config-file.json rmr_data_in`
 
 if [ "$SIMULATOR_MODE" != "true" ]
 then
@@ -49,11 +50,11 @@ then
 
 (
        cd /playpen
-       if (( $USE_NNG )) || [[ ! -f bin/mc_listener_si ]]              # we really want the si version unless forced
+       if [ "$RMR_PORT" != "" ]
        then
-               bin/mc_listener
+               bin/mc_listener -p $RMR_PORT
        else
-               bin/mc_listener_si
+               bin/mc_listener
        fi
 )