@@ -38,7 +38,7 @@ RUN apt-get update && \
38
38
RUN echo "Install mecab-ko-dic" && \
39
39
cd /tmp && \
40
40
ldconfig && \
41
- curl -LO https://bitbucket.org/eunjeon/mecab-ko-dic/downloads/mecab-ko-dic-2.1.1-20180720.tar.gz && \
41
+ curl -LO https://bitbucket.org/eunjeon/mecab-ko-dic/downloads/mecab-ko-dic-2.1.1-20180720.tar.gzv && \
42
42
tar -zxvf mecab-ko-dic-2.1.1-20180720.tar.gz && \
43
43
cd mecab-ko-dic-2.1.1-20180720 && \
44
44
./autogen.sh && \
@@ -50,7 +50,6 @@ RUN echo "Install mecab-ko-dic" && \
50
50
git clone https://bitbucket.org/eunjeon/mecab-python-0.996.git && \
51
51
python3 -m pip install /tmp/mecab-python-0.996
52
52
53
-
54
53
# OpenCV
55
54
RUN ln -s /usr/include/libv4l1-videodev.h /usr/include/linux/videodev.h && \
56
55
apt-get install -y \
@@ -132,32 +131,36 @@ RUN git clone -q --branch=v0.3.13 git://github.com/xianyi/OpenBLAS.git && \
132
131
RUN git clone --recursive https://github.com/bodono/scs-python.git && \
133
132
cd /tmp/scs-python && \
134
133
python setup.py install --scs --gpu
134
+ RUN mkdir -p /opt/oracle && \
135
+ cd /opt/oracle && \
136
+ apt-get clean && \
137
+ rm -rf /var/lib/apt/lists/* && \
138
+ apt-get update -y && \
139
+ apt-get install -y --no-install-recommends libaio1 default-libmysqlclient-dev && \
140
+ wget https://download.oracle.com/otn_software/linux/instantclient/instantclient-basiclite-linuxx64.zip && \
141
+ unzip instantclient-basiclite-linuxx64.zip && \
142
+ rm -f instantclient-basiclite-linuxx64.zip && \
143
+ cd /opt/oracle/instantclient* && \
144
+ rm -f *jdbc* *occi* *mysql* *README *jar uidrvci genezi adrci && \
145
+ echo /opt/oracle/instantclient* > /etc/ld.so.conf.d/oracle-instantclient.conf && \
146
+ ldconfig
135
147
148
+ WORKDIR /tmp
136
149
RUN python3 -m pip install --no-cache-dir \
137
- argon2_cffi==20.1.0 \
138
- Cython==0.29.21 \
139
- tornado==6.0.4 \
140
- pystan==2.19.1.1 \
141
- pycairo==1.19.0 \
142
- jupyter==1.0.0 \
143
- python-language-server[all] \
144
- numpy==1.20.1 \
145
- pandas==1.2.1 \
146
- matplotlib==3.3.3
150
+ argon2_cffi==20.1.0
151
+ COPY ./requirements.txt /tmp
152
+ RUN python3 -m pip install --no-cache-dir -r requirements.txt && \
153
+ rm -f /tmp/*.whl /tmp/requirements.txt
147
154
ENV SCIPY_VERSION 1.6.0
148
155
# Install scipy
149
156
RUN cd /tmp && \
150
157
git clone --branch=v${SCIPY_VERSION} --depth=1 https://github.com/scipy/scipy.git scipy && \
151
158
cd scipy && \
152
159
git checkout -b v${SCIPY_VERSION} && \
153
160
cp site.cfg.example site.cfg && \
154
- python3 -m pip install .
161
+ pip uninstall -y typing && \
162
+ python3 -m pip install .
155
163
156
- WORKDIR /tmp
157
- COPY ./requirements.txt /tmp
158
- RUN python3 -m pip install --no-cache-dir --upgrade -r requirements.txt && \
159
- python3 -m pip install --no-cache-dir tensorflow_model_analysis && \
160
- rm -f /tmp/*.whl /tmp/requirements.txt
161
164
162
165
# install git-lfs
163
166
WORKDIR /tmp
@@ -170,7 +173,25 @@ COPY ./service-defs /etc/backend.ai/service-defs
170
173
RUN curl -fL https://github.com/cdr/code-server/releases/download/v3.7.3/code-server-3.7.3-linux-amd64.tar.gz | tar -C /usr/local/lib -xz && \
171
174
mv /usr/local/lib/code-server-3.7.3-linux-amd64 /usr/local/lib/code-server-3.7.3 && \
172
175
ln -s /usr/local/lib/code-server-3.7.3/bin/code-server /usr/local/bin/code-server
173
-
176
+ # Install Open MPI
177
+ RUN mkdir /tmp/openmpi && \
178
+ cd /tmp/openmpi && \
179
+ wget https://www.open-mpi.org/software/ompi/v4.0/downloads/openmpi-4.0.5.tar.gz && \
180
+ tar zxf openmpi-4.0.5.tar.gz && \
181
+ cd openmpi-4.0.5 && \
182
+ ./configure --enable-orterun-prefix-by-default && \
183
+ make -j $(nproc) all && \
184
+ make install && \
185
+ ldconfig && \
186
+ rm -rf /tmp/openmpi*
187
+ # Create a wrapper for OpenMPI to allow running as root by default
188
+ RUN mv /usr/local/bin/mpirun /usr/local/bin/mpirun.real && \
189
+ echo '#!/bin/bash' > /usr/local/bin/mpirun && \
190
+ echo 'mpirun.real --allow-run-as-root "$@"' >> /usr/local/bin/mpirun && \
191
+ chmod a+x /usr/local/bin/mpirun
192
+
193
+ # Configure OpenMPI to run good defaults:
194
+ RUN echo "btl_tcp_if_exclude = lo,docker0" >> /usr/local/etc/openmpi-mca-params.conf
174
195
175
196
RUN jupyter nbextensions_configurator enable && \
176
197
jupyter contrib nbextension install && \
0 commit comments