-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathDockerfile
More file actions
150 lines (134 loc) · 4.09 KB
/
Dockerfile
File metadata and controls
150 lines (134 loc) · 4.09 KB
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
ARG BASE_IMAGE_TAG=185a9f74b296
FROM jupyter/datascience-notebook:$BASE_IMAGE_TAG
LABEL maintainer="Kenta Murata <mrkn@mrkn.jp>"
USER root
# Pre-requisites
RUN apt-get update && \
apt-get install -y --no-install-recommends \
ca-certificates \
curl \
gcc \
libczmq-dev \
libffi-dev \
libgdbm-dev \
libgmp-dev \
liblapacke-dev \
libmysqlclient-dev \
libncurses5-dev \
libopenblas-dev \
libpq-dev \
libreadline-dev \
libsqlite3-dev \
libssl-dev \
libxml2-dev \
libxslt1-dev \
libyaml-dev \
libzmq3-dev \
mysql-client \
pkg-config \
postgresql-client \
sqlite3 \
tzdata \
zlib1g-dev && \
rm -rf /var/lib/apt/lists/*
# Apache Arrow
RUN apt update && \
apt install -y --no-install-recommends \
apt-transport-https \
lsb-release && \
curl -sfSL -o /usr/share/keyrings/apache-arrow-keyring.gpg \
https://dl.bintray.com/apache/arrow/$(lsb_release --id --short | tr 'A-Z' 'a-z')/apache-arrow-keyring.gpg \
&& { \
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/apache-arrow-keyring.gpg] https://dl.bintray.com/apache/arrow/$(lsb_release --id --short | tr 'A-Z' 'a-z')/ $(lsb_release --codename --short) main"; \
echo "deb-src [signed-by=/usr/share/keyrings/apache-arrow-keyring.gpg] https://dl.bintray.com/apache/arrow/$(lsb_release --id --short | tr 'A-Z' 'a-z')/ $(lsb_release --codename --short) main"; \
} >> /etc/apt/sources.list.d/apache-arrow.list && \
apt update && \
apt install -y --no-install-recommends \
libarrow-dev \
libarrow-glib-dev \
libplasma-dev \
libplasma-glib-dev \
libgandiva-dev \
libgandiva-glib-dev \
libparquet-dev \
libparquet-glib-dev \
libgirepository1.0-dev \
&& \
rm -rf /var/lib/apt/lists/*
# Copy Ruby 2.6.2 from rubylang/ruby
COPY --from=rubylang/ruby:2.6.2-bionic \
/usr/local/bin/bundle \
/usr/local/bin/bundler \
/usr/local/bin/erb \
/usr/local/bin/gem \
/usr/local/bin/irb \
/usr/local/bin/rake \
/usr/local/bin/rdoc \
/usr/local/bin/ri \
/usr/local/bin/ruby \
/usr/local/bin/
COPY --from=rubylang/ruby:2.6.2-bionic \
/usr/local/etc/gemrc \
/usr/local/etc/
COPY --from=rubylang/ruby:2.6.2-bionic \
/usr/local/include/ruby-2.6.0/ \
/usr/local/include/ruby-2.6.0/
COPY --from=rubylang/ruby:2.6.2-bionic \
/usr/local/lib/libruby.so \
/usr/local/lib/libruby.so.* \
/usr/local/lib/pkgconfig \
/usr/local/lib/
COPY --from=rubylang/ruby:2.6.2-bionic \
/usr/local/lib/ruby/ \
/usr/local/lib/ruby/
COPY --from=rubylang/ruby:2.6.2-bionic \
/usr/local/share/man/man1/bundle-*.1 \
/usr/local/share/man/man1/bundle.1 \
/usr/local/share/man/man1/erb.1 \
/usr/local/share/man/man1/irb.1 \
/usr/local/share/man/man1/ri.1 \
/usr/local/share/man/man1/ruby.1 \
/usr/local/share/man/man1/
COPY --from=rubylang/ruby:2.6.2-bionic \
/usr/local/share/man/man5/gemfile.5 \
/usr/local/share/man/man5/
USER $NB_UID
RUN echo "gem: --user-install" >> $HOME/.gemrc
ENV PATH $HOME/.gem/ruby/2.6.0/bin:$PATH
# Install basic gems
RUN gem install \
activerecord \
awesome_print \
daru \
daru-view \
ffi-rzmq \
iruby \
matplotlib \
mysql2 \
nmatrix \
nmatrix-lapacke \
numpy \
numo-narray \
numo-linalg \
pandas \
pg \
pry \
pry-doc \
pycall \
rbplotly \
red-arrow \
red-arrow-numo-narray \
red-arrow-nmatrix \
red-arrow-pycall \
red-chainer \
red-datasets \
red-datasets-arrow \
red-datasets-daru \
red-gandiva \
red-parquet \
red-plasma \
sqlite3 \
&& gem install --pre \
charty
\
&& iruby register