Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
OxyPOM
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ElbeXtreme
OxyPOM
Commits
78c8b457
Commit
78c8b457
authored
1 month ago
by
Carsten Lemmen
Browse files
Options
Downloads
Patches
Plain Diff
Fixed Docker build and run of gotm/fabm
parent
9b88f606
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.docker/Dockerfile-fabm
+12
-6
12 additions, 6 deletions
.docker/Dockerfile-fabm
with
12 additions
and
6 deletions
.docker/Dockerfile-fabm
+
12
−
6
View file @
78c8b457
# Dockerfile for development on Alpine linux with gfortran
#
Multistage
Dockerfile for development on Alpine linux with gfortran
#
# SPDX-FileContributor: Carsten Lemmen <carsten.lemmen@hereon.de>
# SPDX-FileCopyrightText: 2024-2025 Helmholtz-Zentrum hereon GmbH
...
...
@@ -10,6 +10,8 @@ FROM python:3.11-alpine AS base
LABEL maintainer="carsten.lemmen@hereon.de"
LABEL version="0.1a"
LABEL description="This is a custom Docker image for a development container"
LABEL license="CC0-1.0"
LABEL copyright="2024-2025 Helmholtz-Zentrum hereon GmbH"
# Install a development toolchain based on gnu/openmpi, git and build tools
RUN apk add --no-cache cmake make bash
...
...
@@ -26,8 +28,8 @@ CMD ["/bin/bash"]
FROM base AS gotm
ENV GOTMDIR
/home/gotm
RUN git clone --depth=1 --recurse-submodules https://github.com/gotm-model/code.git $GOTMDIR
ENV GOTMDIR
=
/home/gotm
RUN git clone --depth=1
--branch=v6.0.7
--recurse-submodules https://github.com/gotm-model/code.git $GOTMDIR
RUN mkdir -p $GOTMDIR/build
RUN mkdir -p /opt
RUN cmake -B $GOTMDIR/build -S $GOTMDIR -DCMAKE_INSTALL_PREFIX=/opt -DGOTM_USE_FABM=OFF
...
...
@@ -35,15 +37,19 @@ RUN make -C $GOTMDIR/build
RUN make -C $GOTMDIR/build install
CMD ["/bin/bash"]
# Due to missing implementation of the ieee_arithmetic fortran module on alpine/aarch64,
# we supply the flag -DFABM_USE_IEEE_ARITHMETIC=OFF
FROM gotm AS gotm-fabm
ENV GOTM_BASE=$GOTMDIR
RUN cmake -B $GOTMDIR/build -S $GOTMDIR -DCMAKE_INSTALL_PREFIX=/opt -DGOTM_USE_FABM=ON
RUN cmake -B $GOTMDIR/build -S $GOTMDIR -DCMAKE_INSTALL_PREFIX=/opt -DGOTM_USE_FABM=ON
-DFABM_USE_IEEE_ARITHMETIC=OFF
RUN make -C $GOTMDIR/build
RUN make -C $GOTMDIR/build install
CMD ["/bin/bash"]
FROM gotm-fabm AS fabm
RUN cmake -B $GOTMDIR/build -S $GOTMDIR -DCMAKE_INSTALL_PREFIX=/opt -DGOTM_USE_FABM=ON -DFABM_DOBGCP_BASE=./src -DFABM_INSTITUTES=dobgcp
ENV DOBGCP_BASE=/home/dobgcp
RUN git clone --depth=1 --recurse-submodules https://codebase.helmholtz.cloud/dam-elbextreme/dobgcp.git ${DOBGCP_BASE}
RUN cmake -B $GOTMDIR/build -S $GOTMDIR -DCMAKE_INSTALL_PREFIX=/opt -DGOTM_USE_FABM=ON -DFABM_USE_IEEE_ARITHMETIC=OFF -DFABM_DOBGCP_BASE=${DOBGCP_BASE}/src -DFABM_INSTITUTES=dobgcp
RUN make -C $GOTMDIR/build
RUN make -C $GOTMDIR/build install
CMD ["/bin/bash"]
...
...
@@ -79,7 +85,7 @@ COPY ./testcases/* ${HOME}
RUN bash ./get_data.sh
RUN Rscript setup_data.R
RUN gotm
#RUN RScript plot_output.R
# @todo does not work yet
#RUN RScript plot_output.R
# b325f4a25932:~# Rscript plot_output.R
# Loading required package: ncdf4
# [1] "vobjtovarid4: error #F: I could not find the requsted var (or dimvar) in the file!"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment