Skip to content

Commit 9e637f7

Browse files
committed
Python Tensorflow 2.2-rc4 python 3.6 & CUDA10.1
1 parent 8302354 commit 9e637f7

File tree

1 file changed

+31
-14
lines changed

1 file changed

+31
-14
lines changed

python-tensorflow/Dockerfile.1.15-py36-cuda10 renamed to python-tensorflow/Dockerfile.2.2-rc4-py36-cuda10.1

Lines changed: 31 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,35 @@
1-
2-
FROM lablup/common-base:20.03-py36-cuda10.0
1+
FROM lablup/common-base:20.03-py36-cuda10.1
32

43
# 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
76
#ARG LIBNVINFER=6.0.1-1
87
#ARG LIBNVINFER_MAJOR_VERSION=6
98
#ENV CUDNN_VERSION=7.6.4.38-1+cuda10.1
109
#ENV NCCL_VERSION=2.4.8-1+cuda10.1
1110
ENV DEBIAN_FRONTEND=noninteractive
1211
ENV mecab_dicdir /usr/local/lib/mecab/dic/mecab-ko-dic
1312

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+
1419
# Set default shell to /bin/bash
1520
SHELL ["/bin/bash", "-cu"]
1621

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-
2322
RUN python3 -m pip install pip --no-cache-dir \
24-
pandas==1.0.1 \
25-
tensorflow-gpu==${TENSORFLOW_VERSION} \
26-
tensorboard==1.15 \
2723
tensorflow-transform==0.21.2 \
2824
tensorflow_model_analysis==0.21.6 \
29-
tensorflow-metadata==0.21.2 \
3025
ngraph-tensorflow-bridge \
3126
adanet==0.8.0
3227

3328
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 \
3433
tensorflow-datasets==2.1.0 \
3534
tensorflow_probability==0.9.0 \
3635
tensorflow-addons==0.8.3 \
@@ -74,6 +73,24 @@ RUN python3 -m pip install --no-cache-dir \
7473
mpi4py==3.0.3 \
7574
nni
7675

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+
7794
# Backend.AI specifics
7895
LABEL ai.backend.kernelspec="1" \
7996
ai.backend.envs.corecount="OPENBLAS_NUM_THREADS,OMP_NUM_THREADS,NPROC" \

0 commit comments

Comments
 (0)