Switch to use new ovs nsh version
[groupbasedpolicy.git] / demos / gbpsfc-env / bootstrap.sh
1 #!/bin/bash
2
3 # vim: sw=4 ts=4 sts=4 et tw=72 :
4
5 echo "---> Updating operating system"
6 apt update -qq
7
8 echo "---> Installing Group Based Policy requirements"
9 apt install -y software-properties-common -qq
10 apt install -y python-software-properties -qq
11 apt install -y python-pip -qq
12 apt install -y git-core git -qq
13 apt install -y curl -qq
14 # docker
15 curl -sSL https://get.docker.com/ | sh
16
17 cat <<EOL > /etc/default/docker
18   DOCKER_NETWORK_OPTIONS='--bip=10.250.0.254/24'
19 EOL
20
21 docker pull alagalah/odlpoc_ovs230
22 # OVS
23 curl https://raw.githubusercontent.com/yyang13/ovs_nsh_patches/master/start-ovs-deb.sh | bash
24
25 # this part is just for local spinup DON'T copy it to releng bootstrap.sh
26 pip install ipaddr
27 echo "export PATH=$PATH:/vagrant" >> /home/vagrant/.profile
28 echo "export ODL="$1 >> /home/vagrant/.profile
29 usermod -aG docker vagrant
30