2 ###############################################################################
3 # Copyright 2017 Huawei Technologies Co., Ltd.
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
17 # Modifications copyright (c) 2021 Nordix Foundation
19 ###############################################################################
21 unset http_proxy https_proxy
22 SHELL_FOLDER=$(cd "$(dirname "$0")";pwd)
23 docker stop $(docker ps -aq)
24 docker system prune -f
25 docker network create oam
26 docker network create smo
28 cd ${SHELL_FOLDER}/../config/pms/
29 cp application_configuration.json.nosdnc application_configuration.json
31 cd ${SHELL_FOLDER}/../
33 # start NONRTRIC containers with docker compose and configuration from docker-compose.yml
41 if [ "$res" == "$expect" ]; then
42 echo -e "$3 is alive!\n"
49 # Healthcheck docker containers
52 echo "check SIM1 status:"
53 checkStatus "curl -skw %{http_code} http://localhost:30001/" "OK200" "SIM1"
56 echo "check SIM2 status:"
57 checkStatus "curl -skw %{http_code} http://localhost:30003/" "OK200" "SIM2"
60 echo "check SIM3 status:"
61 checkStatus "curl -skw %{http_code} http://localhost:30005/" "OK200" "SIM3"
64 echo "check PMS status:"
65 checkStatus "curl -skw %{http_code} http://localhost:8091/status" "hunky dory200" "PMS"
68 echo "check ICS status:"
69 checkStatus "curl -skw %{http_code} http://localhost:8083/status" '{"status":"hunky dory","no_of_producers":0,"no_of_types":0,"no_of_jobs":0}200' "ICS"
71 echo "NONRTRIC health check passed."