https://github.com/milvus-io/milvus/blob/master/DEVELOPMENT.md
# Install third-party dependencies.
$ cd milvus/
$ ./scripts/install_deps.sh
# Compile Milvus.
$ make
# method 1: run a command in a built docker container
build/builder.sh make
# method 2: get into a dev container to make milvus
./scripts/devcontainer.sh up
docker-compose -f docker-compose-devcontainer.yml ps
docker exec -ti milvus-builder-1 bash
make milvus
Brew: Unexpected Disconnect while reading sideband packet
==> Tapping homebrew/core
remote: Enumerating objects: 1107077, done.
remote: Counting objects: 100% (228/228), done.
remote: Compressing objects: 100% (157/157), done.
error: 545 bytes of body are still expected.44 MiB | 341.00 KiB/s
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: index-pack failed
Failed during: git fetch --force origin refs/heads/master:refs/remotes/origin/master
myuser~ %
git config --global http.postBuffer 1M
git config --global user.email xxxgit config --global user.name xxx
Docker: error getting credentials - err: exit status 1, out: ``
Python: No module named 'imp' Python 3.12已移除imp模块,目前需要降级到Python 3.11。
Conan: Unrecognized arguments: --install-folder conan 请将Conan版本更改为1.61。
Conan command not found 通过在bash中导出Python的bin路径来解决 export PATH="/path/to/python/bin:$PATH"
Llvm: use of undeclared identifier 'kSecFormatOpenSSL'
brew reinstall llvm@15
export LDFLAGS="-L/opt/homebrew/opt/llvm@15/lib"
export CPPFLAGS="-I/opt/homebrew/opt/llvm@15/include"
{
"go.toolsEnvVars": {
"PKG_CONFIG_PATH": "/Users/zilliz/milvus/internal/core/output/lib/pkgconfig:/Users/zilliz/workspace/milvus/internal/core/output/lib64/pkgconfig",
"LD_LIBRARY_PATH": "/Users/zilliz/workspace/milvus/internal/core/output/lib:/Users/zilliz/workspace/milvus/internal/core/output/lib64",
"RPATH": "/Users/zilliz/workspace/milvus/internal/core/output/lib:/Users/zilliz/workspace/milvus/internal/core/output/lib64"
},
"go.testEnvVars": {
"PKG_CONFIG_PATH": "/Users/zilliz/workspace/milvus/internal/core/output/lib/pkgconfig:/Users/zilliz/workspace/milvus/internal/core/output/lib64/pkgconfig",
"LD_LIBRARY_PATH": "/Users/zilliz/workspace/milvus/internal/core/output/lib:/Users/zilliz/workspace/milvus/internal/core/output/lib64",
"RPATH": "/Users/zilliz/workspace/milvus/internal/core/output/lib:/Users/zilliz/workspace/milvus/internal/core/output/lib64"
},
"go.buildFlags": [
"-ldflags=-r /Users/zilliz/workspace/milvus/internal/core/output/lib"
],
"terminal.integrated.env.linux": {
"PKG_CONFIG_PATH": "/Users/zilliz/workspace/milvus/internal/core/output/lib/pkgconfig:/Users/zilliz/workspace/milvus/internal/core/output/lib64/pkgconfig",
"LD_LIBRARY_PATH": "/Users/zilliz/workspace/milvus/internal/core/output/lib:/Users/zilliz/workspace/milvus/internal/core/output/lib64",
"RPATH": "/Users/zilliz/workspace/milvus/internal/core/output/lib:/Users/zilliz/workspace/milvus/internal/core/output/lib64"
},
"go.useLanguageServer": true,
"gopls": {
"formatting.gofumpt": true
},
"go.formatTool": "gofumpt",
"go.lintTool": "golangci-lint",
"go.testTags": "dynamic",
"go.testTimeout": "10m"
}
Milvus:核心功能组件。 Etcd:元数据引擎,访问和存储Milvus内部组件的元数据。 MinIO:存储引擎,负责Milvus的数据持久化。
sudo docker-compose -f deployments/docker/dev/docker-compose.yml up -d
bash ./scripts/start_standalone.sh
https://milvus.io/docs/install_cluster-milvusoperator.md
https://github.com/milvus-io/milvus/blob/master/DEVELOPMENT.md#e2e-tests
cd tests/python_client
pip install -r requirements.txt
pytest --tags=L0 -n auto
https://github.com/milvus-io/milvus/issues
Fork Milvus到你的仓库 克隆到本地并切出新分支 提交你的代码:通过在提交中添加“signed-off-by”信息进行提交
git commit -m "Commit of your change" -s
https://github.com/milvus-io/milvus/blob/master/CONTRIBUTING.md