2015-05-21 13:02:38 +08:00
|
|
|
# Installs Jupyter Notebook and IPython kernel from the current branch
|
|
|
|
# Another Docker container should inherit with `FROM jupyter/notebook`
|
|
|
|
# to run actual services.
|
2014-09-13 01:38:36 +08:00
|
|
|
|
2014-09-25 10:49:27 +08:00
|
|
|
FROM ubuntu:14.04
|
2014-09-13 00:46:41 +08:00
|
|
|
|
2015-05-21 13:02:38 +08:00
|
|
|
MAINTAINER Project Jupyter <jupyter@googlegroups.com>
|
2014-09-13 00:46:41 +08:00
|
|
|
|
2014-09-26 07:03:59 +08:00
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
|
2014-09-25 10:49:27 +08:00
|
|
|
# Not essential, but wise to set the lang
|
|
|
|
# Note: Users with other languages should set this in their derivative image
|
2014-10-30 05:21:17 +08:00
|
|
|
RUN apt-get update && apt-get install -y language-pack-en
|
2014-09-25 10:49:27 +08:00
|
|
|
ENV LANGUAGE en_US.UTF-8
|
|
|
|
ENV LANG en_US.UTF-8
|
|
|
|
ENV LC_ALL en_US.UTF-8
|
|
|
|
|
|
|
|
RUN locale-gen en_US.UTF-8
|
|
|
|
RUN dpkg-reconfigure locales
|
|
|
|
|
|
|
|
# Python binary dependencies, developer tools
|
2014-10-30 05:21:17 +08:00
|
|
|
RUN apt-get update && apt-get install -y -q \
|
|
|
|
build-essential \
|
|
|
|
make \
|
|
|
|
gcc \
|
|
|
|
zlib1g-dev \
|
|
|
|
git \
|
|
|
|
python \
|
|
|
|
python-dev \
|
|
|
|
python-pip \
|
|
|
|
python3-dev \
|
|
|
|
python3-pip \
|
|
|
|
python-sphinx \
|
|
|
|
python3-sphinx \
|
|
|
|
libzmq3-dev \
|
|
|
|
sqlite3 \
|
|
|
|
libsqlite3-dev \
|
|
|
|
pandoc \
|
|
|
|
libcurl4-openssl-dev \
|
|
|
|
nodejs \
|
|
|
|
nodejs-legacy \
|
|
|
|
npm
|
2014-09-25 10:49:27 +08:00
|
|
|
|
2015-05-21 13:02:38 +08:00
|
|
|
RUN pip2 install --upgrade setuptools pip
|
|
|
|
RUN pip3 install --upgrade setuptools pip
|
2014-09-25 06:32:15 +08:00
|
|
|
|
2014-09-14 04:48:23 +08:00
|
|
|
RUN mkdir -p /srv/
|
2014-09-14 03:30:22 +08:00
|
|
|
WORKDIR /srv/
|
2015-05-21 13:02:38 +08:00
|
|
|
RUN git clone --depth 1 https://github.com/ipython/ipykernel /srv/ipykernel
|
|
|
|
WORKDIR /srv/ipykernel
|
2015-07-15 04:43:01 +08:00
|
|
|
RUN pip2 install --pre -e .
|
|
|
|
RUN pip3 install --pre -e .
|
2015-05-21 13:02:38 +08:00
|
|
|
|
|
|
|
ADD . /srv/notebook
|
|
|
|
WORKDIR /srv/notebook/
|
|
|
|
RUN chmod -R +rX /srv/notebook
|
2014-09-13 00:46:41 +08:00
|
|
|
|
2015-05-21 13:02:38 +08:00
|
|
|
RUN pip3 install -r requirements.txt -e .[test]
|
2014-09-25 06:32:15 +08:00
|
|
|
|
|
|
|
# install kernels
|
2015-05-21 13:02:38 +08:00
|
|
|
RUN python2 -m ipykernel.kernelspec
|
|
|
|
RUN python3 -m ipykernel.kernelspec
|
2014-09-25 06:32:15 +08:00
|
|
|
|
2014-09-26 07:03:59 +08:00
|
|
|
WORKDIR /tmp/
|
|
|
|
|
2015-05-21 13:02:38 +08:00
|
|
|
RUN nosetests notebook
|