From: Jingzhao.Ni Date: Wed, 26 Jun 2019 11:00:10 +0000 (+0800) Subject: Remove useless software when installing OS X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=commitdiff_plain;h=18435239b186f5d31552a91bfca7476610285f91;p=ci-management.git Remove useless software when installing OS In k8-nosdn-nofeature-noha.yml files, there is a list of software which are not essential for IEC prjects, it was removed for accelerating VM deployment speed. Signed-off-by: Jingzhao.Ni Change-Id: Ie74a63e565bd560deea4f2bb6e70d7384d65d476 --- diff --git a/jjb/iec/iec-compass-deploy.sh b/jjb/iec/iec-compass-deploy.sh index dca5a15..b5e0c58 100755 --- a/jjb/iec/iec-compass-deploy.sh +++ b/jjb/iec/iec-compass-deploy.sh @@ -6,7 +6,11 @@ cd compass4nfv # Create 3 virtual machine echo -e " - name: host3\n roles:\n - kube_node" >> deploy/conf/vm_environment/k8-nosdn-nofeature-noha.yml # Remove useless code -sed -i "33,90d" deploy/adapters/ansible/kubernetes/ansible-kubernetes.yml +# The ansible-kubernetes.yml file contains the list of softwares which will +# be installed on VM. But for IEC projects, some parts are not essnetial. So +# useless part will be removed. +# Delete some contents from line 28 to end. +sed -i '28,$d' deploy/adapters/ansible/kubernetes/ansible-kubernetes.yml export ADAPTER_OS_PATTERN='(?i)ubuntu-16.04.*arm.*' export OS_VERSION="xenial"