Changes between Version 7 and Version 8 of cypress/SingularityRecipes


Ignore:
Timestamp:
03/27/2026 02:48:12 PM (4 months ago)
Author:
Carl Baribault
Comment:

Added page outline and container file signing

Legend:

Unmodified
Added
Removed
Modified
  • cypress/SingularityRecipes

    v7 v8  
     1[[PageOutline]]
     2
    13= Build Singularity Containers from Recipes =
     4
    25Because you do not have administrative privileges, you cannot build a Singularity container from a Singularity recipe file on Cypress.
     6
    37== Build Remotely on the Cloud ==
    48* You can build a Singularity container from a recipe on [https://cloud.sylabs.io/builder Sylabs Cloud].
    5 * On Cypress, use the provided '''singularity pull...''' command to construct the image file from the cloud such as the following.
     9* On Cypress, use the provided '''singularity pull...''' command to construct the image file from the cloud such as the following, substituting your chosen values for '''sylabsID''', '''myCollection''', '''myImage''', and '''myTag'''.
    610
    711{{{
    8 [tulaneID@cypress01-009 ~]$singularity pull --arch amd64 library://sylabsID/mycollection/myImage:myTag
     12[tulaneID@cypress01-009 ~]$singularity pull --arch amd64 library://sylabsID/myCollection/myImage:myTag
    913}}}
    1014
     15=== Signing Your Container File ===
     16
     17* You may encounter the following messages,
     18{{{
     19WARNING: integrity: signature not found for object group 1
     20WARNING: Skipping container verification
     21}}}
     22
     23* If so, then you can sign your container file via the following.
     24 * Create or update your Sylabs token as needed at [https://cloud.sylabs.io/tokens Sylabs Cloud Tokens]
     25 * Copy the new Sylabs token provided in the above as needed in your clipboard.
     26 * Confirm your remote login in your interactive session by entering the command
     27{{{
     28[tulaneID@cypress01-009 ~]$singularity remote login
     29}}}
     30 * Paste the new Sylabs token provided as needed at the prompt.
     31 * Substitute your chosen values for '''sylabsID''', '''myCollection''', '''myImage''', and '''myTag''' in the URL !https://cloud.sylabs.io/library/sylabsID/myCollection/myImage
     32 * Observe on the Sylabs web page for the image the label '''Image is Unsigned'''.
     33 * Click on the button labeled '''Sign Image''', and at the terminal enter the commands in the resulting pop-up window, such as the following.
     34{{{
     35[tulaneID@cypress01-009 ~]$singularity pull sylabsID_mycollection.sif library://sylabsID/mycollection/myimage:mytag
     36[tulaneID@cypress01-009 ~]$singularity key list
     37[tulaneID@cypress01-009 ~]$singularity sign --keyidx 0 sylabsID_mycollection.sif
     38Signing image: cb4sylabs_mycollection.sif
     39Signature created and applied to cb4sylabs_mycollection.sif
     40[tulaneID@cypress01-009 ~]$singularity push sylabsID_mycollection.sif library://sylabsID/mycollection/myimage:mytag
     413.6MiB / 3.6MiB [==============================================================================] 100 % 11.8 MiB/s 0s
     42}}}
     43 * Confirm on the Sylabs web page for the image, refreshing the page as needed, the label '''Image is Signed'''.
     44
    1145== Build on Your Local Machine ==
     46
    1247* You could build a Linux machine and install Singularity.
    1348* On Windows 11 or Windows 10 version 2004 and higher (Build 19041 and higher)