X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=blueprints%2Fiotgateway%2Fscripts%2Fsetup.sh;h=52459b8faf5c888656ad444c5758c46ad9bb125b;hb=55f3bd1a6d9ecf13246d9dedf6dcd78a60d56e4c;hp=9b2a6955723295ff6c8478bddda36f886b93014f;hpb=c19ae19ceb20a1c47d53e5d2a482f6f4fd5cfa38;p=eliot.git diff --git a/blueprints/iotgateway/scripts/setup.sh b/blueprints/iotgateway/scripts/setup.sh index 9b2a695..52459b8 100755 --- a/blueprints/iotgateway/scripts/setup.sh +++ b/blueprints/iotgateway/scripts/setup.sh @@ -56,9 +56,9 @@ setup_k8sworkers() # Install Docker on ELIOT Node SETUP_WORKER_COMMON="sudo rm -rf ~/eliot &&\ git clone ${ELIOT_REPO} &&\ - cd eliot/scripts/ && source common.sh" + cd eliot/blueprints/iotgteway/scripts/ && source common.sh" #SETUP_WORKER_COMMON="cd eliot/scripts/ && source common.sh" - SETUP_WORKER="cd eliot/scripts/ && source k8sworker.sh" + SETUP_WORKER="cd eliot/blueprints/iotgateway/scripts/ && source k8sworker.sh" KUBEADM_TOKEN=$(kubeadm token create --print-join-command) KUBEADM_JOIN="sudo ${KUBEADM_TOKEN}" @@ -100,7 +100,7 @@ setup_k8sworkers_centos() SETUP_WORKER_COMMON_CENTOS="sudo rm -rf ~/eliot &&\ git clone ${ELIOT_REPO} &&\ - cd eliot/scripts/ && source common_centos.sh" + cd eliot/blueprints/iotgateway/scripts/ && source common_centos.sh" # SETUP_WORKER_COMMON_CENTOS="cd /root/eliot/scripts/ && source common_centos.sh" @@ -132,9 +132,18 @@ install_edgex(){ cd edgex && source edgexonk8s.sh } +# verify installation of edgex platform +verify_edgex() +{ + set -o xtrace + source verifyedgex.sh + +} + + install_cadvisor_edge(){ set -o xtrace - SETUP_CADVISOR_ATEDGE="cd eliot/scripts/ && source cadvisorsetup.sh" + SETUP_CADVISOR_ATEDGE="cd eliot/blueprints/iotgateway/scripts/ && source cadvisorsetup.sh" while read line do nodeinfo="${line}" @@ -175,9 +184,10 @@ sudo docker ps | grep prometheus install_edgex sleep 20 +verify_edgex # Removing the taint from master node kubectl taint nodes --all node-role.kubernetes.io/master- || true -echo "ELIOT Setup execution is Completed..." +echo "ELIOT IOT-Gateway Platform is Successfully Deployed !!!"