blob: d4d2ecf2f3fe70e081638122a6a79e406d298cda (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/bash
set -ex
export PATH=/usr/local/go/bin:$PATH
DIR="$(dirname `readlink -f $0`)"
apt-get update && apt-get install -y git wget gcc
wget -qO- https://storage.googleapis.com/golang/go1.8.3.linux-amd64.tar.gz | tar -C /usr/local/ -xz
rm -rf plugins
git clone https://github.com/containernetworking/plugins
cd plugins
git checkout 5544d9ced0d6e908fe26e9dbe529c7feb87d21f5
mkdir plugins/main/ovsdpdk
cp $DIR/ovsdpdk.go plugins/main/ovsdpdk
sed -i "s,PLUGINS=.*,PLUGINS=plugins/main/ovsdpdk," build.sh
./build.sh
mkdir -p /opt/cni/bin
cp bin/ovsdpdk /opt/cni/bin
cp $DIR/setup_ovsdpdk.sh $DIR/teardown_ovsdpdk.sh /opt/cni/bin
|