@@ -119,7 +119,7 @@ The general development workflow with Docker and Bazel is as follows:
119119
120120 .. code-block :: bash
121121
122- git clone --recursive https://github.com/paddlepaddle/paddle
122+ git clone --recursive https://github.com/paddlepaddle/paddle
123123
124124
125125 1. Build a development Docker image `paddle:dev ` from the source code.
@@ -129,8 +129,8 @@ The general development workflow with Docker and Bazel is as follows:
129129
130130 .. code-block :: bash
131131
132- cd paddle
133- docker build -t paddle:dev -f paddle/scripts/docker/Dockerfile .
132+ cd paddle
133+ docker build -t paddle:dev -f paddle/scripts/docker/Dockerfile .
134134
135135
136136 1. Run the image as a container and mounting local source code
@@ -139,34 +139,34 @@ The general development workflow with Docker and Bazel is as follows:
139139
140140 .. code-block :: bash
141141
142- docker run \
143- -d # run the container in background mode \
144- --name paddle # we can run a nginx container to serve documents \
145- -p 2022:22 # so we can SSH into this container \
146- -v $PWD:/paddle # mount the source code \
147- -v $HOME/.cache/bazel:/root/.cache/bazel # mount Bazel cache \
148- paddle:dev
142+ docker run \
143+ -d # run the container in background mode \
144+ --name paddle # we can run a nginx container to serve documents \
145+ -p 2022:22 # so we can SSH into this container \
146+ -v $PWD :/paddle # mount the source code \
147+ -v $HOME /.cache/bazel:/root/.cache/bazel # mount Bazel cache \
148+ paddle:dev
149149
150150 1. SSH into the container:
151151
152152 .. code-block :: bash
153153
154- ssh root@localhost -p 2022
154+ ssh root@localhost -p 2022
155155
156156 1. We can edit the source code in the container or on this host. Then
157157 we can build using cmake
158158
159159 .. code-block :: bash
160160
161- cd /paddle # where paddle source code has been mounted into the container
162- mkdir -p build
163- cd build
164- cmake ..
165- make -j `nproc `
161+ cd /paddle # where paddle source code has been mounted into the container
162+ mkdir -p build
163+ cd build
164+ cmake ..
165+ make -j ` nproc`
166166
167167 or Bazel in the container:
168168
169169 .. code-block :: bash
170170
171- cd /paddle
172- bazel build ...
171+ cd /paddle
172+ bazel build ...
0 commit comments