blob: b19a471145323b7758c163b87b0be30ca5f0c1c2 [file] [log] [blame]
wrider1a8a09d2019-04-02 22:10:42 -04001#!/bin/bash
2################################################################################
3# Copyright (c) 2019 AT&T Intellectual Property. #
4# Copyright (c) 2019 Nokia. #
5# #
6# Licensed under the Apache License, Version 2.0 (the "License"); #
7# you may not use this file except in compliance with the License. #
8# You may obtain a copy of the License at #
9# #
10# http://www.apache.org/licenses/LICENSE-2.0 #
11# #
12# Unless required by applicable law or agreed to in writing, software #
13# distributed under the License is distributed on an "AS IS" BASIS, #
14# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
15# See the License for the specific language governing permissions and #
16# limitations under the License. #
17################################################################################
18
Zhe Huang7f1e4092019-05-28 16:16:02 -040019# This script deploys RIC platform components automatically
wrider1a8a09d2019-04-02 22:10:42 -040020
Zhe Huang033ab422019-05-20 15:45:42 -040021OVERRIDEYAML=$1
wrider1a8a09d2019-04-02 22:10:42 -040022
Zhe Huang7f1e4092019-05-28 16:16:02 -040023if [ -z "$OVERRIDEYAML" ];then
24echo "****************************************************************************************************************"
25echo " WARNING "
26echo "****************************************************************************************************************"
27echo "Deploying RIC platform without deployment recipe. Default configurations are used."
28echo "****************************************************************************************************************"
29
30
31fi
32
wrider1a8a09d2019-04-02 22:10:42 -040033
Zhe Huang96f1edd2019-07-12 17:06:51 -040034ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
Zhe Huang033ab422019-05-20 15:45:42 -040035
Zhe Huang96f1edd2019-07-12 17:06:51 -040036source $ROOT_DIR/../etc/ric.conf
Zhe Huang033ab422019-05-20 15:45:42 -040037
Zhe Huang033ab422019-05-20 15:45:42 -040038
Zhe Huang96f1edd2019-07-12 17:06:51 -040039export RICPLT_RELEASE_NAME=$helm_release_name
Zhe Huang033ab422019-05-20 15:45:42 -040040
Zhe Huang96f1edd2019-07-12 17:06:51 -040041export RICPLT_NAMESPACE=$plt_namespace
42export RICXAPP_NAMESPACE=$xapp_namespace
43export RICAUX_NAMESPACE=$aux_namespace
44export RICINFRA_NAMESPACE=$infra_namespace
45
46for component in $ROOT_DIR/../ric-platform/*/; do
47 # Will print */ if no directories are available
48 . $component/bin/install $OVERRIDEYAML
49
50done
Zhe Huang7f1e4092019-05-28 16:16:02 -040051
52
53