forked from schism-dev/schism
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
29 lines (23 loc) · 1.09 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
# SPDX-FileCopyrightText: 2022 Helmholtz-Zentrum Hereon
# SPDX-License-Identifier: CC0-1.0
# SPDX-FileContributor Carsten Lemmen <[email protected]
FROM phusion/baseimage:jammy-1.0.1
LABEL description="SCHISM Docker environment based on Ubuntu"
LABEL author="Carsten Lemmen <[email protected]>"
LABEL license="CC0-1.0"
LABEL copyright="2022 Helmholtz-Zentrum Hereon"
# Arguments can be passed via the --build-arg key=value command to the
# docker build command. The default values are set below to mpich, oldio=on,
# and superbee
ARG COMMUNICATOR="mpich"
ARG OLDIO="ON"
ARG TVD_LIM="SB"
RUN apt update && apt -qy install cmake gcc-11 python3 \
python-is-python3 lib${COMMUNICATOR}-dev libmetis-dev libnetcdf-dev \
libnetcdff-dev libparmetis-dev git
ENV PATH="/usr/lib64/${COMMUNICATOR}/bin:${PATH}"
WORKDIR /usr/src
RUN git clone --branch master --depth 1 https://github.com/schism-dev/schism /usr/src/schism
RUN mkdir -p /usr/src/schism/build
RUN cmake -S /usr/src/schism/src -B /usr/src/schism/build -DOLDIO=${OLDIO} -DTVD_LIM=${TVD_LIM}
RUN make -C /usr/src/schism/build -j8 pschism