Skip to content

Commit b7a9d7a

Browse files
committed
made base dockerfile
1 parent cc907e7 commit b7a9d7a

2 files changed

Lines changed: 82 additions & 73 deletions

File tree

Dockerfile

Lines changed: 1 addition & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -1,78 +1,6 @@
1-
FROM fcollman/render:latest
1+
FROM fcollman/render-python-base
22
MAINTAINER Forrest Collman (forrest.collman@gmail.com)
33

4-
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8
5-
6-
RUN apt-get update --fix-missing && apt-get install -y wget bzip2 ca-certificates \
7-
libglib2.0-0 libxext6 libsm6 libxrender1 \
8-
git mercurial subversion
9-
10-
RUN echo 'export PATH=/opt/conda/bin:$PATH' > /etc/profile.d/conda.sh && \
11-
wget --quiet https://repo.continuum.io/miniconda/Miniconda2-4.3.11-Linux-x86_64.sh -O ~/miniconda.sh && \
12-
/bin/bash ~/miniconda.sh -b -p /opt/conda && \
13-
rm ~/miniconda.sh
14-
15-
RUN apt-get install -y curl grep sed dpkg && \
16-
TINI_VERSION=`curl https://github.com/krallin/tini/releases/latest | grep -o "/v.*\"" | sed 's:^..\(.*\).$:\1:'` && \
17-
curl -L "https://github.com/krallin/tini/releases/download/v${TINI_VERSION}/tini_${TINI_VERSION}.deb" > tini.deb && \
18-
dpkg -i tini.deb && \
19-
rm tini.deb && \
20-
apt-get clean
21-
22-
# RUN apt-get update --fix-missing && apt-get install -y wget bzip2 ca-certificates \
23-
# libglib2.0-0 libxext6 libsm6 libxrender1 \
24-
# git mercurial subversion
25-
26-
# RUN echo 'export PATH=/opt/conda/bin:$PATH' > /etc/profile.d/conda.sh && \
27-
# wget --quiet https://repo.continuum.io/archive/Anaconda2-4.3.1-Linux-x86_64.sh -O ~/anaconda.sh && \
28-
# /bin/bash ~/anaconda.sh -b -p /opt/conda && \
29-
# rm ~/anaconda.sh
30-
31-
# RUN apt-get install -y curl grep sed dpkg && \
32-
# TINI_VERSION=`curl https://github.com/krallin/tini/releases/latest | grep -o "/v.*\"" | sed 's:^..\(.*\).$:\1:'` && \
33-
# curl -L "https://github.com/krallin/tini/releases/download/v${TINI_VERSION}/tini_${TINI_VERSION}.deb" > tini.deb && \
34-
# dpkg -i tini.deb && \
35-
# rm tini.deb && \
36-
# apt-get clean
37-
38-
ENV PATH /opt/conda/bin:$PATH
39-
40-
#install java
41-
# auto validate license
42-
#RUN echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections
43-
#RUN echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee /etc/apt/sources.list.d/webupd8team-java.list
44-
#RUN echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee -a /etc/apt/sources.list.d/webupd8team-java.list
45-
#RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
46-
#RUN apt-get update
47-
#RUN apt-get install oracle-java8-installer -y
48-
#ENV JAVA_HOME /www/var/render/deploy/jdkd
49-
50-
#install pathos,multiprocess with gcc
51-
RUN apt-get update
52-
RUN apt-get install gcc build-essential libgeos-dev imagemagick -y
53-
RUN apt-get install python-setuptools python-dev -y
54-
#RUN apt-get install libblas-dev liblapack-dev -y
55-
RUN apt-get clean
56-
57-
58-
#install components for common render-python apps
59-
#jupyter notebook, shapely with geos
60-
# RUN /opt/conda/bin/conda install jupyter -y
61-
62-
63-
#RUN easy_install pip
64-
#RUN pip install -U pip setuptools
65-
RUN pip install shapely==1.6b2
66-
RUN pip install opencv-python
67-
RUN pip install dill==0.2.6
68-
RUN pip install multiprocess==0.70.5
69-
RUN pip install pathos==0.2.0
70-
RUN pip install pillow
71-
RUN conda install scipy
72-
RUN pip install setuptools --upgrade --disable-pip-version-check
73-
#install render python using pip from github
74-
#RUN pip install -e git+https://github.com/fcollman/render-python.git@master#egg=render-python
75-
764
RUN mkdir -p /usr/local/render-python
775
COPY . /usr/local/render-python
786
WORKDIR /usr/local/render-python

Dockerfile.base

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
2+
FROM fcollman/render:latest
3+
MAINTAINER Forrest Collman (forrest.collman@gmail.com)
4+
5+
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8
6+
7+
RUN apt-get update --fix-missing && apt-get install -y wget bzip2 ca-certificates \
8+
libglib2.0-0 libxext6 libsm6 libxrender1 \
9+
git mercurial subversion
10+
11+
RUN echo 'export PATH=/opt/conda/bin:$PATH' > /etc/profile.d/conda.sh && \
12+
wget --quiet https://repo.continuum.io/miniconda/Miniconda2-4.3.11-Linux-x86_64.sh -O ~/miniconda.sh && \
13+
/bin/bash ~/miniconda.sh -b -p /opt/conda && \
14+
rm ~/miniconda.sh
15+
16+
RUN apt-get install -y curl grep sed dpkg && \
17+
TINI_VERSION=`curl https://github.com/krallin/tini/releases/latest | grep -o "/v.*\"" | sed 's:^..\(.*\).$:\1:'` && \
18+
curl -L "https://github.com/krallin/tini/releases/download/v${TINI_VERSION}/tini_${TINI_VERSION}.deb" > tini.deb && \
19+
dpkg -i tini.deb && \
20+
rm tini.deb && \
21+
apt-get clean
22+
23+
# RUN apt-get update --fix-missing && apt-get install -y wget bzip2 ca-certificates \
24+
# libglib2.0-0 libxext6 libsm6 libxrender1 \
25+
# git mercurial subversion
26+
27+
# RUN echo 'export PATH=/opt/conda/bin:$PATH' > /etc/profile.d/conda.sh && \
28+
# wget --quiet https://repo.continuum.io/archive/Anaconda2-4.3.1-Linux-x86_64.sh -O ~/anaconda.sh && \
29+
# /bin/bash ~/anaconda.sh -b -p /opt/conda && \
30+
# rm ~/anaconda.sh
31+
32+
# RUN apt-get install -y curl grep sed dpkg && \
33+
# TINI_VERSION=`curl https://github.com/krallin/tini/releases/latest | grep -o "/v.*\"" | sed 's:^..\(.*\).$:\1:'` && \
34+
# curl -L "https://github.com/krallin/tini/releases/download/v${TINI_VERSION}/tini_${TINI_VERSION}.deb" > tini.deb && \
35+
# dpkg -i tini.deb && \
36+
# rm tini.deb && \
37+
# apt-get clean
38+
39+
ENV PATH /opt/conda/bin:$PATH
40+
41+
#install java
42+
# auto validate license
43+
#RUN echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections
44+
#RUN echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee /etc/apt/sources.list.d/webupd8team-java.list
45+
#RUN echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee -a /etc/apt/sources.list.d/webupd8team-java.list
46+
#RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
47+
#RUN apt-get update
48+
#RUN apt-get install oracle-java8-installer -y
49+
#ENV JAVA_HOME /www/var/render/deploy/jdkd
50+
51+
#install pathos,multiprocess with gcc
52+
RUN apt-get update
53+
RUN apt-get install gcc build-essential libgeos-dev imagemagick -y
54+
RUN apt-get install python-setuptools python-dev -y
55+
#RUN apt-get install libblas-dev liblapack-dev -y
56+
RUN apt-get clean
57+
58+
59+
#install components for common render-python apps
60+
#jupyter notebook, shapely with geos
61+
# RUN /opt/conda/bin/conda install jupyter -y
62+
63+
64+
#RUN easy_install pip
65+
#RUN pip install -U pip setuptools
66+
RUN pip install shapely==1.6b2
67+
RUN pip install opencv-python
68+
RUN pip install dill==0.2.6
69+
RUN pip install multiprocess==0.70.5
70+
RUN pip install pathos==0.2.0
71+
RUN pip install pillow
72+
RUN conda install scipy
73+
RUN pip install setuptools --upgrade --disable-pip-version-check
74+
RUN mkdir -p /usr/local/render-python
75+
COPY . /usr/local/render-python
76+
WORKDIR /usr/local/render-python
77+
RUN pip install -r requirements.txt
78+
RUN pip install -r ./test/requirements.txt
79+
#install render python using pip from github
80+
#RUN pip install -e git+https://github.com/fcollman/render-python.git@master#egg=render-python
81+

0 commit comments

Comments
 (0)