[docker] Reduce the number of build steps in containers
[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-2021 Intel Corporation, Anuket and others.
6 # All rights reserved.
7 #
8 # Licensed under the Apache License, Version 2.0 (the "License");
9 # you may not use this file except in compliance with the License.
10 # You may obtain a copy of the License at
11 #
12 # http://www.apache.org/licenses/LICENSE-2.0
13 #
14 # Unless required by applicable law or agreed to in writing, software
15 # distributed under the License is distributed on an "AS IS" BASIS,
16 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 # See the License for the specific language governing permissions and
18 # limitations under the License.
19 #
20 #
21 # Contributors:
22 #   Aihua Li, Huawei Technologies.
23 #   Martin Klozik, Intel Corporation.
24 #   Maryam Tahhan, Intel Corporation.
25 # Synchronize package index files
26 yum -y update
27
28 # For collectd
29 yum install -y yum-utils
30 yum install -y epel-release
31 yum-builddep -y collectd
32
33 # Install required packages
34 yum -y install $(echo "
35
36 #kernel-devel
37 #kernel-headers
38 make
39 gcc
40 gcc-c++
41 autoconf
42 automake
43 flex
44 bison
45 libtool
46 pkg-config
47 git-core
48 sudo
49 rpm-build
50 libcap-devel
51 xfsprogs-devel
52 iptables-devel
53 libmemcached-devel
54 gtk2-devel
55 libvirt-devel
56 libvirt-daemon
57 mcelog
58 wget
59 net-snmp-devel
60 hiredis-devel
61 libmicrohttpd-devel
62 jansson-devel
63 libatasmart-devel
64 librdkafka-devel
65 yajl-devel
66 protobuf-c-devel
67 rrdtool-devel
68 intel-cat-cmt
69 dpdk-18.11
70 qpid-proton-c-devel
71
72 libvirt-python
73 python3-pip
74 numactl-devel
75 " | grep -v ^#)