2014-09-25 10:49:27 +08:00
|
|
|
# Installs IPython from the current branch
|
|
|
|
# Another Docker container should build from this one to get services like the notebook
|
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
|
|
|
|
|
|
|
MAINTAINER IPython Project <ipython-dev@scipy.org>
|
|
|
|
|
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
|
|
|
|
|
|
|
# In order to build from source, need less
|
2014-12-01 10:24:25 +08:00
|
|
|
RUN npm install -g less@1.7.5
|
2014-09-25 10:49:27 +08:00
|
|
|
|
2014-10-16 07:37:27 +08:00
|
|
|
RUN pip install invoke
|
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/
|
2014-09-19 03:34:32 +08:00
|
|
|
ADD . /srv/ipython
|
2014-09-13 00:46:41 +08:00
|
|
|
WORKDIR /srv/ipython/
|
2014-09-25 06:32:15 +08:00
|
|
|
RUN chmod -R +rX /srv/ipython
|
2014-09-13 00:46:41 +08:00
|
|
|
|
2014-09-25 06:32:15 +08:00
|
|
|
# .[all] only works with -e, so use file://path#egg
|
2014-09-14 01:33:24 +08:00
|
|
|
# Can't use -e because ipython2 and ipython3 will clobber each other
|
2014-09-26 07:03:59 +08:00
|
|
|
RUN pip2 install file:///srv/ipython#egg=ipython[all]
|
|
|
|
RUN pip3 install file:///srv/ipython#egg=ipython[all]
|
2014-09-25 06:32:15 +08:00
|
|
|
|
|
|
|
# install kernels
|
2014-12-30 01:33:11 +08:00
|
|
|
RUN python2 -m IPython kernelspec install-self
|
|
|
|
RUN python3 -m IPython kernelspec install-self
|
2014-09-25 06:32:15 +08:00
|
|
|
|
2014-09-26 07:03:59 +08:00
|
|
|
WORKDIR /tmp/
|
|
|
|
|
|
|
|
RUN iptest2
|
|
|
|
RUN iptest3
|