CI: Create simple Hello world build-vsperf.sh
[vswitchperf.git] / systems / CentOS / build_base_machine.sh
1 #!/bin/bash
2 #
3 # Build a base machine for CentOS distro
4 #
5 # Copyright 2015 OPNFV
6 #
7 # Licensed under the Apache License, Version 2.0 (the "License");
8 # you may not use this file except in compliance with the License.
9 # You may obtain a copy of the License at
10 #
11 #     http://www.apache.org/licenses/LICENSE-2.0
12 #
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
18 #
19 # Contributors:
20 #   Aihua Li, Huawei Technologies.
21 #   Martin Klozik, Intel Corporation.
22
23 # Synchronize package index files
24 yum -y update
25
26 # Install required packages
27 yum -y install $(echo "
28
29 # Make, Compilers and devel
30 make
31 gcc
32 gcc-c++
33 libxml2
34 glibc.i686
35 kernel-devel
36
37 # tools
38 wget
39 git
40 scl-utils
41 vim
42 curl
43 autoconf
44 libtool
45 automake
46 pciutils
47 cifs-utils
48 sysstat
49
50 # libs
51 libpcap-devel
52 libnet
53 fuse
54 fuse-libs
55 fuse-devel
56 zlib
57 zlib-devel
58 glib2-devel
59 pixman-devel
60 socat
61
62 # install gvim
63 vim-X11
64
65 # install epel release required for git-review
66 epel-release
67 " | grep -v ^#)
68
69 # install SCL for python33
70 wget https://www.softwarecollections.org/en/scls/rhscl/python33/epel-7-x86_64/download/rhscl-python33-epel-7-x86_64.noarch.rpm
71 rpm -i rhscl-python33-epel-7-x86_64.noarch.rpm
72
73 # install python33 packages and git-review tool
74 yum -y install $(echo "
75 python33
76 python33-python-tkinter
77 git-review
78 " | grep -v ^#)