mirror of https://github.com/milvus-io/milvus.git
change default db path
Former-commit-id: ed8bbeb2ca73c5d2d4e4ec8b837cb948f18362fdpull/191/head
parent
f57033725b
commit
61aedb86cc
|
@ -141,7 +141,12 @@ endif(BUILD_UNIT_TEST)
|
||||||
|
|
||||||
add_custom_target(Clean-All COMMAND ${CMAKE_BUILD_TOOL} clean)
|
add_custom_target(Clean-All COMMAND ${CMAKE_BUILD_TOOL} clean)
|
||||||
|
|
||||||
set(MILVUS_PATH "/tmp/milvus")
|
|
||||||
|
if("${MILVUS_DB_PATHE}" STREQUAL "")
|
||||||
|
set(MILVUS_PATH "/tmp/milvus")
|
||||||
|
else()
|
||||||
|
set(MILVUS_PATH ${MILVUS_DB_PATHE})
|
||||||
|
endif()
|
||||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/conf/server_config.template ${CMAKE_CURRENT_SOURCE_DIR}/conf/server_config.yaml)
|
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/conf/server_config.template ${CMAKE_CURRENT_SOURCE_DIR}/conf/server_config.yaml)
|
||||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/conf/log_config.template ${CMAKE_CURRENT_SOURCE_DIR}/conf/log_config.conf)
|
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/conf/log_config.template ${CMAKE_CURRENT_SOURCE_DIR}/conf/log_config.conf)
|
||||||
|
|
||||||
|
|
|
@ -6,6 +6,7 @@ LICENSE_CHECK="OFF"
|
||||||
INSTALL_PREFIX=$(pwd)/milvus
|
INSTALL_PREFIX=$(pwd)/milvus
|
||||||
MAKE_CLEAN="OFF"
|
MAKE_CLEAN="OFF"
|
||||||
BUILD_COVERAGE="OFF"
|
BUILD_COVERAGE="OFF"
|
||||||
|
DB_PATH="/opt/milvus"
|
||||||
|
|
||||||
while getopts "p:t:uhlrc" arg
|
while getopts "p:t:uhlrc" arg
|
||||||
do
|
do
|
||||||
|
@ -71,6 +72,7 @@ if [[ ${MAKE_CLEAN} == "ON" ]]; then
|
||||||
-DCMAKE_CUDA_COMPILER=${CUDA_COMPILER} \
|
-DCMAKE_CUDA_COMPILER=${CUDA_COMPILER} \
|
||||||
-DCMAKE_LICENSE_CHECK=${LICENSE_CHECK} \
|
-DCMAKE_LICENSE_CHECK=${LICENSE_CHECK} \
|
||||||
-DBUILD_COVERAGE=${BUILD_COVERAGE} \
|
-DBUILD_COVERAGE=${BUILD_COVERAGE} \
|
||||||
|
-DMILVUS_DB_PATHE=${DB_PATH} \
|
||||||
$@ ../"
|
$@ ../"
|
||||||
echo ${CMAKE_CMD}
|
echo ${CMAKE_CMD}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue