diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index 626a66ea25..16ea039141 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -19,7 +19,8 @@ Milvus is written in Go and C++, compiling it can use a lot of resources. We rec In fact, all Linux distributions is available to develop Milvus. The following only contains commands on Ubuntu, because we mainly use it. If you develop Milvus on other distributions, you are welcome to improve this document. -#### Debian/Ubuntu +#### Dependencies +- Debian/Ubuntu ```shell sudo apt update @@ -29,6 +30,21 @@ sudo apt install -y build-essential ccache gfortran \ libboost-filesystem-dev libboost-serialization-dev libboost-python-dev ``` +- CentOS + +```shell +sudo yum install -y epel-release centos-release-scl-rh \ + && sudo yum install -y make automake openssl-devel zlib-devel tbb-devel \ + libcurl-devel python3-devel boost-devel boost-python \ + devtoolset-7-gcc devtoolset-7-gcc-c++ devtoolset-7-gcc-gfortran \ + llvm-toolset-7.0-clang llvm-toolset-7.0-clang-tools-extra + +echo "source scl_source enable devtoolset-7" | sudo tee -a /etc/profile.d/devtoolset-7.sh +echo "source scl_source enable llvm-toolset-7.0" | sudo tee -a /etc/profile.d/llvm-toolset-7.sh +echo "export CLANG_TOOLS_PATH=/opt/rh/llvm-toolset-7.0/root/usr/bin" | sudo tee -a /etc/profile.d/llvm-toolset-7.sh +source "/etc/profile.d/llvm-toolset-7.sh" +``` + Once you have finished, confirm that `gcc` and `make` are installed: ```shell @@ -100,16 +116,19 @@ Milvus uses Python SDK to write test cases to verify the correctness of Milvus f #### Standalone ```shell -cd deployments/docker/standalone +cd deployments/docker/dev docker-compose up -d cd ../../../ -./bin/milvus run standalone +./scripts/start_standalone.sh ``` #### Cluster ```shell -./scripts/start.sh +cd deployments/docker/dev +docker-compose up -d +cd ../../../ +./scripts/start_cluster.sh ``` To run E2E tests, use these command: diff --git a/INSTALL.md b/INSTALL.md deleted file mode 100644 index 8e8bf6d33d..0000000000 --- a/INSTALL.md +++ /dev/null @@ -1,76 +0,0 @@ -# Build and Start Milvus from Source Code - -This article describes how to build and start Milvus Standalone and Cluster from source code. - -- [Prerequisites](#prerequisites) -- [Build Milvus](#build-milvus) -- [Start Milvus](#start-milvus) - -## Prerequisites - -Install the following before building Milvus from source code. - -- [Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git) for version control. -- [Golang](https://golang.org/doc/install) version 1.15 or higher and associated toolkits. -- [CMake](https://cmake.org/install/) version 3.14 or higher for compilation. -- [OpenBLAS](https://github.com/xianyi/OpenBLAS/wiki/Installation-Guide) (Basic Linear Algebra Subprograms) library version 0.3.9 or higher for matrix operations. - - - -## Build Milvus - -1. Clone Milvus' GitHub repository: - -``` -$ cd /home/$USER -$ git clone https://github.com/milvus-io/milvus.git -``` - -2. Install third-party dependencies: - -``` -$ cd milvus -$ ./scripts/install_deps.sh -``` - -3. Compile executed binary for Milvus: - -``` -$ make milvus -``` - -## Start Milvus - -1. Start infrastructure services: - -``` -$ cd /home/$USER/milvus/deployments/docker/dev -$ sudo docker-compose up -d -``` - -2. Start Milvus: - -- For Milvus Standalone - -``` -$ cd /home/$USER/milvus -./bin/milvus run standalone > /tmp/standalone.log 2>&1 & -``` - -- For Milvus Cluster: - -``` -$ cd /home/$USER/milvus -#start RootCoord -./bin/milvus run rootcoord > /tmp/rootcoord.log 2>&1 & -#start coord -./bin/milvus run datacoord > /tmp/datacoord.log 2>&1 & -./bin/milvus run indexcoord > /tmp/indexcoord.log 2>&1 & -./bin/milvus run querycoord > /tmp/querycoord.log 2>&1 & -#start node -./bin/milvus run proxy > /tmp/proxy.log 2>&1 & -./bin/milvus run datanode > /tmp/data_node.log 2>&1 & -./bin/milvus run indexnode > /tmp/index_node.log 2>&1 & -./bin/milvus run querynode > /tmp/query_node.log 2>&1 & -``` - diff --git a/README.md b/README.md index 6c15947bdf..76a93363c3 100644 --- a/README.md +++ b/README.md @@ -14,8 +14,8 @@