This shows you the differences between two versions of the page.
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 | + | Do not run the following commands |
</ | </ | ||
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: | (baobab)-[alberta@login2 rocker]$ salloc --partition=shared-cpu --time=00: | ||
- | (baobab)-[alberta@cpu300 rocker]$ | + | (baobab)-[alberta@cpu300 rocker]$ |
(baobab)-[alberta@cpu300 rocker]$ ls | (baobab)-[alberta@cpu300 rocker]$ ls | ||
rstudio_4.2.sif | rstudio_4.2.sif |