2 ##############################################################################
3 # Copyright © 2018 AT&T Intellectual Property. All rights reserved. #
5 # Licensed under the Apache License, Version 2.0 (the "License"); you may #
6 # not use this file except in compliance with the License. #
8 # 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, WITHOUT #
13 # 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. #
16 ##############################################################################
21 echo "Plese pass site name as command line argument"
24 export SITE=${SITE:-$1}
28 source $(dirname $0)/setenv.sh
29 TIMESTAMP=$(date +"%Y%m%d%H%M")
30 echo "TIMESTAMP=$TIMESTAMP"
32 echo "Validating the setup and generating the tar file"
33 bash $YAML_BUILDS/tools/1prom-gen.sh $SITE > /var/log/yaml_builds/1prom-gen-$TIMESTAMP.log 2>&1
36 echo "Error:Could not generate tar file. So stopping here"
40 echo "Bringing up the genesis node"
41 bash $YAML_BUILDS/tools/2genesis.sh $SITE > /var/log/yaml_builds/2genesis-$TIMESTAMP.log 2>&1
44 echo "Error:Could not bringup the genesis nodes. So stopping here"
48 echo "Deploying the site"
49 bash $YAML_BUILDS/tools/3deploy_site.sh $SITE > /var/log/yaml_builds/3deploy-$TIMESTAMP.log 2>&1
52 echo "Error:Could not deploy the site."