|
|
|
@ -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
|
|
|
|
|
```
|
|
|
|
|
上面脚本完成了如下两个功能:
|
|
|
|
|