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