enhance: hotfix container network (#30390)

Signed-off-by: Sammy Huang <sammy.huang@zilliz.com>
pull/30353/head
sammy.huang 2024-01-31 09:35:04 +08:00 committed by GitHub
parent eddcc362cf
commit df2dc7617c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 3 deletions

View File

@ -2,9 +2,6 @@
set -euo pipefail
# hot fix for docker-compose.yml, force builder service to use host network
sed -i '/builder:/,/^\s*$/s/image: \${IMAGE_REPO}\/milvus-env:\${OS_NAME}-\${DATE_VERSION}/&\n network_mode: "host"/' docker-compose.yml
# Absolute path to the toplevel milvus directory.
toplevel=$(dirname "$(cd "$(dirname "${0}")"; pwd)")

View File

@ -245,6 +245,10 @@ export HUB="${HUB:-milvusdb}"
export CI="true"
# hot fix for docker-compose.yml, force builder service to use host network
sed -i '/builder:/,/^\s*$/s/image: \${IMAGE_REPO}\/milvus-env:\${OS_NAME}-\${DATE_VERSION}/&\n network_mode: "host"/' $ROOT/docker-compose.yml
if [[ ! -d "${ARTIFACTS}" ]];then
mkdir -p "${ARTIFACTS}"
fi