-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
76 lines (64 loc) · 2.2 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
FROM 018923174646.dkr.ecr.us-west-2.amazonaws.com/espa/external-c2
ENV PREFIX=/usr/local \
SRC_DIR=/usr/local/src \
GCTPLIB=/usr/local/lib \
HDFLIB=/usr/local/lib \
ZLIB=/usr/local/lib \
SZLIB=/usr/local/lib \
JPGLIB=/usr/local/lib \
PROJLIB=/usr/local/lib \
HDFINC=/usr/local/include \
GCTPINC=/usr/local/include \
GCTPLINK="-lGctp -lm" \
HDFLINK=" -lmfhdf -ldf -lm" \
ECS_ENABLE_TASK_IAM_ROLE=true \
PYTHONPATH="${PYTHONPATH}:${PREFIX}/lib/python3.6/site-packages" \
ACCODE=LaSRCL8V3.5.1 \
LC_ALL=en_US.utf-8 \
LANG=en_US.utf-8
# Python base dependencies
RUN pip3 install scipy awscli gdal~=2.4
RUN ln -fs /usr/bin/python3 /usr/bin/python
# The Python click library requires a set locale
RUN localedef -i en_US -f UTF-8 en_US.UTF-8
# Move common files to source directory
COPY ./hls_libs/common $SRC_DIR
# Move and compile tiling
COPY ./hls_libs/tiling ${SRC_DIR}/tiling
RUN cd ${SRC_DIR}/tiling \
&& make \
&& make clean \
&& make install \
&& cd $SRC_DIR \
&& rm -rf tiling
# Move and compile nbar
COPY ./hls_libs/nbar ${SRC_DIR}/nbar
RUN cd ${SRC_DIR}/nbar \
&& make \
&& make clean \
&& make install \
&& cd $SRC_DIR \
&& rm -rf nbar
# Move and compile angle_tiling
COPY ./hls_libs/angle_tiling ${SRC_DIR}/angle_tiling
RUN cd ${SRC_DIR}/angle_tiling \
&& make \
&& make clean \
&& make install \
&& cd $SRC_DIR \
&& rm -rf angle_tiling
RUN pip3 install click==7.1.2
RUN pip3 install rio-cogeo==1.1.10 --no-binary rasterio --user
RUN pip3 install git+https://github.com/NASA-IMPACT/[email protected]
RUN pip3 install git+https://github.com/NASA-IMPACT/[email protected]
RUN pip3 install wheel
RUN pip3 install git+https://github.com/NASA-IMPACT/[email protected]
RUN pip3 install libxml2-python3
RUN pip3 install git+https://github.com/NASA-IMPACT/[email protected]
RUN pip3 install git+https://github.com/NASA-IMPACT/[email protected]
RUN pip3 install git+https://github.com/NASA-IMPACT/[email protected]
RUN pip3 install git+https://github.com/NASA-IMPACT/[email protected]
COPY ./python_scripts/* ${PREFIX}/bin/
COPY ./scripts/* ${PREFIX}/bin/
ENTRYPOINT ["/bin/sh", "-c"]
CMD ["landsat-tile.sh"]