From 77db03cc40e126124a64c184949cfd3f746bfc92 Mon Sep 17 00:00:00 2001 From: Deepesh Pathak Date: Thu, 5 Jul 2018 23:07:37 +0530 Subject: [PATCH 1/2] feat(dockerfiles): add ubuntu16.04/python2.7 dockerfiles --- .../python2.7/cuda8.0-runtime/Dockerfile | 42 +++++++++++++++++++ ubuntu16.04/python2.7/cuda9.0-base/Dockerfile | 42 +++++++++++++++++++ 2 files changed, 84 insertions(+) create mode 100644 ubuntu16.04/python2.7/cuda8.0-runtime/Dockerfile create mode 100644 ubuntu16.04/python2.7/cuda9.0-base/Dockerfile diff --git a/ubuntu16.04/python2.7/cuda8.0-runtime/Dockerfile b/ubuntu16.04/python2.7/cuda8.0-runtime/Dockerfile new file mode 100644 index 0000000..1ec09cb --- /dev/null +++ b/ubuntu16.04/python2.7/cuda8.0-runtime/Dockerfile @@ -0,0 +1,42 @@ +FROM nvidia/cuda:8.0-runtime-ubuntu16.04 + +LABEL maintainer "CloudCV Team " +LABEL version "0.1" + +ENV DEBIAN_FRONTEND noninteractive + +ENV LANG C.UTF-8 +ENV PYTHONIOENCODING UTF-8 + +ENV PYTHON_VERSION 2.7.15 +ENV PYTHON_PIP_VERSION 10.0.1 + + +RUN apt-get update && \ + apt-get install -y --no-install-recommends build-essential gcc libssl-dev libc6-dev \ + dpkg-dev tcl-dev tk-dev wget && \ + rm -rf /var/lib/apt/lists/* + +RUN wget "http://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tgz" + +RUN tar xzf "Python-${PYTHON_VERSION}.tgz" && \ + rm "Python-${PYTHON_VERSION}.tgz" + +RUN cd "Python-${PYTHON_VERSION}" && \ + ./configure --enable-shared && \ + make && \ + make install && \ + cd .. && \ + rm -rf "Python-${PYTHON_VERSION}" + +RUN apt-get purge -y --auto-remove dpkg-dev tcl-dev tk-dev + +ENV LD_LIBRARY_PATH "/usr/local/lib:/usr/local/bin/python:${LD_LIBRARY_PATH}" + +RUN wget -O get-pip.py "https://bootstrap.pypa.io/get-pip.py" +RUN python get-pip.py \ + --disable-pip-version-check \ + --no-cache-dir "pip==${PYTHON_PIP_VERSION}" +RUN rm -f get-pip.py +RUN pip install --no-cache-dir virtualenv +RUN pip install setuptools diff --git a/ubuntu16.04/python2.7/cuda9.0-base/Dockerfile b/ubuntu16.04/python2.7/cuda9.0-base/Dockerfile new file mode 100644 index 0000000..e35a210 --- /dev/null +++ b/ubuntu16.04/python2.7/cuda9.0-base/Dockerfile @@ -0,0 +1,42 @@ +FROM nvidia/cuda:9.0-base-ubuntu16.04 + +LABEL maintainer "CloudCV Team " +LABEL version "0.1" + +ENV DEBIAN_FRONTEND noninteractive + +ENV LANG C.UTF-8 +ENV PYTHONIOENCODING UTF-8 + +ENV PYTHON_VERSION 2.7.15 +ENV PYTHON_PIP_VERSION 10.0.1 + + +RUN apt-get update && \ + apt-get install -y --no-install-recommends build-essential gcc libssl-dev libc6-dev \ + dpkg-dev tcl-dev tk-dev wget && \ + rm -rf /var/lib/apt/lists/* + +RUN wget "http://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tgz" + +RUN tar xzf "Python-${PYTHON_VERSION}.tgz" && \ + rm "Python-${PYTHON_VERSION}.tgz" + +RUN cd "Python-${PYTHON_VERSION}" && \ + ./configure --enable-shared && \ + make && \ + make install && \ + cd .. && \ + rm -rf "Python-${PYTHON_VERSION}" + +RUN apt-get purge -y --auto-remove dpkg-dev tcl-dev tk-dev + +ENV LD_LIBRARY_PATH "/usr/local/lib:/usr/local/bin/python:${LD_LIBRARY_PATH}" + +RUN wget -O get-pip.py "https://bootstrap.pypa.io/get-pip.py" +RUN python get-pip.py \ + --disable-pip-version-check \ + --no-cache-dir "pip==${PYTHON_PIP_VERSION}" +RUN rm -f get-pip.py +RUN pip install --no-cache-dir virtualenv +RUN pip install setuptools From e38543a76780b6c2377d7bcdca36d384d441fe4a Mon Sep 17 00:00:00 2001 From: Deepesh Pathak Date: Thu, 5 Jul 2018 23:11:11 +0530 Subject: [PATCH 2/2] feat(readme): add dockerfile links to readme --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 14d2d68..9d8e919 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,12 @@ Origami dockerfiles. * [Origami Jenkins Base Dockerfile](/origami_base/Dockerfile) +* [ubuntu14.04/python2.7/cuda8.0-runtime Dockerfile](/ubuntu14.04/python2.7/cuda8.0-runtime/Dockerfile) +* [ubuntu14.04/python3.5/cuda7.0-runtime Dockerfile](/ubuntu14.04/python3.5/cuda7.0-runtime/Dockerfile) +* [ubuntu16.04/python2.7/cuda8.0-runtime Dockerfile](/ubuntu16.04/python2.7/cuda8.0-runtime/Dockerfile) +* [ubuntu16.04/python2.7/cuda9.0-base Dockerfile](/ubuntu16.04/python2.7/cuda9.0-base/Dockerfile) + ## Testing -To test building Dockerfiles use `make testall` \ No newline at end of file +To test building Dockerfiles use `make testall`