mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-04-18 21:44:02 +03:00
helper to install foundationdb locally
This commit is contained in:
parent
b155354d40
commit
75f95d3a6b
@ -126,6 +126,10 @@ install_deps()
|
||||
yum -y install cmake
|
||||
fi
|
||||
if [ $OS = 'Rocky' ]; then
|
||||
if [[ "$OS_VERSION" == "9" ]]; then
|
||||
dnf install -y 'dnf-command(config-manager)'
|
||||
dnf config-manager --set-enabled crb
|
||||
fi
|
||||
yum -y groupinstall "Development Tools" && yum config-manager --set-enabled powertools
|
||||
yum install -y checkpolicy
|
||||
fi
|
||||
|
@ -61,7 +61,7 @@ MACRO(SETA var)
|
||||
ENDFOREACH()
|
||||
ENDMACRO(SETA)
|
||||
|
||||
SETA(CPACK_RPM_columnstore--engine_PACKAGE_PROVIDES "MariaDB-columnstore-engine")
|
||||
SETA(CPACK_RPM_columnstore-engine_PACKAGE_PROVIDES "MariaDB-columnstore-engine")
|
||||
|
||||
#boost is a source build in CentOS 6 so don't require it as a package
|
||||
SET(REDHAT_VERSION_NUMBER OFF)
|
||||
|
45
tests/scripts/install_fdb.sh
Executable file
45
tests/scripts/install_fdb.sh
Executable file
@ -0,0 +1,45 @@
|
||||
#!/bin/bash
|
||||
|
||||
SCRIPT_LOCATION=$(dirname "$0")
|
||||
|
||||
. /etc/os-release
|
||||
|
||||
case "$VERSION_CODENAME" in
|
||||
focal)
|
||||
OS_SHORTNAME=ubuntu20.04
|
||||
;;
|
||||
jammy)
|
||||
OS_SHORTNAME=ubuntu22.04
|
||||
;;
|
||||
noble)
|
||||
OS_SHORTNAME=ubuntu24.04
|
||||
;;
|
||||
esac
|
||||
|
||||
case "$PLATFORM_ID" in
|
||||
platform:el8)
|
||||
OS_SHORTNAME=rockylinux8
|
||||
;;
|
||||
platform:el9)
|
||||
OS_SHORTNAME=rockylinux8
|
||||
;;
|
||||
esac
|
||||
|
||||
PACKAGES_URL="https://cspkg.s3.amazonaws.com/FoundationDB" OS=$OS_SHORTNAME sudo -E $SCRIPT_LOCATION/../../setup-repo.sh mariadb-columnstore-foundationdb
|
||||
|
||||
install_for_deb() {
|
||||
sudo apt install -y "$@"
|
||||
}
|
||||
|
||||
install_for_rpm() {
|
||||
sudo yum install -y "$@"
|
||||
}
|
||||
|
||||
if [ -f /etc/redhat-release ]; then
|
||||
install_for_rpm "foundationdb-clients foundationdb-server"
|
||||
elif [ -f /etc/debian_version ]; then
|
||||
install_for_deb "foundationdb-clients foundationdb-server"
|
||||
else
|
||||
echo "Unsupported distribution. This script only supports RPM-based and DEB-based systems."
|
||||
exit 1
|
||||
fi
|
Loading…
x
Reference in New Issue
Block a user