Skip to content
Snippets Groups Projects
Commit 703d77c9 authored by Jacques Lagnel's avatar Jacques Lagnel
Browse files

Update Singularity_TP2_first_container.adoc

parent 4239f843
No related branches found
No related tags found
No related merge requests found
Pipeline #21090 passed with warnings
......@@ -62,7 +62,7 @@ http, https: Pull an image using the http(s?) protocol
https://library.sylabs.io/v1/imagefile/library/default/alpine:latest
----
On Genotoul, use your "work" folder: /home/<mylogin>/work
On Genotoul, use your "work" folder: /work/<mylogin>
[source, bash]
cd /home/<mylogin>/work
......@@ -78,6 +78,24 @@ singularity run shub://GodloveD/lolcow
You can also use pull with the docker:// URI to reference Docker images served from a registry. In this case, pull does not just download an image file. Docker images are stored in layers, so pull must also combine those layers into a usable Singularity file.
To run it using SLURM on Genotoul:
[source, bash]
----
#!/bin/sh
#SBATCH --job-name=lolcow
#SBATCH -N 1
#SBATCH --ntasks-per-node=1
#SBATCH --time=01:00:00
module load system/singularity-3.5.3
echo « Running on: $SLURM_NODELIST »
singularity run lolcow_latest.sif
----
[source, bash]
singularity pull docker://godlovedc/lolcow # with the default name
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment