Skip to content

Commit

Permalink
[doc] update docker image download method
Browse files Browse the repository at this point in the history
Change-Id: I7acfc3d39a8be13e150fe1c9ce85ec188bd1bf42
  • Loading branch information
charlesxzb committed Jun 21, 2024
1 parent cb4df20 commit f411c2b
Show file tree
Hide file tree
Showing 6 changed files with 61 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,19 @@ After cloning the code of this project, it needs to be compiled in docker.

``` shell
docker pull sophgo/tpuc_dev:latest
```

* If the pulling failed, you can download it in the following way:

``` shell
wget https://sophon-file.sophon.cn/sophon-prod-s3/drive/24/06/14/12/sophgo-tpuc_dev-v3.2_191a433358ad.tar.gz

docker load -i sophgo-tpuc_dev-v3.2_191a433358ad.tar.gz
```

* Create the container:

``` shell
# myname1234 is just an example, you can set your own name
docker run --privileged --name myname1234 -v $PWD:/workspace -it sophgo/tpuc_dev:latest
```
Expand Down
14 changes: 14 additions & 0 deletions README_cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,24 @@
``` shell
docker pull sophgo/tpuc_dev:latest

```

* 如果docker拉取失败,可通过以下方式进行下载:

``` shell
wget https://sophon-file.sophon.cn/sophon-prod-s3/drive/24/06/14/12/sophgo-tpuc_dev-v3.2_191a433358ad.tar.gz

docker load -i sophgo-tpuc_dev-v3.2_191a433358ad.tar.gz
```

* 创建所需镜像:

``` shell
# myname1234 just a example, you can set your own name
docker run --privileged --name myname1234 -v $PWD:/workspace -it sophgo/tpuc_dev:latest
```


容器建立后,代码在docker中的目录为`/workspace/tpu-mlir`

* 编译代码
Expand Down
9 changes: 9 additions & 0 deletions docs/developer_manual/source_en/02_environment.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,15 @@ Download the required image from DockerHub https://hub.docker.com/r/sophgo/tpuc_
$ docker pull sophgo/tpuc_dev:v3.2
If the pulling fails, you can download the required image file from the official website development materials https://developer.sophgo.com/site/index/material/86/all.html, or use the following command to download and load the image:

.. code-block:: shell
:linenos:
$ wget https://sophon-file.sophon.cn/sophon-prod-s3/drive/24/06/14/12/sophgo-tpuc_dev-v3.2_191a433358ad.tar.gz
$ docker load -i sophgo-tpuc_dev-v3.2_191a433358ad.tar.gz
If you are using docker for the first time, you can execute the following commands to install and configure it (only for the first time):


Expand Down
9 changes: 9 additions & 0 deletions docs/developer_manual/source_zh/02_environment.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,15 @@ TPU-MLIR在Docker环境开发, 配置好Docker就可以编译和运行了。
$ docker pull sophgo/tpuc_dev:v3.2
若下载失败,可从官网开发资料 https://developer.sophgo.com/site/index/material/86/all.html 下载所需镜像文件,或使用下方命令下载镜像:

.. code-block:: shell
:linenos:
$ wget https://sophon-file.sophon.cn/sophon-prod-s3/drive/24/06/14/12/sophgo-tpuc_dev-v3.2_191a433358ad.tar.gz
$ docker load -i sophgo-tpuc_dev-v3.2_191a433358ad.tar.gz
如果是首次使用Docker, 可执行下述命令进行安装和配置(仅首次执行):


Expand Down
9 changes: 9 additions & 0 deletions docs/quick_start/source_en/02_env.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,18 @@ If you do not meet the above system environment, you need to use Docker, downloa


.. code-block:: shell
:linenos:
$ docker pull sophgo/tpuc_dev:v3.2
If the pulling fails, you can download the required image file from the official website development materials https://developer.sophgo.com/site/index/material/86/all.html, or use the following command to download and load the image:

.. code-block:: shell
:linenos:
$ wget https://sophon-file.sophon.cn/sophon-prod-s3/drive/24/06/14/12/sophgo-tpuc_dev-v3.2_191a433358ad.tar.gz
$ docker load -i sophgo-tpuc_dev-v3.2_191a433358ad.tar.gz
If you are using docker for the first time, you can execute the following commands to install and configure it (only for the first time):

Expand Down
8 changes: 8 additions & 0 deletions docs/quick_start/source_zh/02_env.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@
$ docker pull sophgo/tpuc_dev:v3.2
若下载失败,可从官网开发资料 https://developer.sophgo.com/site/index/material/86/all.html 下载所需镜像文件,或使用下方命令下载镜像:

.. code-block:: shell
:linenos:
$ wget https://sophon-file.sophon.cn/sophon-prod-s3/drive/24/06/14/12/sophgo-tpuc_dev-v3.2_191a433358ad.tar.gz
$ docker load -i sophgo-tpuc_dev-v3.2_191a433358ad.tar.gz
如果是首次使用Docker, 可执行下述命令进行安装和配置(仅首次执行):

Expand Down

0 comments on commit f411c2b

Please sign in to comment.