##// END OF EJS Templates
Submodule updating, comments
Kyle Kelley -
Show More
@@ -9,17 +9,24 b' MAINTAINER IPython Project <ipython-dev@scipy.org>'
9 ADD . /srv/ipython/
9 ADD . /srv/ipython/
10 WORKDIR /srv/ipython/
10 WORKDIR /srv/ipython/
11
11
12 # Installing certain dependencies directly
12 RUN pip2 install fabric
13 RUN pip2 install fabric
13 RUN pip3 install jsonschema jsonpointer fabric
14 RUN pip3 install jsonschema jsonpointer fabric
14
15
16 RUN git submodule update --init
17
18 # .[all] only works with -e
19 # Can't use -e because ipython2 and ipython3 will clobber each other
15 RUN pip2 install .
20 RUN pip2 install .
16 RUN pip3 install .
21 RUN pip3 install .
17
22
18 EXPOSE 8888
23 EXPOSE 8888
19
24
25 # Generate a wrapper script
20 RUN echo "#!/bin/bash\nipython3 notebook --no-browser --port 8888 --ip=0.0.0.0" > /usr/local/bin/notebook.sh
26 RUN echo "#!/bin/bash\nipython3 notebook --no-browser --port 8888 --ip=0.0.0.0" > /usr/local/bin/notebook.sh
21 RUN chmod a+x /usr/local/bin/notebook.sh
27 RUN chmod a+x /usr/local/bin/notebook.sh
22
28
29 # jupyter is our user
23 RUN useradd -m -s /bin/bash jupyter
30 RUN useradd -m -s /bin/bash jupyter
24
31
25 USER jupyter
32 USER jupyter
@@ -29,6 +36,7 b' ENV USER jupyter'
29
36
30 WORKDIR /home/jupyter/
37 WORKDIR /home/jupyter/
31
38
39 # Register each kernel (Python 2.7.x, Python 3.4.x)
32 RUN ipython2 kernelspec install-self
40 RUN ipython2 kernelspec install-self
33 RUN ipython3 kernelspec install-self
41 RUN ipython3 kernelspec install-self
34
42
General Comments 0
You need to be logged in to leave comments. Login now