Add scapy and udpreplay to robot Vagrant image
[releng/builder.git] / vagrant / integration-robotframework / bootstrap.sh
1 #!/bin/bash
2
3 # vim: sw=4 ts=4 sts=4 et tw=72 :
4
5 yum clean all
6 # Add the ODL yum repo
7 yum install -q -y https://nexus.opendaylight.org/content/repositories/opendaylight-yum-epel-6-x86_64/rpm/opendaylight-release/0.1.0-1.el6.noarch/opendaylight-release-0.1.0-1.el6.noarch.rpm
8 yum update -q -y
9
10 yum install -q -y java-1.7.0-openjdk-devel git perl-XML-XPath
11
12 # The following are known requirements for our robotframework environments
13 yum install -q -y python-{devel,importlib,requests,setuptools,virtualenv,docker-py} \
14     robotframework{,-{httplibrary,requests,sshlibrary}} scapy
15
16 # Install `udpreplay` to be used for (lispflowmapping) performance tests
17 yum install -q -y libpcap-devel boost-devel
18 git clone https://github.com/ska-sa/udpreplay.git &> /dev/null
19 cd udpreplay
20 make &> /dev/null && cp udpreplay /usr/local/bin
21
22 # To handle the prompt style that is expected all over the environment
23 # with how use use robotframework we need to make sure that it is
24 # consistent for any of the users that are created during dynamic spin
25 # ups
26 echo 'PS1="[\u@\h \W]> "' >> /etc/skel/.bashrc