When deploying VMs on Ubuntu 18.04, the compass can not resolve the
host ip address correctly. It will cause the compass4nfv deploying
failed.
In this patch, it gets compass4nfv code from iecedge repository.
Some modification has been done for fixing those issues on specific
branch.
Signed-off-by: Jingzhao.Ni <Jingzhao.Ni@arm.com>
Change-Id: I86faffee4473ed2f6f36594a2b14be44f7b77191
-checkout_arm64(){
- VERSION="dcc6d07"
- git checkout ${VERSION}
- sed -i 's:opnfv/:cyb70289/:' build/build-aarch64.yaml
+ # Clean environment
+ sudo docker rm -f `sudo docker ps | grep compass | cut -f1 -d' '` || true
-check_env
-
-echo "begin build compass"
-git clone https://github.com/opnfv/compass4nfv.git
+ echo "Clone compass4nfv"
+ git clone -b CompassinAkrainoIEC https://github.com/iecedge/compass4nfv.git
-if [ "$(uname -m)" = 'aarch64' ]; then
- echo "Checkout compass4nfv to Arm64 version"
- checkout_arm64
-fi
-COMPASS_WORK_DIR=$WORKSPACE/../compass-work
+ COMPASS_WORK_DIR=$WORKSPACE/../compass-work
-mkdir -p $COMPASS_WORK_DIR
-ln -s $COMPASS_WORK_DIR work
+ mkdir -p $COMPASS_WORK_DIR
+ ln -snf $COMPASS_WORK_DIR work
-sudo docker rm -f `sudo docker ps | grep compass | cut -f1 -d' '` || true
-curl -sL http://people.linaro.org/~yibo.cai/compass/compass4nfv-arm64-fixup.sh | bash || true
+# Build compass
+build_compass
# Fix permissions so we can archive log files before pushing to Nexus
sudo chown $(id -u):$(id -g) -R "${WORKSPACE}"
# Fix permissions so we can archive log files before pushing to Nexus
sudo chown $(id -u):$(id -g) -R "${WORKSPACE}"