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