milvus/scripts
XuanYang-cn a2289d3ce6 Add softTimeTickBarrier and hardTimeTickBarrier
Signed-off-by: XuanYang-cn <xuan.yang@zilliz.com>
2020-11-11 16:41:53 +08:00
..
before-install.sh Refactor the build and scripts folders 2020-10-24 11:36:42 +08:00
core_build.sh Add Meta table implementation 2020-11-04 16:28:14 +08:00
install_deps.sh Refactor the build and scripts folders 2020-10-24 11:36:42 +08:00
proto_gen_go.sh Fix proxy bug 2020-11-09 17:52:47 +08:00
README.md Add softTimeTickBarrier and hardTimeTickBarrier 2020-11-11 16:41:53 +08:00
run_cpp_unittest.sh Run unittest in CI 2020-11-09 18:47:37 +08:00
run_go_unittest.sh Add code coverage for go files 2020-11-10 15:56:57 +08:00

Compile and install milvus-dustributed

Environment

    OS: Ubuntu 18.04
    go1.15
    cmake: >=3.16
    gcc 7.5

Install dependencies

    sudo apt install -y g++ gcc make libssl-dev zlib1g-dev libboost-regex-dev \
    libboost-program-options-dev libboost-system-dev libboost-filesystem-dev \
    libboost-serialization-dev python3-dev libboost-python-dev libcurl4-openssl-dev gfortran libtbb-dev

    export GO111MODULE=on
    go get github.com/golang/protobuf/protoc-gen-go@v1.3.2

Install OpenBlas library

    wget https://github.com/xianyi/OpenBLAS/archive/v0.3.9.tar.gz && \
    tar zxvf v0.3.9.tar.gz && cd OpenBLAS-0.3.9 && \
    make TARGET=CORE2 DYNAMIC_ARCH=1 DYNAMIC_OLDER=1 USE_THREAD=0 USE_OPENMP=0 FC=gfortran CC=gcc COMMON_OPT="-O3 -g -fPIC" FCOMMON_OPT="-O3 -g -fPIC -frecursive" NMAX="NUM_THREADS=128" LIBPREFIX="libopenblas" LAPACKE="NO_LAPACKE=1" INTERFACE64=0 NO_STATIC=1 && \
    make PREFIX=/usr install

Compile

Generate the go files from proto file

    cd milvus-distributed
    pwd_dir=`pwd`
    export PATH=$PATH:$(go env GOPATH)/bin
    export protoc=${pwd_dir}/internal/core/cmake_build/thirdparty/protobuf/protobuf-build/protoc
    ./ci/scripts/proto_gen_go.sh

Check code specifications

    make verifiers

Compile

    make all

Start service

    cd deployments
    docker-compose up -d

Run unittest

    make unittest