-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Install Fluidsim from source in a Apptainer container | ||
|
||
## Build the image locally on a node | ||
|
||
```sh | ||
apptainer build image-fluidsim.sif image-fluidsim.def | ||
``` | ||
|
||
## Run the image to install Fluidsim from source | ||
|
||
From the host: | ||
|
||
```sh | ||
mkdir -p ~/apptainer_dir/home | ||
apptainer shell --no-home image-fluidsim.sif | ||
``` | ||
|
||
From the container: | ||
|
||
```sh | ||
export HOME=$HOME/apptainer_dir/home | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
BootStrap: docker | ||
From: python:3.11 | ||
|
||
%post | ||
apt-get -y update | ||
apt-get -y install mercurial git less meld | ||
|
||
apt-get install -y --no-install-recommends \ | ||
libfftw3-dev libfftw3-mpi-dev openmpi-bin libhdf5-openmpi-dev libopenblas-dev | ||
|
||
export PATH=/root/.local/bin:$PATH | ||
python -m pip install pipx | ||
|
||
pipx install mercurial | ||
pipx inject mercurial hg-git hg-evolve hg-fluiddyn | ||
|
||
pipx install pdm | ||
pipx install nox | ||
|
||
%environment | ||
export LC_ALL=C | ||
export PATH=/root/.local/bin:$PATH | ||
|
||
# %runscript | ||
|
||
%labels | ||
Author Pierre Augier |