Skip to content

Latest commit

 

History

History
35 lines (29 loc) · 1.65 KB

DeployByDocker.md

File metadata and controls

35 lines (29 loc) · 1.65 KB

Vearch Compile and Deploy

Docker Deploy

Docker Hub Image Center

  1. vearch base compile environment image address: https://hub.docker.com/r/vearch/vearch-dev-env/tags
  2. vearch deploy image address: https://hub.docker.com/r/vearch/vearch/tags

Use Vearch Image Deploy

  1. If deploying a docker start vearch, master, ps, and router start together
cp vearch/config/config.toml .
nohup docker run -p 8817:8817 -p 9001:9001 -v $PWD/config.toml:/vearch/config.toml vearch/vearch:latest all &
  1. If distributed deploy, modify vearch/config/config.toml and start separately.
  2. Modify vearch/config/config.toml, refer to the step Local Model
  3. Start separate image, modify step 1 all to master and ps and router, master image must first start

Use Base Image Compile And Deploy

  1. take vearch-dev-env:latest as an example
  2. docker build -f cloud/Dockerfile -t vearch/vearch:latest .
  3. reference Use vearch image deploy step 3

Use Script Create Base Image And Vearch Image

  1. build compile base environment image
    1. go to $vearch/cloud/env dir
    2. run docker build -t vearch/vearch-dev-env:latest . you will get an image named vearch-dev-env
  2. build vearch image run docker build -f cloud/Dockerfile -t vearch/vearch:latest . you will get an image named vearch good luck
  3. how to use it
    1. you can use docker run -it -v config.toml:/vearch/config.toml vearch all to start vearch by local model the last param has four types [ps, router, master, all] all means tree type to start
  4. One-click build vearch image
    1. go to $vearch/cloud dir
    2. you can run ./run_docker.sh