This repository has been archived by the owner on Nov 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathDockerfile
77 lines (68 loc) · 3.45 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
67
68
69
70
71
72
73
74
75
76
77
# kaggle/julia dockerfile
FROM ubuntu:16.04
ADD package_installs.jl /tmp/package_installs.jl
RUN apt-get update && \
apt-get install git software-properties-common curl wget libcairo2 libpango1.0-0 -y && \
add-apt-repository ppa:staticfloat/julia-deps -y && \
apt-get update -y && \
apt-get install -y libpcre3-dev build-essential && \
apt-get install -y gettext hdf5-tools && \
apt-get install -y gfortran python && \
apt-get install -y m4 cmake libssl-dev && \
cd /usr/local/src && git clone https://github.com/JuliaLang/julia.git && \
cd julia && git checkout v0.6.2 && \
# Use generic instruction set; see https://github.com/JuliaLang/julia/pull/6220
# and https://groups.google.com/forum/#!topic/julia-dev/Eqp0GhZWxME
echo "JULIA_CPU_TARGET=core2" > Make.user && \
echo "OPENBLAS_TARGET_ARCH=NEHALEM" > Make.user && \
make -j 4 julia-deps && make -j 4 && make install && \
ln -s /usr/local/src/julia/julia /usr/local/bin/julia
ENV JULIA_PKGDIR /root/.julia/v0.6
RUN julia /tmp/package_installs.jl
# IJulia
RUN apt-get update && apt-get install -y python3-pip python3-dev && pip3 install jupyter && \
julia -e "Pkg.add(\"Nettle\")" && \
julia -e "Pkg.add(\"IJulia\")" && \
julia -e "Pkg.build(\"IJulia\")" && \
# Make sure Jupyter won't try to migrate old settings
mkdir -p /root/.jupyter/kernels && \
cp -r /root/.local/share/jupyter/kernels/julia-0.6 /root/.jupyter/kernels && \
touch /root/.jupyter/jupyter_nbconvert_config.py && touch /root/.jupyter/migrated && \
julia -e "Base.compilecache(\"IJulia\")" && \
julia -e "Base.compilecache(\"ZMQ\")" && \
julia -e "Base.compilecache(\"Nettle\")"
RUN julia -e "Base.compilecache(\"BinDeps\")" && \
julia -e "Base.compilecache(\"Cairo\")" && \
julia -e "Base.compilecache(\"Calculus\")" && \
julia -e "Base.compilecache(\"Clustering\")" && \
julia -e "Base.compilecache(\"Compose\")" && \
julia -e "Base.compilecache(\"DataArrays\")" && \
julia -e "Base.compilecache(\"DataFrames\")" && \
julia -e "Base.compilecache(\"DataFramesMeta\")" && \
julia -e "Base.compilecache(\"Dates\")" && \
julia -e "Base.compilecache(\"DecisionTree\")" && \
julia -e "Base.compilecache(\"Distributions\")" && \
julia -e "Base.compilecache(\"Distances\")" && \
julia -e "Base.compilecache(\"GLM\")" && \
julia -e "Base.compilecache(\"HDF5\")" && \
julia -e "Base.compilecache(\"HypothesisTests\")" && \
julia -e "Base.compilecache(\"JSON\")" && \
julia -e "Base.compilecache(\"KernelDensity\")" && \
julia -e "Base.compilecache(\"Loess\")" && \
#julia -e "Base.compilecache(\"Lora\")" && \
julia -e "Base.compilecache(\"MLBase\")" && \
julia -e "Base.compilecache(\"MultivariateStats\")" && \
julia -e "Base.compilecache(\"NMF\")" && \
julia -e "Base.compilecache(\"Optim\")" && \
julia -e "Base.compilecache(\"PDMats\")" && \
julia -e "Base.compilecache(\"RDatasets\")" && \
julia -e "Base.compilecache(\"SQLite\")" && \
julia -e "Base.compilecache(\"StatsBase\")" && \
julia -e "Base.compilecache(\"TextAnalysis\")" && \
julia -e "Base.compilecache(\"TimeSeries\")" && \
julia -e "Base.compilecache(\"ZipFile\")" && \
julia -e "Base.compilecache(\"Gadfly\")" && \
julia -e "Base.compilecache(\"MLBase\")" && \
julia -e "Base.compilecache(\"Clustering\")" && \
julia -e "using IJulia"
CMD ["julia"]