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
4f800759
Commit
4f800759
authored
1 month ago
by
Carsten Lemmen
Browse files
Options
Downloads
Patches
Plain Diff
Added get_data and gotm exec to docker, missing plot_output (WIP)
parent
eb3d827b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.docker/Dockerfile-fabm
+25
-15
25 additions, 15 deletions
.docker/Dockerfile-fabm
.gitlab/fabm.yaml
+18
-0
18 additions, 0 deletions
.gitlab/fabm.yaml
with
43 additions
and
15 deletions
.docker/Dockerfile-fabm
+
25
−
15
View file @
4f800759
...
...
@@ -57,27 +57,37 @@ LABEL description="This is a custom Docker image for a deployment 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
# Install a development toolchain based on gnu, git and
netcdf dev
tools
#RUN apk add --no-cache \
RUN apk add \
git \
netcdf \
netcdf-fortran \
openmpi \
shadow \
openssh \
bash
RUN apk add git shadow openssh wget sed bash
RUN apk add make cmake
RUN apk add netcdf netcdf-fortran netcdf-dev netcdf-fortran-dev netcdf-utils
RUN apk add R R-dev
#RUN python3 -m venv /home/.pyenv && \
# . /home/.pyenv/bin/activate && \
# pip install editscenario && deactivate
RUN R -e 'install.packages("ncdf4", "/usr/lib/R/library", repos="https://cran.uni-muenster.de/")'
ENV PATH
${PATH}:/opt/bin
ENV LD_LIBRARY_PATH
${PATH}:/opt/lib
ENV PATH
=
${PATH}:/opt/bin
ENV LD_LIBRARY_PATH
=
${PATH}:/opt/lib
RUN groupadd -g 1009 model
RUN useradd -d /home -s /bin/bash -m model -u 1009 -g 1009
RUN chown -R model:model /home
USER model
ENV HOME /home
ENV HOME=/home
WORKDIR ${HOME}
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
# 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!"
# [1] "var (or dimvar) name: oxypom_DOxy"
# [1] "file name: output.nc"
# Error in vobjtovarid4(nc, varid, verbose = verbose, allowdimvar = TRUE) :
# Variable not found
# Calls: t -> ncvar_get -> vobjtovarid4
# Execution halted
CMD ["/bin/bash"]
\ No newline at end of file
This diff is collapsed.
Click to expand it.
.gitlab/fabm.yaml
+
18
−
0
View file @
4f800759
...
...
@@ -35,3 +35,21 @@ test-fabm-docker:
-
docker run ${CONTAINER_REGISTRY_IMAGE} gotm -v
needs
:
-
build-fabm-docker
# Todo run only the gotm exectuable from the docker
# run-fabm-docker:
# extends: .base-fabm-docker
# stage: deploy
# before_script:
# - cd $CI_PROJECT_DIR/testcases
# - bash get_data.sh
# - docker login -u $CI_REGISTRY_USER -p $CI_JOB_TOKEN $CI_REGISTRY
# script:
# - docker pull ${CONTAINER_REGISTRY_IMAGE}
# - docker run ${CONTAINER_REGISTRY_IMAGE} gotm
# - Rscript plot_output.R
# needs:
# - build-fabm-docker
# articfacts:
# paths:
# - testcases/output.nc
\ No newline at end of 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