-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.julia
82 lines (73 loc) · 1.92 KB
/
Dockerfile.julia
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
FROM jupyter/scipy-notebook
USER root
RUN apt-get update \
&& apt-get upgrade -y -o Dpkg::Options::="--force-confdef" -o DPkg::Options::="--force-confold" \
&& apt-get install -y \
man-db \
libc6 \
libc6-dev \
build-essential \
wget \
curl \
file \
vim \
screen \
tmux \
unzip \
pkg-config \
cmake \
gfortran \
gettext \
libreadline-dev \
libncurses-dev \
libpcre3-dev \
libgnutls28 \
libzmq3-dev \
libzmq3 \
python \
python-yaml \
python-m2crypto \
python-crypto \
msgpack-python \
python-dev \
python-setuptools \
supervisor \
python-jinja2 \
python-requests \
python-isodate \
python-git \
python-pip \
&& apt-get clean
RUN pip install --upgrade \
PyDrive \
google-api-python-client \
invoke \
jsonpointer \
jsonschema \
mistune \
nose \
pygments \
pyzmq \
readline \
sphinx \
tornado
RUN pip install 'notebook==4.2'
# Install julia 0.6
RUN mkdir -p /opt/julia-0.6.0-dev && \
curl -s -L https://status.julialang.org/download/linux-x86_64 | \
tar -C /opt/julia-0.6.0-dev -x -z --strip-components=1 -f -
RUN ln -fs /opt/julia-0.6.0-dev /opt/julia-0.6
# Make v0.6 default julia
RUN ln -fs /opt/julia-0.6.0-dev /opt/julia
ENV PATH /opt/julia/bin:$PATH
RUN /opt/julia/bin/julia -e 'Pkg.add("IJulia")'
RUN /opt/julia/bin/julia -e 'Pkg.build("IJulia")'
# Install IJulia packages as jovyan and then move the kernelspec out
# to the system share location. Avoids problems with runtime UID change not
# taking effect properly on the .local folder in the jovyan home dir.
RUN mv $HOME/.local/share/jupyter/kernels/julia* $CONDA_DIR/share/jupyter/kernels/ && \
chmod -R go+rx $CONDA_DIR/share/jupyter && \
rm -rf $HOME/.local
# Update Julia packages
RUN echo "push!(Libdl.DL_LOAD_PATH, \"$CONDA_DIR/lib\")" > /home/$NB_USER/.juliarc.jl
USER $NB_USER