-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
53 lines (46 loc) · 1.58 KB
/
Dockerfile
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
FROM ubuntu:16.04
LABEL org.opencontainers.image.source="https://github.com/WikiWatershed/docker-taudem"
MAINTAINER Azavea <[email protected]>
ENV GDAL_VERSION 2.1.0
ENV OPEN_MPI_SHORT_VERSION 1.8
ENV OPEN_MPI_VERSION 1.8.1
ENV TAUDEM_VERSION 5.3.8
RUN apt-get update && apt-get install -y \
build-essential \
g++ \
gfortran \
python-all-dev \
python-pip \
python-numpy \
libblas-dev \
liblapack-dev \
libgeos-dev \
libproj-dev \
libspatialite-dev \
libspatialite7 \
spatialite-bin \
libibnetdisc-dev \
wget
RUN wget -qO- http://download.osgeo.org/gdal/${GDAL_VERSION}/gdal-${GDAL_VERSION}.tar.gz \
| tar -xzC /usr/src \
&& cd /usr/src/gdal-${GDAL_VERSION} \
&& ./configure --with-python --with-spatialite \
&& make install
RUN wget -qO- https://www.open-mpi.org/software/ompi/v${OPEN_MPI_SHORT_VERSION}/downloads/openmpi-${OPEN_MPI_VERSION}.tar.gz \
| tar -xzC /usr/src \
&& cd /usr/src/openmpi-${OPEN_MPI_VERSION} \
&& ./configure \
&& make install \
&& ldconfig
# Download and build taudem
# The release tags start with "v" but the folder inside the archive doesn't.
RUN wget -qO- https://github.com/dtarb/TauDEM/archive/v${TAUDEM_VERSION}.tar.gz \
| tar -xzC /usr/src \
# Remove the TestSuite directory because it contains large files
# that we don't need.
&& rm -rf /usr/src/TauDEM-${TAUDEM_VERSION}/TestSuite \
&& cd /usr/src/TauDEM-${TAUDEM_VERSION}/src \
&& make
RUN ln -s /usr/src/TauDEM-${TAUDEM_VERSION} /opt/taudem
ENV PATH /opt/taudem:$PATH
RUN pip install --upgrade "pip<21"