-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
23 lines (19 loc) · 1.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
FROM bitnami/minideb:bullseye
RUN install_packages build-essential gfortran cmake \
python3-pip python3-venv python3-setuptools python3-wheel python3-dev \
r-base libcurl4-openssl-dev libgdal-dev libudunits2-dev libssl-dev \
tmux vim-tiny git curl
# Install DSSAT
RUN cd /usr/local/src && \
git clone https://github.com/DSSAT/dssat-csm-os && \
cd dssat-csm-os && git checkout tags/v4.8.0.23hf2 -b 4.8.0.23hf2 && \
mkdir build && cd build && cmake -DCMAKE_INSTALL_PREFIX=/opt/dssat -DCMAKE_BUILD_TYPE=RELEASE .. && \
make && make install
RUN curl -sSL https://install.python-poetry.org/ | python3 - && \
cd /usr/local/src && \
git clone https://github.com/DSSAT/pythia && cd pythia && \
git checkout tags/2.1.6 -b 2.1.6 && \
/root/.local/bin/poetry build && cd dist && pip3 install pythia-2.1.6-py3-none-any.whl
# Install pythia-analytics
RUN cd /opt && git clone https://github.com/DSSAT/supermaas-aggregate-pythia-outputs pythia-analytics && \
cd pythia-analytics && git checkout 4062c972097b80ab62309e2d2cea1061264b3f5d -b dev1