-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile.transpose_geom
33 lines (27 loc) · 1.28 KB
/
Dockerfile.transpose_geom
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
# Dockerfile supporting plugin for SST modeling runs
FROM osgeo/gdal:ubuntu-small-3.5.1 as prod
RUN apt-get update && \
apt-get install -y python3-pip && \
pip3 install rasterio --no-binary rasterio
WORKDIR /misc
# install pydsstools from source
RUN apt-get install -y build-essential
RUN apt-get install -y gfortran
RUN apt-get install -y git
RUN apt-get install -y unzip
RUN git clone https://github.com/Dewberry/pydsstools.git
# download good heclib files
RUN mkdir heclib && curl https://www.hec.usace.army.mil/nexus/repository/maven-public/mil/army/usace/hec/heclib/7-IP-10-linux-x86_64/heclib-7-IP-10-linux-x86_64.zip --output heclib/heclib-7-IP-10-linux-x86_64.zip
RUN ( cd heclib && unzip heclib-7-IP-10-linux-x86_64.zip )
# replace corrupt heclib files
RUN rm -r pydsstools/pydsstools/src/external/dss/headers
RUN rm pydsstools/pydsstools/src/external/dss/linux64/heclib.a
RUN cp -a heclib/headers pydsstools/pydsstools/src/external/dss/headers
RUN cp -a heclib/heclib.a pydsstools/pydsstools/src/external/dss/linux64/heclib.a
# install
RUN ( cd pydsstools && python3 -m pip install . )
# copy scripts called by SST modeling script
COPY stormcloud/storms/. storms/.
# copy main script and install required packages
COPY stormcloud/etl/transpose_geom/. .
RUN pip3 install -r requirements.txt