mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-11-29 10:28:41 +08:00
enhance: get environment variable from .env (#34081)
Signed-off-by: Liang Huang <sammy.huang@zilliz.com>
This commit is contained in:
parent
e1b64e2318
commit
b77ab76d74
@ -23,6 +23,11 @@ set -x
|
||||
|
||||
# Absolute path to the toplevel milvus directory.
|
||||
toplevel=$(dirname "$(cd "$(dirname "${0}")"; pwd)")
|
||||
if [[ -f "$toplevel/.env" ]]; then
|
||||
set -a # automatically export all variables from .env
|
||||
source $toplevel/.env
|
||||
set +a # stop automatically exporting
|
||||
fi
|
||||
|
||||
OS_NAME="${OS_NAME:-ubuntu20.04}"
|
||||
MILVUS_IMAGE_REPO="${MILVUS_IMAGE_REPO:-milvusdb/milvus}"
|
||||
|
Loading…
Reference in New Issue
Block a user