Skip to content

Commit

Permalink
Add --skip-debezium flag in installer script to avoid installing debe…
Browse files Browse the repository at this point in the history
…zium when only offline setup is required (#2109)
  • Loading branch information
sanyamsinghal authored Dec 23, 2024
1 parent ecb4c05 commit 81c30b0
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions installer_scripts/install-yb-voyager
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ LOG_FILE=/tmp/install-yb-voyager.log
VERSION="latest"

ONLY_PG="false"
SKIP_DEBEZIUM="false"

trap on_exit EXIT

Expand Down Expand Up @@ -323,14 +324,18 @@ check_java() {
}

install_debezium_server(){
if [ $SKIP_DEBEZIUM == "true" ] ; then
return
fi

if [ "${VERSION}" != "local" ]
then
output "Installing debezium:${DEBEZIUM_VERSION}"
install_debezium_server_from_release
return
fi
output "Installing debezium:${VERSION}."

output "Installing debezium:${VERSION}."
check_install_maven
clean_debezium
install_debezium_local ${DEBEZIUM_LOCAL_REF}
Expand Down Expand Up @@ -538,9 +543,9 @@ rebuild_voyager_local() {
get_passed_options() {
if [ "$1" == "linux" ]
then
OPTS=$(getopt -o "lpvV", --long install-from-local-source,only-pg-support,rebuild-voyager-local,version: --name 'install-yb-voyager' -- $ARGS_LINUX)
OPTS=$(getopt -o "lpdvV", --long install-from-local-source,only-pg-support,skip-debezium,rebuild-voyager-local,version: --name 'install-yb-voyager' -- $ARGS_LINUX)
else
OPTS=$(getopt lpvV $ARGS_MACOS)
OPTS=$(getopt lpdvV $ARGS_MACOS)
fi

eval set -- "$OPTS"
Expand All @@ -555,6 +560,10 @@ get_passed_options() {
ONLY_PG="true";
shift
;;
-d | --skip-debezium )
SKIP_DEBEZIUM="true"
shift
;;
-v | --rebuild-voyager-local )
REBUILD_VOYAGER_LOCAL="true";
shift
Expand Down

0 comments on commit 81c30b0

Please sign in to comment.