forked from NICTA/obsidian
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
75 lines (51 loc) · 1.23 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
# Create a Docker container with Stateline and Geostate
FROM fedora:20
# Dependencies
RUN yum -y groupinstall "Development Libraries" "Development Tools"
RUN yum -y install \
bzip2 \
bzip2-devel \
cmake \
gcc-c++ \
numpy \
python3-devel \
python-basemap \
python-shapely \
pyshp \
scipy \
wget
# Geostate prereqs
RUN cd /tmp && \
wget http://ab-initio.mit.edu/nlopt/nlopt-2.4.1.tar.gz && \
tar zxf nlopt-2.4.1.tar.gz && \
cd nlopt-2.4.1 && \
./configure --with-pic && \
make -j$(nproc) && \
make install && \
rm -rf /tmp/nlopt-*
RUN cd /tmp && \
wget http://download.osgeo.org/geos/geos-3.4.2.tar.bz2 && \
tar xf geos-3.4.2.tar.bz2 && \
cd geos-3.4.2 && \
./configure && \
make -j$(nproc) && \
make install && \
rm -rf /tmp/geos-*
RUN ldconfig
# Build Stateline prereqs
COPY stateline/prereqs /opt/stateline/prereqs
RUN cd /opt/stateline/prereqs && \
./buildPrereqs.sh
ENV LD_LIBRARY_PATH /opt/stateline/prereqs/lib
# Build Stateline
COPY stateline /opt/stateline
RUN cd /opt/stateline && \
./build.sh && \
make -j$(nproc)
# Build Geostate
COPY geostate /opt/geostate
ENV PYTHONPATH /opt/geostate
RUN cd /opt/geostate/tectonic && \
tar xzf data.tar.gz
RUN cd /opt/geostate && \
make -j$(nproc)