Skip to content

Commit

Permalink
Add apptainer context for generating an apptainer image of cardinal
Browse files Browse the repository at this point in the history
loganharbour committed Dec 13, 2023

Verified

This commit was signed with the committer’s verified signature.
wyne Justin Wyne
1 parent 0fe8e06 commit 2c412fc
Showing 3 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions apptainer/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Contents in this directory are used for the generation of apptainer images using the `ApptainerGenerator` script found in MOOSE at `scripts/apptainer_generator.py`.

In particular:

- `app_envrionment`: Appends to the environment in the container to add `NEKRS_HOME`
- `app_post_pre_make`: Sets extra variables for the build and builds the extra dependencies (nekrs, openmc, dagmc) before the main build so that the `MAKEFLAGS` variable can be set for parallel builds.
1 change: 1 addition & 0 deletions apptainer/app_environment
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export NEKRS_HOME=/opt/cardinal/contrib
7 changes: 7 additions & 0 deletions apptainer/app_post_pre_make
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export CONTRIB_INSTALL_DIR=/opt/cardinal/contrib
export NEKRS_HOME=${CONTRIB_INSTALL_DIR}
export HDF5_ROOT=${PETSC_DIR}
export ENABLE_DAGMC=ON
make build_nekrs MAKEFLAGS=-j${MOOSE_JOBS}
make build_openmc MAKEFLAGS=-j${MOOSE_JOBS}
make build_dagmc MAKEFLAGS=-j${MOOSE_JOBS}

0 comments on commit 2c412fc

Please sign in to comment.