File tree Expand file tree Collapse file tree 5 files changed +33
-9
lines changed
doc/getstarted/build_and_install Expand file tree Collapse file tree 5 files changed +33
-9
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ Windows -- in a consistent way.
42
42
43
43
.. code-block :: bash
44
44
45
- docker run -d -p 2202:22 -v $PWD :/paddle paddle:dev
45
+ docker run -d -p 2202:22 -p 8888:8888 - v $PWD :/paddle paddle:dev
46
46
47
47
This runs a container of the development environment Docker image
48
48
with the local source tree mounted to :code: `/paddle ` of the
@@ -82,6 +82,29 @@ Windows -- in a consistent way.
82
82
cd /paddle/build
83
83
ctest
84
84
85
+ 4. Run PaddlePaddle Book under Docker Container
86
+
87
+ The Jupyter Notebook is an open-source web application that allows
88
+ you to create and share documents that contain live code, equations,
89
+ visualizations and explanatory text in a single browser.
90
+
91
+ PaddlePaddle Book is an interactive Jupyter Notebook for users and developers.
92
+ We already exposed port 8888 for this book. If you want to
93
+ dig deeper into deep learning, PaddlePaddle Book definitely is your best choice.
94
+
95
+ Once you are inside the container, simply issue the command:
96
+
97
+ .. code-block :: bash
98
+
99
+ jupyter notebook
100
+
101
+ Then, you would back and paste the address into the local browser:
102
+
103
+ .. code-block :: text
104
+
105
+ http://localhost:8888/
106
+
107
+ That's all. Enjoy your journey!
85
108
86
109
CPU-only and GPU Images
87
110
-----------------------
Original file line number Diff line number Diff line change @@ -34,6 +34,8 @@ RUN apt-get update && \
34
34
35
35
# git credential to skip password typing
36
36
RUN git config --global credential.helper store
37
+ # fetch PaddlePaddle book
38
+ RUN git submodule update --init --recursive
37
39
38
40
# Fix locales to en_US.UTF-8
39
41
RUN localedef -i en_US -f UTF-8 en_US.UTF-8
@@ -60,9 +62,7 @@ RUN sed -ri 's/^PermitRootLogin\s+.*/PermitRootLogin yes/' /etc/ssh/sshd_config
60
62
RUN sed -ri 's/UsePAM yes/#UsePAM yes/g' /etc/ssh/sshd_config
61
63
EXPOSE 22
62
64
63
- # Jupyter Notebook directory.
64
- RUN mkdir /notes/
65
- WORKDIR "/notes"
65
+ # Jupyter Notebook: Paddle book
66
66
EXPOSE 8888
67
67
68
68
COPY ./paddle/scripts/docker/entrypoint /opt/bin/
Original file line number Diff line number Diff line change @@ -34,6 +34,8 @@ RUN apt-get update && \
34
34
35
35
# git credential to skip password typing
36
36
RUN git config --global credential.helper store
37
+ # fetch PaddlePaddle book
38
+ RUN git submodule update --init --recursive
37
39
38
40
# Fix locales to en_US.UTF-8
39
41
RUN localedef -i en_US -f UTF-8 en_US.UTF-8
@@ -60,9 +62,7 @@ RUN sed -ri 's/^PermitRootLogin\s+.*/PermitRootLogin yes/' /etc/ssh/sshd_config
60
62
RUN sed -ri 's/UsePAM yes/#UsePAM yes/g' /etc/ssh/sshd_config
61
63
EXPOSE 22
62
64
63
- # Jupyter Notebook directory.
64
- RUN mkdir /notes/
65
- WORKDIR "/notes"
65
+ # Jupyter Notebook: Paddle book
66
66
EXPOSE 8888
67
67
68
68
COPY ./paddle/scripts/docker/entrypoint /opt/bin/
Original file line number Diff line number Diff line change @@ -17,7 +17,8 @@ if [[ ${BUILD_AND_INSTALL:-OFF} == 'ON' ]]; then
17
17
fi
18
18
19
19
mkdir -p /paddle/build # -p means no error if exists
20
- cd /paddle/build
20
+ # clean local cmake and third_party cache
21
+ cd /paddle/build && rm -rf * && rm -rf ../third_party
21
22
cmake .. \
22
23
-DWITH_DOC=${WITH_DOC:- OFF} \
23
24
-DWITH_GPU=${WITH_GPU:- OFF} \
Original file line number Diff line number Diff line change @@ -4,5 +4,5 @@ LOG=/var/log/all
4
4
touch $LOG
5
5
6
6
/usr/sbin/sshd -D >> $LOG &
7
- jupyter notebook --ip=0.0.0.0 /notes / >> $LOG &
7
+ jupyter notebook --ip=0.0.0.0 /paddle/book / >> $LOG &
8
8
tail -f $LOG
You can’t perform that action at this time.
0 commit comments