Skip to content

Commit 190e429

Browse files
committed
add some comments
1 parent 81e0f5a commit 190e429

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

paddle/scripts/docker/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ docker build -t paddle:dev --build-arg UBUNTU_MIRROR=mirror://mirrors.ubuntu.com
9494
Given the development image `paddle:dev`, the following command builds PaddlePaddle from the source tree on the development computer (host):
9595

9696
```bash
97-
docker run --rm -v $PWD:/paddle -e "WITH_GPU=OFF" -e "WITH_AVX=ON" -e "WITH_TEST=OFF" -e "RUN_TEST=OFF" paddle:dev
97+
docker run --rm -v $PWD:/paddle -e "WITH_GPU=OFF" -e "WITH_AVX=ON" -e "WITH_TESTING=OFF" -e "RUN_TEST=OFF" paddle:dev
9898
```
9999

100100
This command mounts the source directory on the host into `/paddle` in the container, so the default entry point of `paddle:dev`, `build.sh`, could build the source code with possible local changes. When it writes to `/paddle/build` in the container, it writes to `$PWD/build` on the host indeed.

paddle/scripts/docker/build.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ fi
4444
make install
4545
pip install /usr/local/opt/paddle/share/wheels/*.whl
4646

47+
# Since python v2 api import py_paddle module, the generation of paddle docs
48+
# depend on paddle's compilation and installation
4749
if [ ${WITH_DOC} == "ON" ]; then
4850
mkdir -p /paddle/build_doc
4951
pushd /paddle/build_doc

0 commit comments

Comments
 (0)