diff options
Diffstat (limited to 'src/cni/ovsdpdk/build_cni.sh')
-rw-r--r-- | src/cni/ovsdpdk/build_cni.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/cni/ovsdpdk/build_cni.sh b/src/cni/ovsdpdk/build_cni.sh new file mode 100644 index 0000000..dbb3dd5 --- /dev/null +++ b/src/cni/ovsdpdk/build_cni.sh @@ -0,0 +1,13 @@ +#!/bin/bash +set -ex + +sudo apt-get update +sudo apt-get install -y docker.io devscripts git jq +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/plugins +cd plugins +git checkout 5544d9ced0d6e908fe26e9dbe529c7feb87d21f5 +patch -p1 < ../ovsdpdk.patch +bash ./build.sh |