Skip to content

Commit

Permalink
chore(scripts): update install script (#16355)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwannoel authored Apr 17, 2024
1 parent d2c2885 commit 142fdf6
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions scripts/install/install-risingwave.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,9 @@ fi
STATE_STORE_PATH="${HOME}/.risingwave/state_store"
META_STORE_PATH="${HOME}/.risingwave/meta_store"

VERSION="v1.7.0-standalone"
# TODO(kwannoel): re-enable it once we have stable release in latest for single node mode.
#VERSION=$(curl -s https://api.github.com/repos/risingwavelabs/risingwave/releases/latest \
# | grep '.tag_name' \
# | sed -E -n 's/.*(v[0-9]+.[0-9]+.[0-9])\",/\1/p')
HOMEBREW_VERSION="1.7-standalone"
VERSION=$(curl -s https://api.github.com/repos/risingwavelabs/risingwave/releases/latest \
| grep '.tag_name' \
| sed -E -n 's/.*(v[0-9]+.[0-9]+.[0-9])\",/\1/p')

BASE_URL="https://github.com/risingwavelabs/risingwave/releases/download"

Expand Down Expand Up @@ -51,11 +48,11 @@ fi

############# BREW INSTALL
if [ "${USE_BREW}" -eq 1 ]; then
echo "Installing RisingWave@${HOMEBREW_VERSION} using Homebrew."
echo "Installing RisingWave@${VERSION} using Homebrew."
brew tap risingwavelabs/risingwave
brew install risingwave@${HOMEBREW_VERSION}
brew install risingwave
echo
echo "Successfully installed RisingWave@${HOMEBREW_VERSION} using Homebrew."
echo "Successfully installed RisingWave@${VERSION} using Homebrew."
echo
echo "Run RisingWave:"
echo
Expand Down Expand Up @@ -107,5 +104,4 @@ if [ -z "${JAVA_HOME}" ]; then
tput setaf 3
echo "WARNING: Java is required to use RisingWave's Java Connectors (e.g. MySQL)."
echo "Please install Java, and set the \$JAVA_HOME environment variable."
fi
# TODO(kwannoel): Include link to our docs.
fi

0 comments on commit 142fdf6

Please sign in to comment.