Merge "GBP Vagrant setup for Ubuntu VM"
[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 yum update -q -y
7
8 # Install minimal python requirements to get virtualenv going
9 # Additional python dependencies should be installed via JJB configuration
10 # inside project jobs using a virtualenv setup.
11 yum install -q -y python-{devel,setuptools,virtualenv}
12
13 # Install `udpreplay` to be used for (lispflowmapping) performance tests
14 yum install -q -y libpcap-devel boost-devel
15 git clone https://github.com/ska-sa/udpreplay.git &> /dev/null
16 cd udpreplay
17 make &> /dev/null && cp udpreplay /usr/local/bin
18
19 # To handle the prompt style that is expected all over the environment
20 # with how use use robotframework we need to make sure that it is
21 # consistent for any of the users that are created during dynamic spin
22 # ups
23 echo 'PS1="[\u@\h \W]> "' >> /etc/skel/.bashrc