... | ... | @@ -42,9 +42,9 @@ the container description files from the |
|
|
Select and edit the definitions to suit your purposes and build the
|
|
|
image. For example,
|
|
|
```
|
|
|
apptainer build --fakeroot openfoam2306.sif openfoam-run_rocky.def
|
|
|
apptainer build --fakeroot openfoam2312.sif openfoam-run_rocky.def
|
|
|
```
|
|
|
which will build the file `openfoam2306.sif` from the image
|
|
|
which will build the file `openfoam2312.sif` from the image
|
|
|
description file, using the [RockyLinux](rockylinux.org) base image.
|
|
|
A `.sif` extension (singularity image format) is often used for the
|
|
|
apptainer files but is not required.
|
... | ... | @@ -69,7 +69,7 @@ path (eg, `$HOME/bin` etc) and use it. |
|
|
|
|
|
For example,
|
|
|
```
|
|
|
$ openfoam2306.sif
|
|
|
$ openfoam2312.sif
|
|
|
```
|
|
|
|
|
|
This will open an interactive shell with the OpenFOAM environment
|
... | ... | @@ -83,7 +83,7 @@ the default behaviour for the image and the internal run-script. |
|
|
|
|
|
For example,
|
|
|
```
|
|
|
$ openfoam2306.sif
|
|
|
$ openfoam2312.sif
|
|
|
```
|
|
|
|
|
|
|
... | ... | @@ -92,25 +92,25 @@ $ openfoam2306.sif |
|
|
It is also possible to use the image in batch mode.
|
|
|
For example,
|
|
|
```
|
|
|
$ openfoam2306.sif blockMesh -help
|
|
|
$ openfoam2312.sif blockMesh -help
|
|
|
```
|
|
|
|
|
|
It is also possible to use as for running shell scripts.
|
|
|
For example,
|
|
|
```
|
|
|
$ openfoam2306.sif -c './Allrun'
|
|
|
$ openfoam2312.sif -c './Allrun'
|
|
|
```
|
|
|
|
|
|
Note that the entry point within the image itself also has some option
|
|
|
handling.
|
|
|
For example,
|
|
|
```
|
|
|
$ openfoam2306.sif -help
|
|
|
$ openfoam2312.sif -help
|
|
|
```
|
|
|
|
|
|
|
|
|
---
|
|
|
Copyright (C) 2022 OpenCFD Ltd.
|
|
|
Copyright (C) 2022-2023 OpenCFD Ltd.
|
|
|
|
|
|
[apptainer]: https://apptainer.org
|
|
|
[packaging-containers]: https://develop.openfoam.com/packaging/containers
|
... | ... | |