[skip ci]Update offline installation doc format (#9215)

Signed-off-by: Weida Zhu <weida.zhu@zilliz.com>
This commit is contained in:
zwd1208 2021-10-04 19:22:09 +08:00 committed by GitHub
parent b244ef2147
commit 0b08cda599
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,45 +9,45 @@ Milvus installation may fail when images are not properly loaded from public Doc
#### If you install Milvus with the **docker-compose.yml** file, use these commands:
#### 1. Download Milvus standalone docker-compose.yml
```shell
wget https://raw.githubusercontent.com/milvus-io/milvus/master/deployments/docker/standalone/docker-compose.yml -O docker-compose.yml
```
```shell
wget https://raw.githubusercontent.com/milvus-io/milvus/master/deployments/docker/standalone/docker-compose.yml -O docker-compose.yml
```
&nbsp;&nbsp;&nbsp; or download Milvus cluster docker-compose.yml
&nbsp;&nbsp;&nbsp; or download Milvus cluster docker-compose.yml
```shell
wget https://raw.githubusercontent.com/milvus-io/milvus/master/deployments/docker/cluster/docker-compose.yml -O docker-compose.yml
```
```shell
wget https://raw.githubusercontent.com/milvus-io/milvus/master/deployments/docker/cluster/docker-compose.yml -O docker-compose.yml
```
#### 2. Pull and save Docker images
```shell
pip3 install -r requirements.txt
python3 save_image.py --manifest docker-compose.yml
```
```shell
pip3 install -r requirements.txt
python3 save_image.py --manifest docker-compose.yml
```
#### If you install Milvus with **Helm**, use these command:
#### 1. Update Helm repo
```shell
helm repo add milvus https://milvus-io.github.io/milvus-helm/
helm repo update
```
```shell
helm repo add milvus https://milvus-io.github.io/milvus-helm/
helm repo update
```
#### 2. Get Kubernetes manifests of Milvus standalone
```shell
helm template my-release milvus/milvus > milvus_manifest.yaml
```
```shell
helm template my-release milvus/milvus > milvus_manifest.yaml
```
&nbsp;&nbsp;&nbsp;or get Kubernetes manifests of Milvus cluster
&nbsp;&nbsp;&nbsp;or get Kubernetes manifests of Milvus cluster
```shell
helm template --set cluster.enabled=true my-release milvus/milvus > milvus_manifest.yaml
```
```shell
helm template --set cluster.enabled=true my-release milvus/milvus > milvus_manifest.yaml
```
#### 3. Pull and save Docker images
```shell
pip3 install -r requirements.txt
python3 save_image.py --manifest milvus_manifest.yaml
```
```shell
pip3 install -r requirements.txt
python3 save_image.py --manifest milvus_manifest.yaml
```
The Docker images will be stored under **images** directory.