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 SIMULATOR_MODE=`python /mc/extract_params.py $XAPP_DESCRIPTOR_PATH simulator_mode`
46 if [ "$SIMULATOR_MODE" != "true" ]
48 # --- start "sidecars" first. They are expected to need /playpen as the working dir
52 if (( $USE_NNG )) || [[ ! -f bin/mc_listener_si ]] # we really want the si version unless forced
58 ) >/tmp/listener.std 2>&1 &
60 echo "listener was started" >&2
65 # ---- finally, start the core MC application -----------------------------
66 cd ${GSLITE_ROOT:-/mc/gs-lite}/demo/queries