-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
83 lines (66 loc) · 2.68 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# Ubuntu 14.04 Trusty Tahyr
#docker run --rm -v <path to directory with ancilliary data>:/opt/ledaps -v <path to local directory with data>:/data -v <path to directory for results>:/results name_image <path to ancilliary data in docker> <path to source data in docker/L*.*.tar.bz> <path to destiny results in docker>
#Example:
#docker run -v /Users/ledaps_anc:/opt/ledaps -v /Users/data:/data -v /Users/results:/results name_image /opt/ledaps /data/LE70210481999203AGS00.tar.bz /results
# Ubuntu 14.04 Trusty Tahyr
FROM ubuntu:trusty
MAINTAINER Amaury Gutierrez, Erick Palacios <[email protected], [email protected]>
USER root
RUN apt-get update -y && \
apt-get install -y \
zlib1g \
zlib1g-dev \
libtiff5 \
libtiff5-dev \
libgeotiff2 \
libgeotiff-dev \
libxml2 \
libxml2-dev \
curl \
gfortran \
bison \
byacc \
flex \
g++ \
csh \
make \
nano \
git \
subversion \
python
ENV USERNAME=root
RUN mkdir /usr/local/hdf4
RUN chown $USERNAME /usr/local/hdf4
RUN cd /usr/local/hdf4 && curl http://www.hdfgroup.org/ftp/HDF/HDF_Current/src/hdf-4.2.11.tar.gz -O && tar -xzvf hdf-4.2.11.tar.gz
RUN cd /usr/local/hdf4/hdf-4.2.11 && ./configure && make check install && ldconfig
RUN mkdir /usr/local/hdf-eos
RUN chown $USERNAME /usr/local/hdf-eos
RUN cd /usr/local/hdf-eos && curl ftp://edhs1.gsfc.nasa.gov/edhs/hdfeos/latest_release/HDF-EOS2.19v1.00.tar.Z -O && tar -xzvf HDF-EOS2.19v1.00.tar.Z
RUN cd /usr/local/hdf-eos/hdfeos && ./configure -enable-install-include CC=/usr/local/hdf4/hdf-4.2.11/hdf4/bin/h4cc && make check install && ldconfig
ENV HDFEOS_GCTPINC="/usr/local/hdf-eos/hdfeos/hdfeos2/include"
ENV HDFEOS_GCTPLIB="/usr/local/hdf-eos/hdfeos/hdfeos2/lib"
ENV TIFFINC="/usr/include/x86_64-linux-gnu/"
ENV TIFFLIB="/usr/lib/x86_64-linux-gnu/"
ENV GEOTIFF_INC="/usr/include/geotiff/"
ENV GEOTIFF_LIB="/usr/lib/"
ENV HDFINC="/usr/local/hdf4/hdf-4.2.11/hdf4/include/"
ENV HDFLIB="/usr/local/hdf4/hdf-4.2.11/hdf4/lib/"
ENV HDFEOS_INC="/usr/local/hdf-eos/hdfeos/include/"
ENV HDFEOS_LIB="/usr/local/hdf-eos/hdfeos/hdfeos2/lib"
ENV JPEGINC="/usr/include/"
ENV JPEGLIB="/usr/lib/x86_64-linux-gnu/"
ENV XML2INC="/usr/include/libxml2/"
ENV XML2LIB="/usr/lib/x86_64-linux-gnu/"
ENV ZLIBINC="/usr/include/"
ENV ZLIBLIB="/usr/lib/x86_64-linux-gnu/"
ENV BIN="/usr/local/bin/ledapsSrc/bin"
RUN svn checkout http://ledaps.googlecode.com/svn/releases/version_1.3.0 /usr/local/bin
RUN cd /usr/local/bin/ledapsSrc/src && make
RUN cd /usr/local/bin/ledapsSrc/src && make install
RUN cd $BIN && chmod gou+x lndsrbm.ksh
#VOLUME ["/opt/ledaps", "/data", "/results"]
RUN mkdir -p /opt/ledaps
RUN cp $BIN/do_ledaps.csh /opt/ledaps/
#ADD shell_script /opt/shell_script
#WORKDIR /results
#ENTRYPOINT ["/opt/shell_script"]