Skip to content

Commit 587a05e

Browse files
committed
reading source code with woboq
1 parent 929090e commit 587a05e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

paddle/scripts/docker/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,3 +166,17 @@ docker tag myapp me/myapp
166166
docker push
167167
kubectl ...
168168
```
169+
170+
### Reading source code with woboq codebrowser
171+
If you are interesting of PaddlePaddle source code, [Woboq codebrowser](https://github.com/woboq/woboq_codebrowser) is a suitable tool.
172+
- Build PaddlePaddle source code to be static files
173+
174+
```bash
175+
docker run -v $PWD:/paddle -v $HOME/nginx_data:/usr/share/nginx/html/data -v $HOME/nginx_data/paddle:/usr/share/nginx/html/paddle -e "WITH_GPU=OFF" -e "WITH_AVX=ON" -e "WITH_TEST=OFF" -e "RUN_TEST=OFF" -e "BUILD_WOBOQ=ON" paddle:dev
176+
```
177+
178+
- Open the generated static files in a browser, or upload these files to your web server. You can run nginx server as the following command, and then hit "http://<hostip>:8080/paddle" in browser.
179+
180+
```
181+
docker run -v $HOME/nginx_data:/usr/share/nginx/html -d -p 8080:80 nginx
182+
```

0 commit comments

Comments
 (0)