summaryrefslogtreecommitdiffstats
path: root/src/cni/ovsdpdk/build.sh
blob: fad1abc6b37ed1062b2287fb028883b337d53a80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
set -ex

HOME="$(dirname `readlink -f $0`)"
PWD="$(pwd)"

cd $HOME
sudo apt-get install -y docker.io
sudo docker rmi -f cniovsdpdk.build || true
sudo docker build -t cniovsdpdk.build . -f Dockerfile.build
sudo docker run -v $HOME/cni:/build -t cniovsdpdk.build cp /plugins/bin/ovsdpdk /build
sudo docker build -t openretriever/cnicniovsdpdk . -f Dockerfile.cniovsdpdk
sudo rm -rf $HOME/cni/ovsdpdk
echo git clone https://github.com/containernetworking/cni
echo sudo CNI_PATH=$CNI_PATH ./priv-net-run.sh ifconfig
echo sudo docker login openretriever/cnicniovsdpdk -u user -p password
echo sudo docker push openretriever/cnicniovsdpdk
cd $PWD