update Dockerfile

with new current repo layout
This commit is contained in:
Min RK 2015-05-20 22:02:38 -07:00
parent b33f6648c7
commit edcc91765d

View File

@ -1,9 +1,10 @@
# Installs IPython from the current branch # Installs Jupyter Notebook and IPython kernel from the current branch
# Another Docker container should build from this one to get services like the notebook # Another Docker container should inherit with `FROM jupyter/notebook`
# to run actual services.
FROM ubuntu:14.04 FROM ubuntu:14.04
MAINTAINER IPython Project <ipython-dev@scipy.org> MAINTAINER Project Jupyter <jupyter@googlegroups.com>
ENV DEBIAN_FRONTEND noninteractive ENV DEBIAN_FRONTEND noninteractive
@ -40,27 +41,26 @@ RUN apt-get update && apt-get install -y -q \
nodejs-legacy \ nodejs-legacy \
npm npm
# In order to build from source, need less RUN pip2 install --upgrade setuptools pip
RUN npm install -g 'less@<3.0' RUN pip3 install --upgrade setuptools pip
RUN pip install invoke
RUN mkdir -p /srv/ RUN mkdir -p /srv/
WORKDIR /srv/ WORKDIR /srv/
ADD . /srv/ipython RUN git clone --depth 1 https://github.com/ipython/ipykernel /srv/ipykernel
WORKDIR /srv/ipython/ WORKDIR /srv/ipykernel
RUN chmod -R +rX /srv/ipython RUN pip2 install -r requirements.txt -e .
RUN pip3 install -r requirements.txt -e .
# .[all] only works with -e, so use file://path#egg ADD . /srv/notebook
# Can't use -e because ipython2 and ipython3 will clobber each other WORKDIR /srv/notebook/
RUN pip2 install file:///srv/ipython#egg=ipython[all] RUN chmod -R +rX /srv/notebook
RUN pip3 install file:///srv/ipython#egg=ipython[all]
RUN pip3 install -r requirements.txt -e .[test]
# install kernels # install kernels
RUN python2 -m IPython kernelspec install-self RUN python2 -m ipykernel.kernelspec
RUN python3 -m IPython kernelspec install-self RUN python3 -m ipykernel.kernelspec
WORKDIR /tmp/ WORKDIR /tmp/
RUN iptest2 RUN nosetests notebook
RUN iptest3