Dockerfile
66 lines
| 1.5 KiB
| text/x-dockerfile-config
|
DockerLexer
Kyle Kelley
|
r17988 | # Installs IPython from the current branch | ||
# Another Docker container should build from this one to get services like the notebook | ||||
Kyle Kelley
|
r17970 | |||
Kyle Kelley
|
r17988 | FROM ubuntu:14.04 | ||
Kyle Kelley
|
r17968 | |||
MAINTAINER IPython Project <ipython-dev@scipy.org> | ||||
MinRK
|
r18012 | ENV DEBIAN_FRONTEND noninteractive | ||
Kyle Kelley
|
r17988 | # Not essential, but wise to set the lang | ||
# Note: Users with other languages should set this in their derivative image | ||||
Jessica Frazelle
|
r18525 | RUN apt-get update && apt-get install -y language-pack-en | ||
Kyle Kelley
|
r17988 | 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 | ||||
Jessica Frazelle
|
r18525 | 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 | ||||
Kyle Kelley
|
r17988 | |||
# In order to build from source, need less | ||||
Kyle Kelley
|
r19115 | RUN npm install -g less@1.7.5 | ||
Kyle Kelley
|
r17988 | |||
MinRK
|
r18351 | RUN pip install invoke | ||
MinRK
|
r17984 | |||
Kyle Kelley
|
r17974 | RUN mkdir -p /srv/ | ||
Kyle Kelley
|
r17973 | WORKDIR /srv/ | ||
Kyle Kelley
|
r17979 | ADD . /srv/ipython | ||
Kyle Kelley
|
r17968 | WORKDIR /srv/ipython/ | ||
MinRK
|
r17984 | RUN chmod -R +rX /srv/ipython | ||
Kyle Kelley
|
r17968 | |||
MinRK
|
r17984 | # .[all] only works with -e, so use file://path#egg | ||
Kyle Kelley
|
r17971 | # Can't use -e because ipython2 and ipython3 will clobber each other | ||
MinRK
|
r18012 | RUN pip2 install file:///srv/ipython#egg=ipython[all] | ||
RUN pip3 install file:///srv/ipython#egg=ipython[all] | ||||
MinRK
|
r17984 | |||
# install kernels | ||||
Doug Blank
|
r19754 | RUN python2 -m IPython kernelspec install-self | ||
RUN python3 -m IPython kernelspec install-self | ||||
MinRK
|
r17984 | |||
MinRK
|
r18012 | WORKDIR /tmp/ | ||
RUN iptest2 | ||||
RUN iptest3 | ||||