pull/1903/head
Yang Zhou 3 years ago
parent 06a01b03a2
commit 86de61250e

@ -28,6 +28,7 @@ sudo docker run --privileged --net=host --ipc=host -it --rm -v $PWD:/paddle --n
### 2. demo
* run websocket_server.sh. This script will download resources and libs, and launch the service.
```
cd /paddle
bash websocket_server.sh
```
this script run in two steps:

@ -19,14 +19,15 @@
### 1. 配置环境
安装paddle:2.2.2 docker镜像。
```
sudo nvidia-docker pull registry.baidubce.com/paddlepaddle/paddle:2.2.2
sudo docker pull registry.baidubce.com/paddlepaddle/paddle:2.2.2
sudo nvidia-docker run --privileged --net=host --ipc=host -it --rm -v $PWD:/paddle --name=paddle_demo_docker registry.baidubce.com/paddlepaddle/paddle:2.2.2 /bin/bash
sudo docker run --privileged --net=host --ipc=host -it --rm -v $PWD:/paddle --name=paddle_demo_docker registry.baidubce.com/paddlepaddle/paddle:2.2.2 /bin/bash
```
### 2. 演示
* 运行如下命令,完成相关资源和库的下载和服务启动。
```
cd /paddle
bash websocket_server.sh
```
上面脚本完成了如下两个功能:

Loading…
Cancel
Save