Show More
@@ -1,66 +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 | # Not essential, but wise to set the lang |
|
10 | # Not essential, but wise to set the lang | |
11 | # 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 | |
12 | RUN apt-get update && apt-get install -y language-pack-en |
|
12 | RUN apt-get update && apt-get install -y language-pack-en | |
13 | ENV LANGUAGE en_US.UTF-8 |
|
13 | ENV LANGUAGE en_US.UTF-8 | |
14 | ENV LANG en_US.UTF-8 |
|
14 | ENV LANG en_US.UTF-8 | |
15 | ENV LC_ALL en_US.UTF-8 |
|
15 | ENV LC_ALL en_US.UTF-8 | |
16 |
|
16 | |||
17 | RUN locale-gen en_US.UTF-8 |
|
17 | RUN locale-gen en_US.UTF-8 | |
18 | RUN dpkg-reconfigure locales |
|
18 | RUN dpkg-reconfigure locales | |
19 |
|
19 | |||
20 | # Python binary dependencies, developer tools |
|
20 | # Python binary dependencies, developer tools | |
21 | RUN apt-get update && apt-get install -y -q \ |
|
21 | RUN apt-get update && apt-get install -y -q \ | |
22 | build-essential \ |
|
22 | build-essential \ | |
23 | make \ |
|
23 | make \ | |
24 | gcc \ |
|
24 | gcc \ | |
25 | zlib1g-dev \ |
|
25 | zlib1g-dev \ | |
26 | git \ |
|
26 | git \ | |
27 | python \ |
|
27 | python \ | |
28 | python-dev \ |
|
28 | python-dev \ | |
29 | python-pip \ |
|
29 | python-pip \ | |
30 | python3-dev \ |
|
30 | python3-dev \ | |
31 | python3-pip \ |
|
31 | python3-pip \ | |
32 | python-sphinx \ |
|
32 | python-sphinx \ | |
33 | python3-sphinx \ |
|
33 | python3-sphinx \ | |
34 | libzmq3-dev \ |
|
34 | libzmq3-dev \ | |
35 | sqlite3 \ |
|
35 | sqlite3 \ | |
36 | libsqlite3-dev \ |
|
36 | libsqlite3-dev \ | |
37 | pandoc \ |
|
37 | pandoc \ | |
38 | libcurl4-openssl-dev \ |
|
38 | libcurl4-openssl-dev \ | |
39 | nodejs \ |
|
39 | nodejs \ | |
40 | nodejs-legacy \ |
|
40 | nodejs-legacy \ | |
41 | npm |
|
41 | npm | |
42 |
|
42 | |||
43 | # In order to build from source, need less |
|
43 | # In order to build from source, need less | |
44 | RUN npm install -g less@1.7.5 |
|
44 | RUN npm install -g less@1.7.5 | |
45 |
|
45 | |||
46 | RUN pip install invoke |
|
46 | RUN pip install invoke | |
47 |
|
47 | |||
48 | RUN mkdir -p /srv/ |
|
48 | RUN mkdir -p /srv/ | |
49 | WORKDIR /srv/ |
|
49 | WORKDIR /srv/ | |
50 | ADD . /srv/ipython |
|
50 | ADD . /srv/ipython | |
51 | WORKDIR /srv/ipython/ |
|
51 | WORKDIR /srv/ipython/ | |
52 | RUN chmod -R +rX /srv/ipython |
|
52 | RUN chmod -R +rX /srv/ipython | |
53 |
|
53 | |||
54 | # .[all] only works with -e, so use file://path#egg |
|
54 | # .[all] only works with -e, so use file://path#egg | |
55 | # 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 | |
56 | RUN pip2 install file:///srv/ipython#egg=ipython[all] |
|
56 | RUN pip2 install file:///srv/ipython#egg=ipython[all] | |
57 | RUN pip3 install file:///srv/ipython#egg=ipython[all] |
|
57 | RUN pip3 install file:///srv/ipython#egg=ipython[all] | |
58 |
|
58 | |||
59 | # install kernels |
|
59 | # install kernels | |
60 |
RUN python2 -m IPython kernelspec install-self |
|
60 | RUN python2 -m IPython kernelspec install-self | |
61 |
RUN python3 -m IPython kernelspec install-self |
|
61 | RUN python3 -m IPython kernelspec install-self | |
62 |
|
62 | |||
63 | WORKDIR /tmp/ |
|
63 | WORKDIR /tmp/ | |
64 |
|
64 | |||
65 | RUN iptest2 |
|
65 | RUN iptest2 | |
66 | RUN iptest3 |
|
66 | RUN iptest3 |
General Comments 0
You need to be logged in to leave comments.
Login now