Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ubuntu 16.04 python2.7 dockerfiles #7

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
To test building Dockerfiles use `make testall`
42 changes: 42 additions & 0 deletions ubuntu16.04/python2.7/cuda8.0-runtime/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
FROM nvidia/cuda:8.0-runtime-ubuntu16.04

LABEL maintainer "CloudCV Team <team@cloudcv.org>"
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
42 changes: 42 additions & 0 deletions ubuntu16.04/python2.7/cuda9.0-base/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
FROM nvidia/cuda:9.0-base-ubuntu16.04

LABEL maintainer "CloudCV Team <team@cloudcv.org>"
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