-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
64 lines (54 loc) · 1.28 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
FROM python:3.8
RUN apt-get update &&\
apt install -y --no-install-recommends \
software-properties-common
RUN apt-get update -y && \
apt-get install -y --no-install-recommends\
g++ \
gcc \
gfortran \
git \
libproj-dev \
proj-data \
proj-bin \
libgeos-dev \
libopenmpi3 \
libopenmpi-dev \
libboost-all-dev \
libhdf5-serial-dev \
libffi-dev \
netcdf-bin \
libnetcdf-dev
RUN python3 -m pip install --upgrade setuptools pip wheel
# Check python & pip
RUN python --version
RUN which python
RUN pip --version
RUN which pip
COPY ./ /pySHiELD/
# Install pySHiELD and the full dependencies
RUN pip install -e pySHiELD[develop]
RUN pip install \
matplotlib \
cython \
cartopy \
ipyparallel \
jupyter \
jupyterlab \
shapely \
jupyterlab_code_formatter \
mpi4py \
pytest \
pytest-subtests \
pytest-regressions \
pytest-profiling \
pytest-cov
# # set up for fv3viz
RUN cd /
RUN git clone --recursive https://github.com/ai2cm/fv3net.git
RUN cd fv3net && git checkout 1d168ef
RUN pip install fv3net/external/vcm
ENV PYTHONPATH=/fv3net/external/fv3viz
ENV CFLAGS="-I/usr/include -DACCEPT_USE_OF_DEPRECATED_PROJ_API_H=1"
ENV OMPI_ALLOW_RUN_AS_ROOT=1
ENV OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1