forked from ipython/ipython
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
66 lines (53 loc) · 1.51 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Installs IPython from the current branch
# Another Docker container should build from this one to get services like the notebook
FROM ubuntu:14.04
MAINTAINER IPython Project <[email protected]>
ENV DEBIAN_FRONTEND noninteractive
# Not essential, but wise to set the lang
# Note: Users with other languages should set this in their derivative image
RUN apt-get update && apt-get install -y language-pack-en
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
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
# In order to build from source, need less
RUN npm install -g 'less@<3.0'
RUN pip install invoke
RUN mkdir -p /srv/
WORKDIR /srv/
ADD . /srv/ipython
WORKDIR /srv/ipython/
RUN chmod -R +rX /srv/ipython
# .[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 file:///srv/ipython#egg=ipython[all]
RUN pip3 install file:///srv/ipython#egg=ipython[all]
# install kernels
RUN python2 -m IPython kernelspec install-self
RUN python3 -m IPython kernelspec install-self
WORKDIR /tmp/
RUN iptest2
RUN iptest3