Files
runner-images/images/macos/provision/core/mongodb.sh
Maksim Shilov d127e51bf4 [MacOS] Pin MongoDB to the specific version defined in the toolset (#4452)
* Define mongodb version installed in the toolset
* Searching for latest version of a tool based on a toolset version
2021-11-11 16:14:27 +03:00

15 lines
524 B
Bash

#!/bin/bash -e -o pipefail
source ~/utils/utils.sh
# MongoDB object-value database
# Install latest release version of MongoDB Community Edition
# https://docs.mongodb.com/manual/tutorial/install-mongodb-on-os-x
toolsetVersion=$(get_toolset_value '.mongodb.version')
brew tap mongodb/brew
versionToInstall=$(brew search --formulae /mongodb-community@$toolsetVersion/ | awk -F'/' '{print $3}' | tail -1)
echo "Installing mongodb $versionToInstall"
brew_smart_install "$versionToInstall"
invoke_tests "Databases" "MongoDB"