|
1 |
| - |
2 |
| -FROM lablup/common-base:20.03-py36-cuda10.0 |
| 1 | +FROM lablup/common-base:20.03-py36-cuda10.1 |
3 | 2 |
|
4 | 3 | # Install TensorFlow, Keras, PyTorch and MXNet
|
5 |
| -ENV TENSORFLOW_VERSION=1.15.2 |
6 |
| -#ARG CUDA=10.0 |
| 4 | +ENV TENSORFLOW_VERSION=2.2.0-rc4 |
| 5 | +#ARG CUDA=10.1 |
7 | 6 | #ARG LIBNVINFER=6.0.1-1
|
8 | 7 | #ARG LIBNVINFER_MAJOR_VERSION=6
|
9 | 8 | #ENV CUDNN_VERSION=7.6.4.38-1+cuda10.1
|
10 | 9 | #ENV NCCL_VERSION=2.4.8-1+cuda10.1
|
11 | 10 | ENV DEBIAN_FRONTEND=noninteractive
|
12 | 11 | ENV mecab_dicdir /usr/local/lib/mecab/dic/mecab-ko-dic
|
13 | 12 |
|
| 13 | +ENV PYTHONUNBUFFERED=1 \ |
| 14 | + LD_LIBRARY_PATH="/usr/local/cuda/extras/CUPTI/lib64:/usr/local/cuda/lib64:/usr/local/nvidia/lib64:/usr/include/x86_64-linux-gnu" \ |
| 15 | + PATH="/usr/local/nvidia/bin:/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/bin/mecab" \ |
| 16 | +# LD_LIBRARY_PATH="/usr/local/cuda/extras/CUPTI/lib64:/usr/local/cuda/lib64:/usr/local/nvidia/lib64:/usr/local/cuda/lib64/stubs:/usr/include/x86_64-linux-gnu" \ |
| 17 | + LANG=C.UTF-8 |
| 18 | + |
14 | 19 | # Set default shell to /bin/bash
|
15 | 20 | SHELL ["/bin/bash", "-cu"]
|
16 | 21 |
|
17 |
| -RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 2 |
18 |
| - |
19 |
| -# Install ipython kernelspec |
20 |
| -Run python3 -m ipykernel install --display-name "TensorFlow 1.15 on Python 3.6 (CUDA 10.0)" && \ |
21 |
| - cat /usr/local/share/jupyter/kernels/python3/kernel.json |
22 |
| - |
23 | 22 | RUN python3 -m pip install pip --no-cache-dir \
|
24 |
| - pandas==1.0.1 \ |
25 |
| - tensorflow-gpu==${TENSORFLOW_VERSION} \ |
26 |
| - tensorboard==1.15 \ |
27 | 23 | tensorflow-transform==0.21.2 \
|
28 | 24 | tensorflow_model_analysis==0.21.6 \
|
29 |
| - tensorflow-metadata==0.21.2 \ |
30 | 25 | ngraph-tensorflow-bridge \
|
31 | 26 | adanet==0.8.0
|
32 | 27 |
|
33 | 28 | RUN python3 -m pip install pip --no-cache-dir \
|
| 29 | + pandas==1.0.1 \ |
| 30 | + tensorflow-gpu==${TENSORFLOW_VERSION} \ |
| 31 | + tensorboard==2.1.1 \ |
| 32 | + tensorflow-metadata==0.21.1 \ |
34 | 33 | tensorflow-datasets==2.1.0 \
|
35 | 34 | tensorflow_probability==0.9.0 \
|
36 | 35 | tensorflow-addons==0.8.3 \
|
@@ -74,6 +73,24 @@ RUN python3 -m pip install --no-cache-dir \
|
74 | 73 | mpi4py==3.0.3 \
|
75 | 74 | nni
|
76 | 75 |
|
| 76 | +# Install ipython kernelspec |
| 77 | +Run python3 -m ipykernel install --display-name "TensorFlow 2.2rc0 on Python 3.6 (CUDA 10.1)" && \ |
| 78 | + cat /usr/local/share/jupyter/kernels/python3/kernel.json |
| 79 | + |
| 80 | +# Jupyter notebook extension |
| 81 | +RUN mkdir -p /home/work/.jupyter/nbextension |
| 82 | +WORKDIR /home/work/.jupyter/nbextension |
| 83 | + |
| 84 | +RUN jupyter nbextensions_configurator enable && \ |
| 85 | + jupyter contrib nbextension install && \ |
| 86 | + jupyter nbextension enable --py --sys-prefix widgetsnbextension && \ |
| 87 | + jupyter contrib nbextension install && \ |
| 88 | + jupyter serverextension enable --py jupyterlab --sys-prefix && \ |
| 89 | + jupyter labextension install @jupyter-widgets/jupyterlab-manager && \ |
| 90 | +# jupyter labextension install jupyterlab-nvdashboard && \ |
| 91 | + git clone https://github.com/lambdalisue/jupyter-vim-binding vim_binding && \ |
| 92 | + jupyter nbextension enable /home/work/.jupyter/nbextension/vim_binding/vim_binding |
| 93 | + |
77 | 94 | # Backend.AI specifics
|
78 | 95 | LABEL ai.backend.kernelspec="1" \
|
79 | 96 | ai.backend.envs.corecount="OPENBLAS_NUM_THREADS,OMP_NUM_THREADS,NPROC" \
|
|
0 commit comments