-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile_conda
65 lines (50 loc) · 2.15 KB
/
Dockerfile_conda
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
##
# ojo-bot base image stack using conda
# Target is Heroku using Docker [Everything has to be built in /app ]
#
# Pat Cappelaere Vightel
#
# GDAL (with-python), PROJ, GEOS
# Node.js 4.2.3
#
# Inherit from Heroku's stack
FROM heroku/cedar:14
MAINTAINER Pat Cappelaere <[email protected]>
# Install apt dependencies
RUN apt-get update -qq && apt-get install -y \
build-essential \
curl wget git
RUN mkdir /app /app/user
WORKDIR /app/user
ENV MINICONDA /app/user/miniconda
# Set up Miniconda environment for python2
ENV PATH ${MINICONDA}/bin:$PATH
RUN curl https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -s -o miniconda.sh && \
bash miniconda.sh -p ${MINICONDA} -b
RUN conda update --yes conda && conda install pip --yes
RUN conda install \
netcdf4 libnetcdf proj4 pyproj geos hdf4 hdf5 h5py lxml gdal libgdal \
numpy scipy matplotlib ipython pillow
RUN pip install boto pytrmm python-dateutil
# Install potrace
RUN mkdir ${MINICONDA}/potrace && cd ${MINICONDA}/potrace && wget http://potrace.sourceforge.net/download/1.13/potrace-1.13.tar.gz && tar -zxf potrace-1.13.tar.gz
RUN cd ${MINICONDA}/potrace/potrace-1.13 && ./configure --prefix ${MINICONDA} && make && make install
RUN rm -rf ${MINICONDA}/potrace
# Install grib_api
RUN mkdir ${MINICONDA}/grib && cd ${MINICONDA}/grib && wget https://software.ecmwf.int/wiki/download/attachments/3473437/grib_api-1.14.4-Source.tar.gz && tar -xzvf grib_api-1.14.4-Source.tar.gz
RUN cd ${MINICONDA}/grib/grib_api-1.14.4-Source && ./configure --prefix ${MINICONDA} && make && make install
RUN rm -rf ${MINICONDA}/grib
ENV GRIBAPI_DIR ${MINICONDA}
RUN pip install https://pypi.python.org/packages/source/p/pygrib/pygrib-2.0.1.tar.gz
#
# Install node
#
ENV NODE_ENGINE 4.2.6
RUN mkdir ${MINICONDA}/node && cd ${MINICONDA}/node && wget https://nodejs.org/dist/v${NODE_ENGINE}/node-v${NODE_ENGINE}.tar.gz && tar -zxf node-v${NODE_ENGINE}.tar.gz
RUN cd ${MINICONDA}/node/node-v${NODE_ENGINE} && ./configure --prefix ${MINICONDA} && make && make install
RUN rm -rf ${MINICONDA}/node
# Topojson
RUN npm -g install topojson
# To find EPSG csv files
ENV GDAL_DATA ${MINICONDA}/share/gdal