-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathDockerfile
More file actions
50 lines (40 loc) · 1.65 KB
/
Dockerfile
File metadata and controls
50 lines (40 loc) · 1.65 KB
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
# Copyright (c) 2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
#
# This work is licensed under a Creative Commons
# Attribution-NonCommercial-ShareAlike 4.0 International License.
# You should have received a copy of the license along with this
# work. If not, see http://creativecommons.org/licenses/by-nc-sa/4.0/
FROM nvcr.io/nvidia/pytorch:24.12-py3
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
RUN apt-get update && apt-get install -y \
--no-install-recommends \
ffmpeg \
git-lfs \
nco \
netcdf-bin \
&& rm -rf /var/lib/apt/lists/*
# install cartopy dependencies
RUN apt-get update && apt-get install -y \
--no-install-recommends \
libgeos-dev \
&& rm -rf /var/lib/apt/lists/* \
pip install cartopy
RUN pip install --no-build-isolation https://github.com/NVIDIA/torch-harmonics/archive/refs/tags/v0.7.4.tar.gz
COPY docker/install_cdo.sh /tmp/install_cdo.sh
RUN apt-get update && bash /tmp/install_cdo.sh && rm -rf /var/lib/apt/lists/*
ARG EARTH2GRID_VERSION=main
#baa00d28e647fc731dfaa44ee45a86131d50bcf5
RUN pip install --no-build-isolation https://github.com/NVlabs/earth2grid/archive/${EARTH2GRID_VERSION}.tar.gz
RUN cd /opt && \
git clone https://github.com/NVlabs/cBottle.git && \
cd cBottle && pip install -e .
WORKDIR /opt
RUN curl -L https://github.com/ClimateGlobalChange/tempestextremes/archive/refs/tags/v2.3.1.tar.gz | tar xz && \
cd tempestextremes-* && \
mkdir build && \
cd build && \
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local/ -DCMAKE_PREFIX_PATH=MPI_ROOT .. && \
make && make install && \
cd /tmp && rm -rf tempestextremes*
WORKDIR /workspace