6 echo "*** begin Compass4nfv build:"
8 # Fix docker-compose -> requests version mismatch with other
9 # Akraino CI jobs (installed requests should be >= 2.12)
10 sed -i "s/\(docker-compose\)==1.14.0/\1==1.24.1/g" deploy/prepare.sh
12 # Fix bug of getting IP address failure.
13 sed -i "s/inet addr:/inet /g" util/docker-compose/roles/compass/tasks/main.yml
14 sed -i "s/cut -d: -f2/cut -d ' ' -f10/g" util/docker-compose/roles/compass/tasks/main.yml
16 if [ ${HOST_ARCH} = 'aarch64' ]; then
17 curl -s http://people.linaro.org/~yibo.cai/compass/compass4nfv-arm64-fixup.sh | bash || true
20 ./build.sh |& tee log1-Build.txt
26 if [ -d "${WORKSPACE}/compass4nfv" ]; then
27 sudo rm -rf ${WORKSPACE}/compass4nfv
30 if [ -d "${WORKSPACE}/iec" ]; then
31 sudo rm -rf ${WORKSPACE}/iec
35 # Configure parameters of Arm VMs
37 # Remove the useless software list from software list( from line 28 to end).
38 sed -i '28,$d' deploy/adapters/ansible/kubernetes/ansible-kubernetes.yml
39 export ADAPTER_OS_PATTERN='(?i)ubuntu-16.04.*arm.*'
40 export OS_VERSION="xenial"
41 export KUBERNETES_VERSION="v1.13.0"
43 export DHA="deploy/conf/vm_environment/k8-nosdn-nofeature-noha.yml"
44 export NETWORK="deploy/conf/vm_environment/network.yml"
45 export VIRT_NUMBER=2 VIRT_CPUS=4 VIRT_MEM=4096 VIRT_DISK=50G
48 # Configure parameters of x86 VMs
50 export NETWORK="deploy/conf/vm_environment/network.yml"
51 export DHA="/deploy/conf/vm_environment/os-nosdn-nofeature-noha.yml"
52 export OS_VERSION="xenial"
53 export TAR_URL="file://${INSTALLDIR}/work/building/compass.tar.gz"
55 sed -i '44,$d' deploy/adapters/ansible/openstack/HA-ansible-multinodes.yml
57 sed -i '/export OPENSTACK_VERSION=queens/a export VIRT_NUMBER=2' deploy.sh
60 echo "*** begin AUTO install: OPNFV Compass4nfv"
62 # before starting, stop all the compass docker
63 sudo docker rm -f "$(sudo docker ps | grep compass | cut -f1 -d' ')" || true
65 # shellcheck disable=SC2164
66 WORKSPACE=$(cd "$(dirname "$0")";pwd)
70 git clone https://gerrit.opnfv.org/gerrit/compass4nfv
72 # prepare install directory
73 INSTALLDIR=${WORKSPACE}/compass4nfv
76 cd compass4nfv || exit
81 # Configure parameters of VMs
82 if [ ${HOST_ARCH} = 'aarch64' ]; then
88 # launch deploy script
89 echo "*** begin Compass4nfv deploy:"