File tree Expand file tree Collapse file tree 4 files changed +33
-5
lines changed Expand file tree Collapse file tree 4 files changed +33
-5
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ RUN apt-get update \
15
15
&& apt-get clean -y
16
16
RUN cd /usr/src/gtest && cmake . && make && cp *.a /usr/lib
17
17
RUN pip install -U BeautifulSoup docopt PyYAML pillow \
18
- sphinx sphinx_rtd_theme recommonmark
18
+ sphinx sphinx_rtd_theme recommonmark jupyter
19
19
20
20
ARG WITH_AVX
21
21
ARG WITH_DOC
@@ -43,4 +43,13 @@ RUN echo 'root:root' | chpasswd
43
43
RUN sed -ri 's/^PermitRootLogin\s +.*/PermitRootLogin yes/' /etc/ssh/sshd_config
44
44
RUN sed -ri 's/UsePAM yes/#UsePAM yes/g' /etc/ssh/sshd_config
45
45
EXPOSE 22
46
- CMD ["/usr/sbin/sshd" , "-D" ]
46
+
47
+ # Jupyter Notebook directory.
48
+ RUN mkdir /notes/
49
+ WORKDIR "/notes"
50
+ EXPOSE 8888
51
+
52
+ RUN mkdir -p /opt/bin
53
+ COPY ./paddle/scripts/docker/run_all /opt/bin/
54
+
55
+ CMD ["/opt/bin/run_all" ]
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ RUN apt-get update \
15
15
&& apt-get clean -y
16
16
RUN cd /usr/src/gtest && cmake . && make && cp *.a /usr/lib
17
17
RUN pip install -U BeautifulSoup docopt PyYAML pillow \
18
- sphinx sphinx_rtd_theme recommonmark
18
+ sphinx sphinx_rtd_theme recommonmark jupyter
19
19
20
20
ARG WITH_AVX
21
21
ARG WITH_DOC
@@ -43,4 +43,13 @@ RUN echo 'root:root' | chpasswd
43
43
RUN sed -ri 's/^PermitRootLogin\s+.*/PermitRootLogin yes/' /etc/ssh/sshd_config
44
44
RUN sed -ri 's/UsePAM yes/#UsePAM yes/g' /etc/ssh/sshd_config
45
45
EXPOSE 22
46
- CMD ["/usr/sbin/sshd", "-D"]
46
+
47
+ # Jupyter Notebook directory.
48
+ RUN mkdir /notes/
49
+ WORKDIR "/notes"
50
+ EXPOSE 8888
51
+
52
+ RUN mkdir -p /opt/bin
53
+ COPY ./paddle/scripts/docker/run_all /opt/bin/
54
+
55
+ CMD ["/opt/bin/run_all"]
Original file line number Diff line number Diff line change @@ -43,5 +43,7 @@ cp -rv /woboq/data $WOBOQ_OUT/../data
43
43
-o $WOBOQ_OUT \
44
44
-p paddle:/paddle
45
45
/woboq/indexgenerator/codebrowser_indexgenerator $WOBOQ_OUT
46
-
46
+ cd /woboq
47
+ make clean
48
+ rm -rf /paddle/build
47
49
trap : 0
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ LOG=/var/log/all
3
+
4
+ touch $LOG
5
+
6
+ /usr/sbin/sshd -D >> $LOG &
7
+ jupyter notebook --ip=0.0.0.0 /notes/ >> $LOG &
8
+ tail -f $LOG
You can’t perform that action at this time.
0 commit comments