[ci] Update DPDK package version
[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 epel-release
32 dnf install -y centos-release-opstools
33
34 # For CentOS 8, a lot of the dependencies are from PowerTools repo
35 dnf install -y 'dnf-command(config-manager)' &&  dnf config-manager --set-enabled powertools
36
37 dnf builddep -y collectd
38
39 # CentOS 8 doesn't have intel-cmt-cat-devel packaged, so use the version from CentOS7
40 dnf install -y http://mirror.centos.org/centos/7/os/x86_64/Packages/intel-cmt-cat-3.0.1-1.el7.x86_64.rpm \
41      http://mirror.centos.org/centos/7/os/x86_64/Packages/intel-cmt-cat-devel-3.0.1-1.el7.x86_64.rpm
42
43 # Install required packages
44 dnf -y install $(echo "
45
46 make
47 gcc
48 gcc-c++
49 autoconf
50 automake
51 flex
52 bison
53 libtool
54 pkg-config
55 git-core
56 sudo
57 rpm-build
58 libcap-devel
59 xfsprogs-devel
60 iptables-devel
61 libmemcached-devel
62 gtk2-devel
63 libvirt-devel
64 libvirt-daemon
65 mcelog
66 wget
67 net-snmp-devel
68 hiredis-devel
69 libmicrohttpd-devel
70 jansson-devel
71 libpcap-devel
72 lua-devel
73 OpenIPMI-devel
74 libmnl-devel
75 librabbitmq-devel
76 iproute-static
77 libatasmart-devel
78 librdkafka-devel
79 yajl-devel
80 protobuf-c-devel
81 rrdtool-devel
82 dpdk-20.11
83 qpid-proton-c-devel
84
85 # ping collectd-6
86 liboping-devel
87
88 #install epel release required for git-review
89 epel-release
90 python3-libvirt
91 python3-pip
92 python36-devel
93 numactl-devel
94 " | grep -v ^#)