blob: 23d1d31c55337b034ed3950923c9858e7fdf03bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#!/bin/bash
set -e
sudo apt-get install -y docker.io libvirt-bin virt-manager qemu qemu-efi
WORKSPACE=`pwd`
if [ ! -d "$WORKSPACE/compass4nfv" ]; then
git clone https://gerrit.opnfv.org/gerrit/compass4nfv
fi
cd compass4nfv
WORKSPACE=`pwd`
COMPASS_WORK_DIR=$WORKSPACE/../compass-work
mkdir -p $COMPASS_WORK_DIR
if [ ! -d "$WORKSPACE/work" ]; then
ln -s $COMPASS_WORK_DIR work
fi
#TODO: remove workaround after patches merged
if [ ! -f "$WORKSPACE/patched" ]; then
git checkout a360411cb8c775dffa24a4157cec2b566cbde6f3
curl http://people.linaro.org/~yibo.cai/compass/0001-deploy-cobbler-drop-tcp_tw_recycle-in-sysctl.conf.patch | git apply || true
curl http://people.linaro.org/~yibo.cai/compass/0002-docker-compose-support-aarch64.patch | git apply || true
curl http://people.linaro.org/~yibo.cai/compass/0003-add-a-multus-with-2-fannel-interfaces-installation.patch | git apply || true
touch "$WORKSPACE/patched"
fi
# build tarball
COMPASS_ISO_REPO='http://people.linaro.org/~yibo.cai/compass' ./build.sh
|