Skip to content

Commit 684ca56

Browse files
committed
common 21.02 python 3.8 cuda 11.1
1 parent 26c4c33 commit 684ca56

File tree

2 files changed

+17
-22
lines changed

2 files changed

+17
-22
lines changed

commons/Dockerfile.base.py38-cuda11.1

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ RUN git clone https://github.com/Mellanox/nv_peer_memory.git /tmp/nv_peer_memory
161161
dpkg-buildpackage -us -uc && \
162162
dpkg -i /tmp/nvidia-peer-memory_1.1-0_all.deb
163163

164+
# Oracle client
164165
RUN mkdir -p /opt/oracle && \
165166
cd /opt/oracle && \
166167
apt-get clean && \
@@ -186,19 +187,15 @@ RUN rm /usr/bin/python /usr/bin/python3 && \
186187

187188
WORKDIR /tmp
188189
RUN curl https://bootstrap.pypa.io/get-pip.py | python3 && \
189-
python3 -m pip install --no-cache-dir -U setuptools pip==20.3.2
190-
191-
RUN python3 -m pip install --no-cache-dir \
192-
Cython==0.29.21 \
193-
tornado==6.1 \
194-
nvidia-pyindex==1.0.5 \
195-
matplotlib==3.3.3
190+
python3 -m pip install --no-cache-dir -U setuptools pip
196191

197192
WORKDIR /tmp
193+
# OpenBlas
198194
RUN git clone -q --branch=master git://github.com/xianyi/OpenBLAS.git && \
199195
cd OpenBLAS && \
200196
make DYNAMIC_ARCH=1 NO_AFFINITY=1 NUM_THREADS=48 FC=gfortran && \
201197
make install
198+
# Numpy
202199
RUN git clone --branch=v${NUMPY_VERSION} --depth=1 https://github.com/numpy/numpy.git numpy && \
203200
cd numpy && \
204201
git checkout -b v${NUMPY_VERSION} && \
@@ -210,7 +207,7 @@ RUN git clone --branch=v${NUMPY_VERSION} --depth=1 https://github.com/numpy/nump
210207
echo "lapack_libs =" >> site.cfg && \
211208
python3 setup.py bdist_wheel -d /tmp
212209

213-
# Install scipy
210+
# Scipy
214211
RUN cd /tmp && \
215212
git clone --branch=v${SCIPY_VERSION} --depth=1 https://github.com/scipy/scipy.git scipy && \
216213
cd scipy && \
@@ -257,11 +254,6 @@ RUN echo "Install mecab-ko-dic" && \
257254
git clone https://bitbucket.org/eunjeon/mecab-python-0.996.git && \
258255
python3 -m pip install /tmp/mecab-python-0.996
259256

260-
RUN python3 -m pip install pip --no-cache-dir \
261-
Cartopy==0.18.0 \
262-
nvidia-dlprof \
263-
notebook==6.0.3
264-
265257
WORKDIR /tmp
266258
COPY ./requirements.py38.txt /tmp
267259
RUN python3 -m pip install --no-cache-dir -r requirements.py38.txt && \
@@ -408,18 +400,20 @@ RUN cat /etc/ssh/ssh_config | grep -v StrictHostKeyChecking > /etc/ssh/ssh_confi
408400
echo " StrictHostKeyChecking no" >> /etc/ssh/ssh_config.new && \
409401
mv /etc/ssh/ssh_config.new /etc/ssh/ssh_config
410402

411-
# install git-lfs
403+
# Install git-lfs
412404
WORKDIR /tmp
413405
RUN curl -sLO https://github.com/git-lfs/git-lfs/releases/download/v2.13.1/git-lfs-linux-amd64-v2.13.1.tar.gz && \
414406
tar -zxf git-lfs-linux-amd64-v2.13.1.tar.gz && \
415407
bash install.sh && \
416408
rm -rf /tmp/*
417409

410+
# Install VSCode
418411
RUN curl -fL https://github.com/cdr/code-server/releases/download/v3.8.0/code-server-3.8.0-linux-amd64.tar.gz \
419412
| tar -C /usr/local/lib -xz && \
420413
mv /usr/local/lib/code-server-3.8.0-linux-amd64 /usr/local/lib/code-server-3.8.0 && \
421414
ln -s /usr/local/lib/code-server-3.8.0/bin/code-server /usr/local/bin/code-server
422415

416+
# Install Jupyterlab extensions
423417
RUN jupyter nbextensions_configurator enable && \
424418
jupyter contrib nbextension install && \
425419
jupyter nbextension enable --py --sys-prefix widgetsnbextension && \
@@ -428,18 +422,17 @@ RUN jupyter nbextensions_configurator enable && \
428422
jupyter labextension install --no-build @krassowski/jupyterlab-lsp && \
429423
jupyter serverextension enable --py jupyter_lsp && \
430424
jupyter labextension install --no-build @jupyterlab/toc && \
431-
# jupyter labextension install @jupyterlab/hdf5
432425
jupyter nbextension enable execute_time/ExecuteTime && \
433426
jupyter nbextension enable toc2/main && \
434427
jupyter labextension install @pyviz/jupyterlab_pyviz && \
435428
jupyter labextension install @bokeh/jupyter_bokeh && \
436429
jupyter labextension install --no-build jupyterlab-nvdashboard && \
437430
jupyter lab build
438431

432+
# Clean up
439433
RUN apt autoclean && \
440434
ln -s /usr/local/cuda-11.1/targets/x86_64-linux/lib/libcusolver.so.11 /usr/local/cuda-11.1/targets/x86_64-linux/lib/libcusolver.so.10 && \
441435
sed -i 's/source \/usr\/local\/nvm\/nvm.sh//' /etc/bash.bashrc && \
442-
python3 -m pip uninstall -y tensorboard-plugin-wit && \
443436
rm -rf /var/lib/apt/lists/* && \
444437
rm -rf /root/.cache && \
445438
rm -rf /tmp/*

commons/requirements.py38.txt

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ boto3==1.9.209
2525
botocore==1.12.209
2626
branca==0.4.0
2727
cachetools==3.1.1
28+
Cartopy==0.18.0
2829
catboost==0.22
2930
category-encoders==2.0.0
3031
certifi==2019.11.28
@@ -43,9 +44,8 @@ coverage==4.5.4
4344
cryptography==3.0
4445
cvxpy==1.0.24
4546
cycler==0.10.0
46-
Cython==0.29.13
47+
Cython==0.29.21
4748
dask==2.9.0
48-
#dataclasses==0.8
4949
deap==1.3.1
5050
decorator==4.4.2
5151
defusedxml==0.6.0
@@ -139,6 +139,7 @@ lxml==4.5.0
139139
Mako==1.0.7
140140
Markdown==3.2.1
141141
MarkupSafe==1.1.1
142+
matplotlib==3.3.3
142143
mccabe==0.6.1
143144
mistune==0.8.4
144145
mlxtend==0.17.2
@@ -159,12 +160,14 @@ networkx==2.4
159160
#ngraph-onnx==0.24.0
160161
#ngraph-tensorflow-bridge==0.18.0
161162
nltk==3.2.5
163+
notebook==6.0.3
162164
numba==0.48.0
163165
numexpr==2.7.0
166+
nvidia-dlprof==0.0.1.dev4
167+
nvidia-pyindex==1.0.5
164168
oauthlib==3.1.0
165169
oauth2client==3.0.0
166170
onnx==1.8.0
167-
#onnx-plaidml==0.6.3
168171
opt-einsum==3.3.0
169172
osqp==0.6.2
170173
packaging==20.3
@@ -178,8 +181,7 @@ pexpect==4.8.0
178181
pickleshare==0.7.5
179182
Pillow==6.2.2
180183
plaidml==0.7.0
181-
#plaidml-keras==0.7.0
182-
plotly==4.5.3
184+
Splotly==4.5.3
183185
pluggy==0.12.0
184186
ply==3.11
185187
portpicker==1.3.1
@@ -253,7 +255,6 @@ scikit-plot==0.3.7
253255
scikit-optimize==0.7.4
254256
scikit-surprise==1.1.0
255257
scooby==0.5.5
256-
#scs==2.1.0
257258
seaborn==0.10.0
258259
selenium==3.141.0
259260
Send2Trash==1.5.0
@@ -284,6 +285,7 @@ tf2onnx==1.5.5
284285
toml==0.10.0
285286
toolz==0.10.0
286287
torch==1.7.1
288+
tornado==6.1
287289
TPOT==0.11.1
288290
tqdm==4.55.1
289291
traitlets==4.3.3

0 commit comments

Comments
 (0)