[container][collectd] Update barometer-collectd container for CentOS 8
[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-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 libmicrohttpd-devel
60 jansson-devel
61 libatasmart-devel
62 librdkafka-devel
63 yajl-devel
64 protobuf-c-devel
65 rrdtool-devel
66 intel-cat-cmt
67 dpdk-18.11
68 qpid-proton-c-devel
69
70 libvirt-python
71 python3-pip
72 numactl-devel
73 " | grep -v ^#)