User Tools

Site Tools


hpc:applications_and_libraries

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
hpc:applications_and_libraries [2024/03/13 17:07]
Adrien Albert [Pull an existing image]
hpc:applications_and_libraries [2024/03/25 16:52] (current)
Adrien Albert [Pull an existing image]
Line 1054: Line 1054:
 ==== Intro ==== ==== Intro ====
  
-Apptainer is a Docker like for HPC. It is available directly on the OS, not through module.  +Apptainer is a Docker like for HPC. It is available directly on the OS, not through module. \\ 
- +As you don't have root access on Baobab, you cannot build recipe file on Baobab. If you need to do this, you may want to build the image on your own machine and transfer the image to Baobab.\\ 
-As you don't have root access on Baobab, you cannot build recipe file on Baobab. If you need to do this, you may want to build the image on your own machine and transfer the image to Baobab. +You can download existing images from shub (singularity hub) or from docker (docker public or private registry).\\ 
- +The image will be converted to a read-only squashfs on Baobab disk. It's not possible to have writable images as user. Instead you should build the image as sandbox.\\
-You can download existing images from shub (singularity hub) or from docker (docker public or private registry). +
- +
-The image will be converted to a read-only squashfs on Baobab disk. It's not possible to have writable images as user. Instead you should build the image as sandbox.+
  
 Apptainer images are immutable, but it is possible to append an overlay, see below. Apptainer images are immutable, but it is possible to append an overlay, see below.
Line 1066: Line 1063:
 === Pull an existing image === === Pull an existing image ===
 <WRAP round alert 50%> <WRAP round alert 50%>
- Do not run this command on login node !! It's using too much cpu+ Do not run the following commands on login node !! It's using too much cpu
 </WRAP> </WRAP>
 Exemple with Rstudio: Exemple with Rstudio:
Line 1075: Line 1072:
   (baobab)-[alberta@login2 ~]$ cd !$   (baobab)-[alberta@login2 ~]$ cd !$
   (baobab)-[alberta@login2 rocker]$ salloc --partition=shared-cpu --time=00:30:00 --cpus-per-task 12    (baobab)-[alberta@login2 rocker]$ salloc --partition=shared-cpu --time=00:30:00 --cpus-per-task 12 
-  (baobab)-[alberta@cpu300 rocker]$ appatiner pull docker://rocker/rstudio:4.2+  (baobab)-[alberta@cpu300 rocker]$ apptainer pull docker://rocker/rstudio:4.2
   (baobab)-[alberta@cpu300 rocker]$ ls   (baobab)-[alberta@cpu300 rocker]$ ls
   rstudio_4.2.sif   rstudio_4.2.sif
hpc/applications_and_libraries.1710346052.txt.gz · Last modified: 2024/03/13 17:07 by Adrien Albert