Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
FROM debian

RUN apt-get update && DEBIAN_FRONTEND=noninteractive TZ=Europe/UTC apt-get install -y \
tzdata \
default-jdk \
git \
mpich \
python3 \
python3-pip \
python3-venv \
wget \
&& rm -rf /var/lib/apt/lists/*

# Install f90wrap
RUN python3 -m venv /root/venv \
&& /root/venv/bin/pip3 install f90wrap
ENV PATH=/root/venv/bin:$PATH

COPY . /opt/dassflow/dassflow2d/

# Install tapenade
RUN wget https://tapenade.gitlabpages.inria.fr/tapenade/distrib/tapenade_3.16.tar \
&& tar xvfz tapenade_3.16.tar \
&& mv tapenade_3.16 /opt/dassflow/tapenade/ \
&& rm tapenade_3.16.tar

ENV PATH=$PATH:/opt/dassflow/tapenade/bin

# Compile project
RUN cd /opt/dassflow/dassflow2d/code/ \
&& rm -r ./bin_A/* && cp -r ../cases/tuto_case/1_lake-at-rest/bin_A/* ./bin_A \
&& make install

CMD ["/bin/bash"]