Add git-review to centos systems
[releng/builder.git] / packer / provision / robot.sh
1 #!/bin/bash
2
3 # vim: sw=4 ts=4 sts=4 et tw=72 :
4
5 # Install minimal python requirements to get virtualenv going
6 # Additional python dependencies should be installed via JJB configuration
7 # inside project jobs using a virtualenv setup.
8 yum install -y python-{devel,setuptools,virtualenv} @development
9
10 # Needed to parse OpenStack commands used by opendaylight-infra stack commands
11 # to initialize Heat template based systems.
12 yum install -y jq
13
14 # Install dependencies for robotframework and robotframework-sshlibrary
15 # installed elsewhere
16 yum install -y yum-utils unzip sshuttle nc libffi-devel openssl-devel
17
18 # Install dependencies for matplotlib library used in longevity framework
19 yum install -y libpng-devel freetype-devel python-matplotlib
20
21 # install crudini command line tool for editing config files
22 yum install -y crudini
23
24 # Install dependency for postgres database used in storing performance plot results
25 yum -y install postgresql-devel
26
27 ################################
28 # LISPFLOWMAPPING REQUIREMENTS #
29 ################################
30
31 # Needed for pyangbind
32 yum install -y libxml2-devel libxslt-devel
33
34 # Install `udpreplay` to be used for (lispflowmapping) performance tests
35 yum install -y libpcap-devel boost-devel
36 git clone https://github.com/ska-sa/udpreplay.git
37 cd udpreplay
38 ./bootstrap.sh
39 ./configure
40 make &> /dev/null && cp udpreplay /usr/local/bin
41
42 #####################
43 # DLUX requirements #
44 #####################
45
46 #  - Xvfb: Display manager in RAM
47 #
48 # Note: The end goal will be to test with multiple browser (Firefox, Chrome)
49 #       Chrome need a other library named chromedriver so let start with
50 #       one already supported with selenium.
51 yum install -y firefox xorg-x11-server-Xvfb