diff --git a/paddle/scripts/docker/README.md b/paddle/scripts/docker/README.md index 7c90316ad82a6430d6c12d72e07b166b6d9d98a9..907904ddb14f956d422d1f2d0ec626e44af0672f 100644 --- a/paddle/scripts/docker/README.md +++ b/paddle/scripts/docker/README.md @@ -166,3 +166,17 @@ docker tag myapp me/myapp docker push kubectl ... ``` + +### Reading source code with woboq codebrowser +If you are interesting of PaddlePaddle source code, [Woboq codebrowser](https://github.com/woboq/woboq_codebrowser) is a suitable tool. +- Build PaddlePaddle source code to be static files + +```bash +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 +``` + +- 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://:8080/paddle" in browser. + +``` +docker run -v $HOME/nginx_data:/usr/share/nginx/html -d -p 8080:80 nginx +```