6 echo "*** begin Compass4nfv build:"
8 # Fix bug of getting IP address failure.
9 sed -i "s/inet addr:/inet /g" util/docker-compose/roles/compass/tasks/main.yml
10 sed -i "s/cut -d: -f2/cut -d ' ' -f10/g" util/docker-compose/roles/compass/tasks/main.yml
12 if [ ${HOST_ARCH} = 'aarch64' ]; then
13 curl -s http://people.linaro.org/~yibo.cai/compass/compass4nfv-arm64-fixup.sh | bash || true
16 ./build.sh |& tee log1-Build.txt
22 if [ -d "${WORKSPACE}/compass4nfv" ]; then
23 sudo rm -rf ${WORKSPACE}/compass4nfv
26 if [ -d "${WORKSPACE}/iec" ]; then
27 sudo rm -rf ${WORKSPACE}/iec
31 # Configure parameters of Arm VMs
33 # Remove the useless software list from software list( from line 28 to end).
34 sed -i '28,$d' deploy/adapters/ansible/kubernetes/ansible-kubernetes.yml
35 export ADAPTER_OS_PATTERN='(?i)ubuntu-16.04.*arm.*'
36 export OS_VERSION="xenial"
37 export KUBERNETES_VERSION="v1.13.0"
39 export DHA="deploy/conf/vm_environment/k8-nosdn-nofeature-noha.yml"
40 export NETWORK="deploy/conf/vm_environment/network.yml"
41 export VIRT_NUMBER=2 VIRT_CPUS=4 VIRT_MEM=4096 VIRT_DISK=50G
44 # Configure parameters of x86 VMs
46 export NETWORK="deploy/conf/vm_environment/network.yml"
47 export DHA="/deploy/conf/vm_environment/os-nosdn-nofeature-noha.yml"
48 export OS_VERSION="xenial"
49 export TAR_URL="file://${INSTALLDIR}/work/building/compass.tar.gz"
51 sed -i '44,$d' deploy/adapters/ansible/openstack/HA-ansible-multinodes.yml
53 sed -i '/export OPENSTACK_VERSION=queens/a export VIRT_NUMBER=2' deploy.sh
56 echo "*** begin AUTO install: OPNFV Compass4nfv"
58 # before starting, stop all the compass docker
59 sudo docker rm -f "$(sudo docker ps | grep compass | cut -f1 -d' ')" || true
61 # shellcheck disable=SC2164
62 WORKSPACE=$(cd "$(dirname "$0")";pwd)
66 git clone https://gerrit.opnfv.org/gerrit/compass4nfv
68 # prepare install directory
69 INSTALLDIR=${WORKSPACE}/compass4nfv
72 cd compass4nfv || exit
77 # Configure parameters of VMs
78 if [ ${HOST_ARCH} = 'aarch64' ]; then
84 # launch deploy script
85 echo "*** begin Compass4nfv deploy:"