68735714ce8e82682093e35bc40551c051e2d130
[barometer.git] / systems / centos / 7 / build_base_machine.sh
1 #!/bin/bash
2 #
3 # Build a base machine for CentOS distro
4 #
5 # Copyright 2017-2018 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 #   Maryam Tahhan, Intel Corporation.
23 # Synchronize package index files
24 yum -y update
25
26 # For collectd
27 yum install -y yum-utils
28 yum install -y epel-release
29 yum-builddep -y collectd
30
31 # Install required packages
32 yum -y install $(echo "
33
34 kernel-devel
35 kernel-headers
36 make
37 gcc
38 gcc-c++
39 autoconf
40 automake
41 flex
42 bison
43 libtool
44 pkg-config
45 git
46 rpm-build
47 libcap-devel
48 xfsprogs-devel
49 iptables-devel
50 libmemcached-devel
51 gtk2-devel
52 libvirt-devel
53 libvirt-daemon
54 mcelog
55 wget
56 net-snmp-devel
57
58 # install epel release required for git-review
59 epel-release
60 libvirt-python
61 python2-pip
62 " | grep -v ^#)