Show More
@@ -1,53 +1,66 b'' | |||||
1 | # Installs IPython from the current branch |
|
1 | # Installs IPython from the current branch | |
2 | # Another Docker container should build from this one to get services like the notebook |
|
2 | # Another Docker container should build from this one to get services like the notebook | |
3 |
|
3 | |||
4 | FROM ubuntu:14.04 |
|
4 | FROM ubuntu:14.04 | |
5 |
|
5 | |||
6 | MAINTAINER IPython Project <ipython-dev@scipy.org> |
|
6 | MAINTAINER IPython Project <ipython-dev@scipy.org> | |
7 |
|
7 | |||
8 | ENV DEBIAN_FRONTEND noninteractive |
|
8 | ENV DEBIAN_FRONTEND noninteractive | |
9 |
|
9 | |||
10 | # Make sure apt is up to date |
|
|||
11 | RUN apt-get update |
|
|||
12 | RUN apt-get upgrade -y |
|
|||
13 |
|
||||
14 | # Not essential, but wise to set the lang |
|
10 | # Not essential, but wise to set the lang | |
15 | # Note: Users with other languages should set this in their derivative image |
|
11 | # Note: Users with other languages should set this in their derivative image | |
16 | RUN apt-get install -y language-pack-en |
|
12 | RUN apt-get update && apt-get install -y language-pack-en | |
17 | ENV LANGUAGE en_US.UTF-8 |
|
13 | ENV LANGUAGE en_US.UTF-8 | |
18 | ENV LANG en_US.UTF-8 |
|
14 | ENV LANG en_US.UTF-8 | |
19 | ENV LC_ALL en_US.UTF-8 |
|
15 | ENV LC_ALL en_US.UTF-8 | |
20 |
|
16 | |||
21 | RUN locale-gen en_US.UTF-8 |
|
17 | RUN locale-gen en_US.UTF-8 | |
22 | RUN dpkg-reconfigure locales |
|
18 | RUN dpkg-reconfigure locales | |
23 |
|
19 | |||
24 | # Python binary dependencies, developer tools |
|
20 | # Python binary dependencies, developer tools | |
25 | RUN apt-get install -y -q build-essential make gcc zlib1g-dev git && \ |
|
21 | RUN apt-get update && apt-get install -y -q \ | |
26 | apt-get install -y -q python python-dev python-pip python3-dev python3-pip && \ |
|
22 | build-essential \ | |
27 | apt-get install -y -q libzmq3-dev sqlite3 libsqlite3-dev pandoc libcurl4-openssl-dev nodejs nodejs-legacy npm |
|
23 | make \ | |
|
24 | gcc \ | |||
|
25 | zlib1g-dev \ | |||
|
26 | git \ | |||
|
27 | python \ | |||
|
28 | python-dev \ | |||
|
29 | python-pip \ | |||
|
30 | python3-dev \ | |||
|
31 | python3-pip \ | |||
|
32 | python-sphinx \ | |||
|
33 | python3-sphinx \ | |||
|
34 | libzmq3-dev \ | |||
|
35 | sqlite3 \ | |||
|
36 | libsqlite3-dev \ | |||
|
37 | pandoc \ | |||
|
38 | libcurl4-openssl-dev \ | |||
|
39 | nodejs \ | |||
|
40 | nodejs-legacy \ | |||
|
41 | npm | |||
28 |
|
42 | |||
29 | # In order to build from source, need less |
|
43 | # In order to build from source, need less | |
30 | RUN npm install -g less |
|
44 | RUN npm install -g less | |
31 |
|
45 | |||
32 | RUN apt-get install -y -q python-sphinx python3-sphinx |
|
|||
33 | RUN pip install invoke |
|
46 | RUN pip install invoke | |
34 |
|
47 | |||
35 | RUN mkdir -p /srv/ |
|
48 | RUN mkdir -p /srv/ | |
36 | WORKDIR /srv/ |
|
49 | WORKDIR /srv/ | |
37 | ADD . /srv/ipython |
|
50 | ADD . /srv/ipython | |
38 | WORKDIR /srv/ipython/ |
|
51 | WORKDIR /srv/ipython/ | |
39 | RUN chmod -R +rX /srv/ipython |
|
52 | RUN chmod -R +rX /srv/ipython | |
40 |
|
53 | |||
41 | # .[all] only works with -e, so use file://path#egg |
|
54 | # .[all] only works with -e, so use file://path#egg | |
42 | # Can't use -e because ipython2 and ipython3 will clobber each other |
|
55 | # Can't use -e because ipython2 and ipython3 will clobber each other | |
43 | RUN pip2 install file:///srv/ipython#egg=ipython[all] |
|
56 | RUN pip2 install file:///srv/ipython#egg=ipython[all] | |
44 | RUN pip3 install file:///srv/ipython#egg=ipython[all] |
|
57 | RUN pip3 install file:///srv/ipython#egg=ipython[all] | |
45 |
|
58 | |||
46 | # install kernels |
|
59 | # install kernels | |
47 | RUN python2 -m IPython kernelspec install-self --system |
|
60 | RUN python2 -m IPython kernelspec install-self --system | |
48 | RUN python3 -m IPython kernelspec install-self --system |
|
61 | RUN python3 -m IPython kernelspec install-self --system | |
49 |
|
62 | |||
50 | WORKDIR /tmp/ |
|
63 | WORKDIR /tmp/ | |
51 |
|
64 | |||
52 | RUN iptest2 |
|
65 | RUN iptest2 | |
53 | RUN iptest3 |
|
66 | RUN iptest3 |
General Comments 0
You need to be logged in to leave comments.
Login now