Merge "move heat-stack delete to include shell script"
[releng/builder.git] / packer / provision / mininet-ovs-2.5.sh
1 #!/bin/bash
2
3 # vim: sw=4 ts=4 sts=4 et tw=72 :
4
5 # force any errors to cause the script and job to end in failure
6 set -xeu -o pipefail
7
8 # Ensure that necessary variables are set to enable noninteractive mode in
9 # commands.
10 export DEBIAN_FRONTEND=noninteractive
11
12 # To handle the prompt style that is expected all over the environment
13 # with how use use robotframework we need to make sure that it is
14 # consistent for any of the users that are created during dynamic spin
15 # ups
16 echo 'PS1="[\u@\h \W]> "' >> /etc/skel/.bashrc
17
18 echo '---> Install OpenVSwitch 2.5.0'
19 add-apt-repository -y ppa:sgauthier/openvswitch-dpdk
20 apt-get update -y --force-yes
21 apt-get install -y --force-yes openvswitch-switch openvswitch-vtep
22
23 echo '---> Installing mininet 2.2.1'
24 git clone git://github.com/mininet/mininet
25 cd mininet
26 git checkout -b 2.2.1 2.2.1
27 cd ..
28 mininet/util/install.sh -nf
29
30 echo '---> Installing MT-Cbench'
31 apt-get install -y --force-yes build-essential snmp libsnmp-dev snmpd libpcap-dev \
32 autoconf make automake libtool libconfig-dev libssl-dev libffi-dev libssl-doc pkg-config
33 git clone https://github.com/intracom-telecom-sdn/mtcbench.git
34 mtcbench/build_mtcbench.sh
35 cp mtcbench/oflops/cbench/cbench /usr/local/bin/
36
37 echo '---> Installing exabgp'
38 apt-get install -y --force-yes exabgp
39
40 echo '---> All Python package installation should happen in virtualenv'
41 apt-get install -y --force-yes python-virtualenv python-pip