-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
85 lines (75 loc) · 2.01 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
84
85
FROM ubuntu:latest
RUN apt-get update \
&& apt-get -y install \
wget \
bzip2 \
git \
gcc \
cmake \
gfortran \
libopenjpeg-dev \
libpng-dev \
libnetcdf-dev \
python \
python-tables \
hdf5-tools \
libhdf5-dev \
libhdf5-serial-dev\
python-numpy \
python-pandas \
python-netcdf4 \
python-tk \
python-pip \
vim \
&& apt-get clean
RUN pip --no-cache-dir install --upgrade pip \
&& pip --no-cache-dir install numpy netcdf4 matplotlib pyproj boto3==1.4.6
RUN mkdir geos \
&& cd geos \
&& mkdir build \
&& wget -O geos.tar.bz2 "http://download.osgeo.org/geos/geos-3.6.2.tar.bz2" \
&& bzip2 -d geos.tar.bz2 \
&& tar -xvf geos.tar \
&& rm geos.tar \
&& cd geos-3.6.2 \
&& ./configure \
&& make \
&& make check \
&& make install \
&& pwd \
&& rm -rf /geos
RUN mkdir basemap \
&& cd basemap \
&& mkdir build \
&& wget -O basemap.tar.gz "https://codeload.github.com/matplotlib/basemap/tar.gz/v1.1.0" \
&& tar -xzf basemap.tar.gz \
&& rm basemap.tar.gz \
&& cd basemap-1.1.0 \
&& python setup.py install \
&& cd examples \
# && python simpletest.py \
&& pwd \
&& rm -rf /basemap
RUN mkdir eccodes \
&& cd eccodes \
&& mkdir build \
&& cd build \
&& wget -O eccodes_test_data.tar.gz "http://download.ecmwf.org/test-data/grib_api/eccodes_test_data.tar.gz" \
&& tar -xzf eccodes_test_data.tar.gz \
&& rm eccodes_test_data.tar.gz \
&& cd /eccodes \
&& wget -O eccodes.tar.gz "https://software.ecmwf.int/wiki/download/attachments/45757960/eccodes-2.4.1-Source.tar.gz?api=v2" \
&& tar -xzf eccodes.tar.gz \
&& cd build \
&& pwd \
&& cmake -DCMAKE_INSTALL_PREFIX=/usr/local -DENABLE_PYTHON=ON -DENABLE_MEMFS=ON -DENABLE_PNG=ON ../eccodes-2.4.1-Source \
&& make \
&& ctest \
&& make install \
&& pwd \
&& rm -rf /eccodes
ENV AWS_CONFIG_FILE=/aws/config
WORKDIR /app
COPY app /app
COPY cmd.sh /
CMD ["/cmd.sh"]