From 2b88a1d5d05392951cea352e36d8dc14611d9e70 2014-09-24 23:14:14 From: MinRK Date: 2014-09-24 23:14:14 Subject: [PATCH] use file://$PWD#egg=ipython[all] in Dockerfile so we can install ipython[all] with pip. Because .[all] doesn't work for whatever reason. Removes need to install other dependencies with pip beforehand. --- diff --git a/Dockerfile b/Dockerfile index c1cd651..030981a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,16 +5,20 @@ FROM ipython/scipystack MAINTAINER IPython Project +RUN apt-get -y install fabric + RUN mkdir -p /srv/ WORKDIR /srv/ ADD . /srv/ipython WORKDIR /srv/ipython/ +RUN chmod -R +rX /srv/ipython -# Installing certain dependencies directly -RUN pip2 install fabric -RUN pip3 install jsonschema jsonpointer fabric - -# .[all] only works with -e +# .[all] only works with -e, so use file://path#egg # Can't use -e because ipython2 and ipython3 will clobber each other -RUN pip2 install . -RUN pip3 install . +RUN pip2 install --upgrade file:///srv/ipython#egg=ipython[all] +RUN pip3 install --upgrade file:///srv/ipython#egg=ipython[all] + +# install kernels +RUN python2 -m IPython kernelspec install-self --system +RUN python3 -m IPython kernelspec install-self --system +