Merge "Make netvirt use java-builder-4c-16g"
[releng/builder.git] / packer / provision / robot.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 # 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 -y @development \
12     python-devel \
13     python-setuptools \
14     python-virtualenv
15
16 # TODO: Move docker-py and netaddr to virtualenv in the csit jobs.
17 yum install -y python-docker-py \
18     python-netaddr
19
20 # Install dependencies for robotframework and robotframework-sshlibrary
21 # installed elsewhere
22 yum install -y yum-utils unzip sshuttle nc libffi-devel openssl-devel
23
24 # Install dependencies for matplotlib library used in longevity framework
25 yum install -y libpng-devel freetype-devel python-matplotlib
26
27 # install crudini command line tool for editing config files
28 yum install -y crudini
29
30 # Install dependency for postgres database used in storing performance plot results
31 yum -y install postgresql-devel
32
33 ################################
34 # LISPFLOWMAPPING REQUIREMENTS #
35 ################################
36
37 # Needed for pyangbind
38 yum install -y libxml2-devel libxslt-devel
39
40 # Install `udpreplay` to be used for (lispflowmapping) performance tests
41 yum install -y libpcap-devel boost-devel
42 git clone https://github.com/ska-sa/udpreplay.git
43 cd udpreplay
44 ./bootstrap.sh
45 ./configure
46 make &> /dev/null && cp udpreplay /usr/local/bin
47
48 ## Install docker-py and netaddr
49 yum install -y -q python-docker-py python-netaddr
50
51 #####################
52 # DLUX requirements #
53 #####################
54
55 #  - Xvfb: Display manager in RAM
56 #
57 # Note: The end goal will be to test with multiple browser (Firefox, Chrome)
58 #       Chrome need a other library named chromedriver so let start with
59 #       one already supported with selenium.
60 yum install -y firefox xorg-x11-server-Xvfb