[docker] Reduce the number of build steps in containers
[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-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 #   Emma Foley, Red Hat.
26 # Synchronize package index files
27 yum -y update
28
29 # For collectd
30 yum install -y yum-utils
31 yum install -y epel-release
32 yum-builddep -y collectd
33
34 # Install required packages
35 yum -y install $(echo "
36
37 kernel-devel
38 kernel-headers
39 make
40 gcc
41 gcc-c++
42 autoconf
43 automake
44 flex
45 bison
46 libtool
47 pkg-config
48 git-core
49 sudo
50 rpm-build
51 libcap-devel
52 xfsprogs-devel
53 iptables-devel
54 libmemcached-devel
55 gtk2-devel
56 libvirt-devel
57 libvirt-daemon
58 mcelog
59 wget
60 net-snmp-devel
61 hiredis-devel
62
63 # install epel release required for git-review
64 epel-release
65 " | grep -v ^#)
66