summaryrefslogtreecommitdiffstats
path: root/src/arm/kubernetes_sriov/k8s-build.sh
diff options
context:
space:
mode:
authorBin Lu <bin.lu@arm.com>2018-02-08 01:59:57 -0500
committerBin Lu <bin.lu@arm.com>2018-02-08 02:00:45 -0500
commit073d9b661faa951055db48c27999454202f90b4f (patch)
treeafe8c2ea12a8a81ef8a9472cf0e50531ee14f83f /src/arm/kubernetes_sriov/k8s-build.sh
parent97b14e970658feeece72a6f7d705a3e50ed82a49 (diff)
enable sriov cni deployement in container4nfv
Change-Id: I55fb7a536539a26c1800f9cf4da1e61749ee3bca Signed-off-by: Bin Lu <bin.lu@arm.com>
Diffstat (limited to 'src/arm/kubernetes_sriov/k8s-build.sh')
-rwxr-xr-xsrc/arm/kubernetes_sriov/k8s-build.sh32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/arm/kubernetes_sriov/k8s-build.sh b/src/arm/kubernetes_sriov/k8s-build.sh
new file mode 100755
index 0000000..bc99e30
--- /dev/null
+++ b/src/arm/kubernetes_sriov/k8s-build.sh
@@ -0,0 +1,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/0004-add-a-multus-with-sriov-interfaces-installation.patch | git apply || true
+ touch "$WORKSPACE/patched"
+fi
+
+# build tarball
+COMPASS_ISO_REPO='http://people.linaro.org/~yibo.cai/compass' ./build.sh