X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=blueprints%2Fiotgateway%2Fscripts%2Fsetup.sh;h=41f845a385979c40d00ca24eac0991aa1f8c19fa;hb=HEAD;hp=e1af2bbce34416f5087794101b2cbe986047946d;hpb=2c97a07953c45a070ad79eaa185d505a32e4c695;p=eliot.git diff --git a/blueprints/iotgateway/scripts/setup.sh b/blueprints/iotgateway/scripts/setup.sh index e1af2bb..41f845a 100755 --- a/blueprints/iotgateway/scripts/setup.sh +++ b/blueprints/iotgateway/scripts/setup.sh @@ -18,6 +18,9 @@ # sshpass needs to be installed before executing this script. # ######################################################################################## +echo "**********************************************************************" +echo "ELIOT IOT-Gateway Platform Deployment--------------------------STARTED" + # constants OSPLATFORM=$(awk -F= '/^NAME/{print $2}' /etc/os-release) @@ -162,7 +165,7 @@ install_prometheus(){ install_opcua_centos(){ set -o xtrace - INSTALL_OPCUA_ATEDGE="cd eliot/blueprints/iotgateway/scripts/opcua/ && source install.sh" + INSTALL_OPCUA_ATEDGE="cd eliot/blueprints/iotgateway/scripts/opc-ua/ && source install.sh" while read line do nodeinfo="${line}" @@ -183,6 +186,8 @@ then exit 0 fi +setupPath=`pwd` + if [[ $OSPLATFORM = *CentOS* ]]; then setup_k8smaster_centos else @@ -201,14 +206,21 @@ install_edgex sleep 20 verify_edgex + +# Installing hawkbit through docker container +chmod +x hawkbit.sh +nohup ./hawkbit.sh + # Installing OPC-UA on IOT Gateway Node +cd ${setupPath} if [[ $OSPLATFORM = *CentOS* ]]; then install_opcua_centos - +fi # Removing the taint from master node kubectl taint nodes --all node-role.kubernetes.io/master- || true -echo "ELIOT IOT-Gateway Platform is Successfully Deployed !!!" +echo "**********************************************************************" +echo "ELIOT IOT-Gateway Platform Deployment--------------------------SUCCESS"