From 450fb7c87abc63be7bf1109e08fe4190a879c047 Mon Sep 17 00:00:00 2001 From: Flook Peter Date: Fri, 14 Jun 2024 12:43:01 +0800 Subject: [PATCH] Add in default server URL to automatically connect to uc server --- bin/uc-docker | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/uc-docker b/bin/uc-docker index d312a1649..147563053 100755 --- a/bin/uc-docker +++ b/bin/uc-docker @@ -21,5 +21,6 @@ quoted_args_str="${quoted_args[*]}" # echo "Quoted arguments: $quoted_args_str" CLI_JAVA_COMMAND="java -cp unitycatalog-cli.jar io.unitycatalog.cli.UnityCatalogCli" +SERVER_URL=${SERVER_URL:-http://localhost:8081} # echo "Running command: $CLI_JAVA_COMMAND" -eval "$CLI_JAVA_COMMAND" "$quoted_args_str" || exit +eval "$CLI_JAVA_COMMAND" --server "$SERVER_URL" "$quoted_args_str" || exit