Skip to content

Commit

Permalink
enhance: [skip e2e] Add configuration file detection functionality to…
Browse files Browse the repository at this point in the history
… the standalone_embed script. (#40246)

enhance: Add configuration file detection functionality to the
standalone_embed script.
issue:#40066

Signed-off-by: Linkwei <[email protected]>
  • Loading branch information
Linkwei authored Feb 28, 2025
1 parent dc46b08 commit 0a4e7b5
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
11 changes: 10 additions & 1 deletion scripts/standalone_embed.bat
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,15 @@ echo auto-compaction-retention: '1000'
echo # Extra config to override default milvus.yaml
) > user.yaml

if not exist "embedEtcd.yaml" (
echo embedEtcd.yaml file does not exist. Please try to create it in the current directory.
exit /b 1
)
if not exist "user.yaml" (
echo user.yaml file does not exist. Please try to create it in the current directory.
exit /b 1
)

docker run -d ^
--name milvus-standalone ^
--security-opt seccomp:unconfined ^
Expand All @@ -70,7 +79,7 @@ docker run -d ^
--health-start-period=90s ^
--health-timeout=20s ^
--health-retries=3 ^
milvusdb/milvus:v2.4.13 ^
milvusdb/milvus:v2.5.5 ^
milvus run standalone >nul
if %errorlevel% neq 0 (
echo Failed to start Milvus container.
Expand Down
13 changes: 12 additions & 1 deletion scripts/standalone_embed.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,18 @@ EOF
cat << EOF > user.yaml
# Extra config to override default milvus.yaml
EOF
if [ ! -f "./embedEtcd.yaml" ]
then
echo "embedEtcd.yaml file does not exist. Please try to create it in the current directory."
exit 1
fi

if [ ! -f "./user.yaml" ]
then
echo "user.yaml file does not exist. Please try to create it in the current directory."
exit 1
fi

sudo docker run -d \
--name milvus-standalone \
--security-opt seccomp:unconfined \
Expand All @@ -47,7 +58,7 @@ EOF
--health-start-period=90s \
--health-timeout=20s \
--health-retries=3 \
milvusdb/milvus:v2.5.4 \
milvusdb/milvus:v2.5.5 \
milvus run standalone 1> /dev/null
}

Expand Down

0 comments on commit 0a4e7b5

Please sign in to comment.