3 #----------------------------------------------------------------------------------
5 # Copyright (c) 2018-2020 AT&T Intellectual Property.
7 # Licensed under the Apache License, Version 2.0 (the "License");
8 # you may not use this file except in compliance with the License.
9 # You may obtain a copy of the License at
11 # http://www.apache.org/licenses/LICENSE-2.0
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
19 #---------------------------------------------------------------------------------
22 # ----------------------------------------------------------------------
23 # Mnemonic: container_start.sh
24 # Abstract: For some "pod" environments a single container is required.
25 # This starts all of the related processes which normally would
26 # be started in individual containers.
28 # There are two environment variables which affect the operation
30 # USE_NNG -- if set to !0 then the NNG version of the listener
31 # is started; undefined or when 0 then the SI95
34 # GSLITE_ROOT -- Assumed to be the root directory for the
35 # core MC xAPP. If not defined, /mc/gs-lite is
38 # Date: 13 February 2019
39 # Author: E. Scott Daniels
40 # ----------------------------------------------------------------------
44 FIFO_DIR="/tmp/mcl/fifos"
46 SIMULATOR_MODE=`python /mc/extract_params.py ${XAPP_DESCRIPTOR_PATH}/config-file.json simulator_mode`
47 RMR_PORT=`python /mc/extract_rmr_port.py ${XAPP_DESCRIPTOR_PATH}/config-file.json rmr-data`
51 if [ "$SIMULATOR_MODE" != "true" ]
53 # --- start "sidecars" first. They are expected to need /playpen as the working dir
57 if [ "$RMR_PORT" != "" ]
59 bin/mc_listener -p $RMR_PORT
65 echo "listener was started" >&2
70 # ---- finally, start the core MC application -----------------------------
71 cd ${GSLITE_ROOT:-/mc/gs-lite}/demo/queries