From: trevor tao Date: Thu, 23 May 2019 08:48:10 +0000 (+0800) Subject: Add IEC Foundation Framework Deployment Work X-Git-Url: https://gerrit.akraino.org/r/gitweb?p=ci-management.git;a=commitdiff_plain;h=2d02ba2262233b3dc806b6d95551713407d1faae Add IEC Foundation Framework Deployment Work Add IEC foundation deployment working scripts for IEC working environment and related verification to the environment. Signed-off-by: trevor tao Change-Id: I40b255cd9412b75deb052acd01932fddec06a826 Signed-off-by: trevor tao --- diff --git a/jjb/iec/iec-compass-destroy.sh b/jjb/iec/iec-compass-destroy.sh index 5f0a072..fbd448b 100755 --- a/jjb/iec/iec-compass-destroy.sh +++ b/jjb/iec/iec-compass-destroy.sh @@ -2,4 +2,8 @@ set -e rm -rf compass4nfv +sudo virsh destroy host1 +sudo virsh destroy host2 +sudo virsh destroy host3 + exit 0 diff --git a/jjb/iec/iec-fdn-install.sh b/jjb/iec/iec-fdn-install.sh new file mode 100755 index 0000000..75697ef --- /dev/null +++ b/jjb/iec/iec-fdn-install.sh @@ -0,0 +1,22 @@ +#!/bin/bash +set -e + +sleep 10 +echo "Start IEC installation:" +rm -rf iec +rm -rf ~/.ssh/known_hosts + +git clone "https://gerrit.akraino.org/r/iec" + +cd iec/src/foundation/scripts + +sed -i.bak 's/10.169.36.152/10.1.0.50/g' ./config +sed -i "/^K8S_MASTERPW=/cK8S_MASTERPW=\"root\"" ./config +sed -i "/^HOST_USER=/cHOST_USER=\${HOST_USER:-root}" ./config +sed -i "s/10.169.40.106,123456/10.1.0.51,root\"\n\"10.1.0.52,root/g" ./config +HOST_USER=root +export HOST_USER +sudo ./startup.sh + + +exit 0 diff --git a/jjb/iec/iec.yaml b/jjb/iec/iec.yaml index 8e2546b..c63f546 100644 --- a/jjb/iec/iec.yaml +++ b/jjb/iec/iec.yaml @@ -195,6 +195,8 @@ !include-raw-escape: ./iec-compass-build.sh - shell: !include-raw-escape: ./iec-compass-deploy.sh + - shell: + !include-raw-escape: ./iec-fdn-install.sh - shell: !include-raw-escape: ./iec-compass-destroy.sh - conditional-step: