`
liunancun
  • 浏览: 34015 次
社区版块
存档分类
最新评论

Docker安装Milvus

 
阅读更多
mkdir -p /home/data/milvus/conf
cd /home/data/milvus/conf
wget https://raw.githubusercontent.com/milvus-io/milvus/v1.0.0/core/conf/demo/server_config.yaml

docker run -d --name milvus \
-p 19530:19530 \
-p 19121:19121 \
-v /home/data/milvus/db:/var/lib/milvus/db \
-v /home/data/milvus/conf:/var/lib/milvus/conf \
-v /home/data/milvus/logs:/var/lib/milvus/logs \
-v /home/data/milvus/wal:/var/lib/milvus/wal \
milvusdb/milvus:1.0.0-cpu-d030521-1ea92e

mkdir -p /home/data/milvus/pic1
mkdir -p /home/data/milvus/pic2

docker run -d --name pic_search_webserver \
-v /home/data/milvus/pic1:/tmp/pic1 \
-v /home/data/milvus/pic2:/tmp/pic2 \
-p 35000:5000 \
-e "DATA_PATH=/tmp/images-data" \
-e "MILVUS_HOST=192.168.99.240" \
milvusbootcamp/pic-search-webserver:1.0

docker run --name pic_search_webclient -d --rm -p 8001:80 \
-e API_URL=http://192.168.99.240:35000 \
milvusbootcamp/pic-search-webclient:1.0

============================新版本============================

wget -P /home/data/milvus/conf https://raw.githubusercontent.com/milvus-io/milvus/v1.1.1/core/conf/demo/server_config.yaml

docker pull milvusdb/milvus:1.1.1-cpu-d061621-330cc6

docker run -d --name milvus \
-p 19530:19530 \
-p 19121:19121 \
-v /home/data/milvus/db:/var/lib/milvus/db \
-v /home/data/milvus/conf:/var/lib/milvus/conf \
-v /home/data/milvus/logs:/var/lib/milvus/logs \
-v /home/data/milvus/wal:/var/lib/milvus/wal \
milvusdb/milvus:1.1.1-cpu-d061621-330cc6

docker run -d -p 3000:80 --name milvus_em milvusdb/milvus-em

docker run -d -p 3306:3306 -e MYSQL_ROOT_PASSWORD=123456 --name mysql mysql:5.7

mkdir -p /home/data/milvus/pic1
mkdir -p /home/data/milvus/pic2

docker pull milvusbootcamp/img-search-server:1.0

docker run -d --name img_search_server \
-v /home/data/milvus/pic1:/tmp/pic1 \
-v /home/data/milvus/pic2:/tmp/pic2 \
-p 5000:5000 \
-e "MILVUS_HOST=192.168.99.240" \
-e "MYSQL_HOST=192.168.99.240" \
milvusbootcamp/img-search-server:1.0

docker pull milvusbootcamp/img-search-client:1.0

docker run -d -p 8001:80 --name img_search_client \
-e API_URL=http://192.168.99.240:5000 \
milvusbootcamp/img-search-client:1.0

============================构建镜像============================

git clone https://github.com/liunancun/bootcamp.git

cd ./bootcamp/solutions/reverse_image_search/quick_deploy/server

wget -P ./src/data/models/resnet50_weights_tf_dim_ordering_tf_kernels_notop.h5 https://storage.googleapis.com/tensorflow/keras-applications/resnet/resnet50_weights_tf_dim_ordering_tf_kernels_notop.h5

docker build -t liunancun/img-search-server .

docker login -u liunancun -p lnc19881206

docker push liunancun/img-search-server

docker pull liunancun/img-search-server

docker run -d --name img_search_server \
-v /home/data/milvus/pic1:/tmp/pic1 \
-v /home/data/milvus/pic2:/tmp/pic2 \
-p 5000:5000 \
-e "MILVUS_HOST=192.168.99.240" \
-e "MYSQL_HOST=192.168.99.240" \
liunancun/img-search-server
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics