@@ -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
164165RUN 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
187188WORKDIR /tmp
188189RUN 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
197192WORKDIR /tmp
193+ # OpenBlas
198194RUN 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
202199RUN 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
214211RUN 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-
265257WORKDIR /tmp
266258COPY ./requirements.py38.txt /tmp
267259RUN 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
412404WORKDIR /tmp
413405RUN 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
418411RUN 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
423417RUN 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
439433RUN 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/*
0 commit comments