... | ... | @@ -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 openfoam2212.sif openfoam-run_rocky.def
|
|
|
apptainer build --fakeroot openfoam2306.sif openfoam-run_rocky.def
|
|
|
```
|
|
|
which will build the file `openfoam2212.sif` from the image
|
|
|
which will build the file `openfoam2306.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,
|
|
|
```
|
|
|
$ openfoam2212.sif
|
|
|
$ openfoam2306.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,
|
|
|
```
|
|
|
$ openfoam2212.sif
|
|
|
$ openfoam2306.sif
|
|
|
```
|
|
|
|
|
|
|
... | ... | @@ -92,20 +92,20 @@ $ openfoam2212.sif |
|
|
It is also possible to use the image in batch mode.
|
|
|
For example,
|
|
|
```
|
|
|
$ openfoam2212.sif blockMesh -help
|
|
|
$ openfoam2306.sif blockMesh -help
|
|
|
```
|
|
|
|
|
|
It is also possible to use as for running shell scripts.
|
|
|
For example,
|
|
|
```
|
|
|
$ openfoam2212.sif -c './Allrun'
|
|
|
$ openfoam2306.sif -c './Allrun'
|
|
|
```
|
|
|
|
|
|
Note that the entry point within the image itself also has some option
|
|
|
handling.
|
|
|
For example,
|
|
|
```
|
|
|
$ openfoam2212.sif -help
|
|
|
$ openfoam2306.sif -help
|
|
|
```
|
|
|
|
|
|
|
... | ... | |