From: vlad shkapenyuk Date: Mon, 18 May 2020 18:44:35 +0000 (-0400) Subject: Ensure fifo directory is created at startup X-Git-Tag: 1.0.6^0 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=717b4f4a9733a9e293fd1290b1ba8924ba423831;p=ric-app%2Fmc.git Ensure fifo directory is created at startup Signed-off-by: vlad shkapenyuk Change-Id: Ie060682c8a69f6817134a01237041f883c8145fc --- diff --git a/mc-core/container-tag.yaml b/mc-core/container-tag.yaml index 29ba2d0..4715d7a 100644 --- a/mc-core/container-tag.yaml +++ b/mc-core/container-tag.yaml @@ -1,4 +1,4 @@ --- -tag: '1.0.5' +tag: '1.0.6' # this is used by the CI jobs to tag the image it builds diff --git a/mc-core/container_start.sh b/mc-core/container_start.sh index 743313a..4e949eb 100755 --- a/mc-core/container_start.sh +++ b/mc-core/container_start.sh @@ -41,9 +41,13 @@ set -e +FIFO_DIR="/tmp/mcl/fifos" + 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` +mkdir -p $FIFO_DIR + if [ "$SIMULATOR_MODE" != "true" ] then # --- start "sidecars" first. They are expected to need /playpen as the working dir diff --git a/mc-core/mc/queries/generate_runall.py b/mc-core/mc/queries/generate_runall.py index d002a83..667120b 100644 --- a/mc-core/mc/queries/generate_runall.py +++ b/mc-core/mc/queries/generate_runall.py @@ -76,7 +76,6 @@ RMR_PORT=`python /mc/extract_rmr_port.py ${XAPP_DESCRIPTOR_PATH}/config-file.jso if [ "$SIMULATOR_MODE" = "true" ] then - mkdir -p $FIFO_DIR python /mc/data_gen/dc_gen.py & python /mc/data_gen/rrcx_gen.py & fi