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/02/20 10:23] Adrien Albert [Update Gurobi License] |
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.\\ | ||
+ | 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.\\ | ||
- | 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. | + | Apptainer images are immutable, but it is possible |
- | You can download | + | === Pull an existing |
+ | <WRAP round alert 50%> | ||
+ | Do not run the following commands on login node !! It's using too much cpu | ||
+ | </ | ||
+ | Exemple with Rstudio: | ||
- | 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. | + | **Create |
- | + | (baobab)-[alberta@login2 ~]$ MYPROJECT=" | |
- | Apptainer images are immutable, but it is possible to append an overlay, see below. | + | (baobab)-[alberta@login2 ~]$ mkdir -p singularity/ |
+ | (baobab)-[alberta@login2 ~]$ cd !$ | ||
+ | (baobab)-[alberta@login2 rocker]$ salloc --partition=shared-cpu --time=00: | ||
+ | (baobab)-[alberta@cpu300 rocker]$ apptainer pull docker:// | ||
+ | | ||
+ | | ||
+ | And Voila; I get my sif image rstudio_4.2.sif | ||
==== Convert a Docker image ==== | ==== Convert a Docker image ==== | ||