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 \
1515 && apt-get clean -y
1616RUN cd /usr/src/gtest && cmake . && make && cp *.a /usr/lib
1717RUN pip install -U BeautifulSoup docopt PyYAML pillow \
18- sphinx sphinx_rtd_theme recommonmark
18+ sphinx sphinx_rtd_theme recommonmark jupyter
1919
2020ARG WITH_AVX
2121ARG WITH_DOC
@@ -43,4 +43,13 @@ RUN echo 'root:root' | chpasswd
4343RUN sed -ri 's/^PermitRootLogin\s +.*/PermitRootLogin yes/' /etc/ssh/sshd_config
4444RUN sed -ri 's/UsePAM yes/#UsePAM yes/g' /etc/ssh/sshd_config
4545EXPOSE 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/entrypoint /opt/bin/
54+
55+ CMD ["/opt/bin/entrypoint" ]
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ RUN apt-get update \
1515 && apt-get clean -y
1616RUN cd /usr/src/gtest && cmake . && make && cp *.a /usr/lib
1717RUN pip install -U BeautifulSoup docopt PyYAML pillow \
18- sphinx sphinx_rtd_theme recommonmark
18+ sphinx sphinx_rtd_theme recommonmark jupyter
1919
2020ARG WITH_AVX
2121ARG WITH_DOC
@@ -43,4 +43,13 @@ RUN echo 'root:root' | chpasswd
4343RUN sed -ri 's/^PermitRootLogin\s+.*/PermitRootLogin yes/' /etc/ssh/sshd_config
4444RUN sed -ri 's/UsePAM yes/#UsePAM yes/g' /etc/ssh/sshd_config
4545EXPOSE 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/entrypoint /opt/bin/
54+
55+ CMD ["/opt/bin/entrypoint"]
Original file line number Diff line number Diff line change @@ -43,5 +43,7 @@ cp -rv /woboq/data $WOBOQ_OUT/../data
4343 -o $WOBOQ_OUT \
4444 -p paddle:/paddle
4545/woboq/indexgenerator/codebrowser_indexgenerator $WOBOQ_OUT
46-
46+ cd /woboq
47+ make clean
48+ rm -rf /paddle/build
4749trap : 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