Merge pull request #32426 from tchaikov/wip-qa-test_envlibrados_for_rocksdb.sh

qa: enable CRB repo for RHEL8

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
This commit is contained in:
Kefu Chai 2020-01-07 01:46:14 +08:00 committed by GitHub
commit 13acfe0491
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 18 deletions

View File

@ -50,15 +50,6 @@ function install_one() {
esac
}
function install_cmake3_on_centos7 {
source /etc/os-release
local MAJOR_VERSION="$(echo $VERSION_ID | cut -d. -f1)"
sudo yum-config-manager --add-repo https://dl.fedoraproject.org/pub/epel/$MAJOR_VERSION/x86_64/
sudo yum install --nogpgcheck -y epel-release
sudo rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-$MAJOR_VERSION
sudo yum install -y cmake3
}
function install_cmake3_on_xenial {
install_pkg_on_ubuntu \
ceph-cmake \

View File

@ -31,15 +31,18 @@ case $(distro_id) in
esac
;;
centos|fedora|rhel)
# el8 needs PowerTools for snappy-devel
test -x /usr/bin/dnf && sudo dnf config-manager --set-enabled PowerTools || true
install git gcc-c++.x86_64 snappy-devel zlib zlib-devel bzip2 bzip2-devel libradospp-devel.x86_64
if [ $(distro_id) = "fedora" ]; then
install cmake
else
install_cmake3_on_centos7
fi
;;
case $(distro_id) in
centos)
# centos needs PowerTools repo for snappy-devel
test -x /usr/bin/dnf && sudo dnf config-manager --set-enabled PowerTools || true
;;
rhel)
# RHEL needs CRB repo for snappy-devel
sudo subscription-manager repos --enable "codeready-builder-for-rhel-8-x86_64-rpms"
;;
esac
install git gcc-c++.x86_64 snappy-devel zlib zlib-devel bzip2 bzip2-devel libradospp-devel.x86_64 cmake
;;
opensuse*|suse|sles)
install git gcc-c++ snappy-devel zlib-devel libbz2-devel libradospp-devel
;;