831a2d962c4378325a29b44cd50fb0310945fd97
[releng/builder.git] / vagrant / gbp-ubuntu-docker-ovs-node / 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-get update -qq
7 apt-get upgrade -y --force-yes -qq
8
9 echo "---> Installing Group Based Policy requirements"
10 apt-get install -y software-properties-common -qq
11 apt-get install -y python-software-properties -qq
12 apt-get install -y python-pip -qq
13 apt-get install -y python-virtualenv -qq
14 apt-get install -y git-core git -qq
15 apt-get install -y curl -qq
16 apt-get install -y bridge-utils -qq
17
18 # docker
19 curl -sSL https://get.docker.com/ | sh
20
21 # configure docker networking so that it does not conflict with LF internal networks
22 # configure docker daemon to listen on port 5555 enabling remote managment
23 cat <<EOL > /etc/default/docker
24 # /etc/default/docker
25 DOCKER_OPTS='-H unix:///var/run/docker.sock -H tcp://0.0.0.0:5555 --bip=10.250.0.254/24'
26 EOL
27 ip link set dev docker0 down
28 brctl delbr docker0
29 restart docker
30
31 # OVS
32 curl https://raw.githubusercontent.com/pritesh/ovs/nsh-v8/third-party/start-ovs-deb.sh | bash