summaryrefslogtreecommitdiffstats
path: root/src/cni/ovsdpdk/build_cni_ovsdpdk.sh
diff options
context:
space:
mode:
authorGuo Ruijing <ruijing.guo@intel.com>2017-08-01 14:44:21 -0700
committerGuo Ruijing <ruijing.guo@intel.com>2017-08-01 14:46:09 -0700
commitf2b811df691ded8deb1bf4c1a54ac65d886d3a18 (patch)
tree8cfb1a5e8f9c97de206a530dabfcb1bf31074248 /src/cni/ovsdpdk/build_cni_ovsdpdk.sh
parentdc766e69c0c08c55b6df2384bbcfd1e712f03160 (diff)
add ovsdpdk cni
Change-Id: Id3eba33d3b33deee815596c0a56bbe77954e2214 Signed-off-by: Guo Ruijing <ruijing.guo@intel.com>
Diffstat (limited to 'src/cni/ovsdpdk/build_cni_ovsdpdk.sh')
-rwxr-xr-xsrc/cni/ovsdpdk/build_cni_ovsdpdk.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/cni/ovsdpdk/build_cni_ovsdpdk.sh b/src/cni/ovsdpdk/build_cni_ovsdpdk.sh
new file mode 100755
index 0000000..71318d8
--- /dev/null
+++ b/src/cni/ovsdpdk/build_cni_ovsdpdk.sh
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+set -ex
+
+sudo apt-get update
+sudo apt-get install -y docker.io devscripts git
+wget -qO- https://storage.googleapis.com/golang/go1.8.3.linux-amd64.tar.gz | sudo tar -C /usr/local -xz
+echo 'export GOPATH=/go; export PATH=/usr/local/go/bin:$GOPATH/bin:$PATH' >> ~/.bashrc
+export GOPATH=/go; export PATH=/usr/local/go/bin:$GOPATH/bin:$PATH
+git clone https://github.com/containernetworking/cni
+echo sudo CNI_PATH=$CNI_PATH ./priv-net-run.sh ifconfig
+git clone https://github.com/containernetworking/plugins
+cd plugins
+git checkout 5544d9ced0d6e908fe26e9dbe529c7feb87d21f5
+patch -p1 < /vagrant/ovsdpdk.patch
+./build.sh
+cd bin
+cp /vagrant/* .
+sudo docker build -t openretriever/cni-ovsdpdk .