Skip to content

Commit

Permalink
[138] Add instructions to use Apptainer in Mintrop
Browse files Browse the repository at this point in the history
  • Loading branch information
SouzaEM committed Jan 23, 2025
1 parent 2002609 commit b2f9ed5
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
13 changes: 12 additions & 1 deletion apptainer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,15 @@ apptainer shell --overlay /tmp/ext3_overlay.img -e devimg.sif
To execute the image in batch mode:
````
apptainer run --overlay /tmp/ext3_overlay.img -e devimg.sif <script>
````
````

### Running on Mintrop

In order to run code with Apptainer on Mintrop, you may add the following lines to your Slurm script:
````
module load apptainer
apptainer overlay create --size 1024 /tmp/ext3_overlay.img
apptainer run --overlay /tmp/ext3_overlay.img -e devimg.sif ./example.sh
````

where the script [example.sh](./example.sh) is provided in this directory to show how spyro code could be called.
4 changes: 4 additions & 0 deletions apptainer/example.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash

. /home/firedrake/firedrake/bin/activate
python3 -m pytest ../test
4 changes: 2 additions & 2 deletions docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ docker run -it runtag:1.0

The Dockerfile may also be used to create a development environment. First, clone the git repository and then build the development image:
````
git clone https://github.com/Olender/spyro-1.git
cd spyro-1
git clone git@github.com:NDF-Poli-USP/spyro.git
cd spyro
git checkout <your_branch>
docker build -t devtag:1.0 -f docker/Dockerfile --target spyro_development docker
````
Expand Down

0 comments on commit b2f9ed5

Please sign in to comment.