[ci] Update CentOS 8 container
[barometer.git] / systems / centos / 8 / 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 #   Emma Foley, Red Hat.
26 # Synchronize package index files
27 dnf -y update
28
29 # For collectd
30 dnf install -y yum-utils
31 dnf install -y centos-release-opstools
32
33 # For CentOS 8, a lot of the dependencies are from PowerTools repo
34 dnf install -y 'dnf-command(config-manager)' &&  dnf config-manager --set-enabled powertools
35
36 # Use collectd.spec from centos-opstools to install deps since
37 # ``dnf builddep -y collectd`` isn't finding collectd in centos-opstools
38 dnf builddep -y https://raw.githubusercontent.com/centos-opstools/collectd/master/collectd.spec
39
40 # Install required packages
41 dnf -y install $(echo "
42
43 make
44 gcc
45 gcc-c++
46 autoconf
47 automake
48 flex
49 bison
50 libtool
51 pkg-config
52 git-core
53 sudo
54 rpm-build
55 which
56 libcap-devel
57 xfsprogs-devel
58 iptables-devel
59 libmemcached-devel
60 gtk2-devel
61 libvirt-devel
62 libvirt-daemon
63 mcelog
64 wget
65 net-snmp-devel
66 hiredis-devel
67 libmicrohttpd-devel
68 jansson-devel
69 libpcap-devel
70 lua-devel
71 OpenIPMI-devel
72 libmnl-devel
73 librabbitmq-devel
74 iproute-static
75 libatasmart-devel
76 librdkafka-devel
77 yajl-devel
78 protobuf-c-devel
79 rrdtool-devel
80 dpdk-20.11
81 qpid-proton-c-devel
82
83 # ping collectd-6
84 liboping-devel
85
86 python3-pip
87 python36-devel
88 numactl-devel
89 intel-cmt-cat
90 intel-cmt-cat-devel
91 " | grep -v ^#)