Back to home page

EIC code displayed by LXR

 
 

    


Warning, /iDDS/main/tools/container/singularity/ml_command is written in an unsupported language. File is not indexed.

0001 [root@aipanda180 singularity]# apptainer remote add --no-login SylabsCloud cloud.sylabs.io
0002 INFO:    Remote "SylabsCloud" added.
0003 
0004 [root@aipanda180 singularity]# apptainer remote login
0005 Generate an access token at https://cloud.sylabs.io/auth/tokens, and paste it here.
0006 Token entered will be hidden for security.
0007 Access Token: 
0008 INFO:    Access Token Verified!
0009 INFO:    Token stored in /root/.apptainer/remote.yaml
0010 
0011 
0012 [root@aipanda180 singularity]# singularity keys newpair
0013 Enter your name (e.g., John Doe) : Wen Guan
0014 Enter your email address (e.g., john.doe@example.com) : wguan.icedew@gmail.com
0015 Enter optional comment (e.g., development keys) : dev
0016 Enter a passphrase : 
0017 Retype your passphrase : 
0018 WARNING: passphrases do not match
0019 Enter a passphrase : 
0020 Retype your passphrase : 
0021 Generating Entity and OpenPGP Key Pair... done
0022 [root@aipanda180 singularity]# singularity keys list
0023 Public key listing (/root/.apptainer/keys/pgp-public):
0024 
0025 0)  User:              Wen Guan (dev) <wguan.icedew@gmail.com>
0026     Creation time:     2024-04-02 11:47:04 +0200 CEST
0027     Fingerprint:       11B3BCA23474A37E2BB72F8EAD61E4FD656ABA65
0028     Length (in bits):  4096
0029 
0030 
0031 [root@aipanda180 singularity]# singularity keys push 11B3BCA23474A37E2BB72F8EAD61E4FD656ABA65
0032 public key `11B3BCA23474A37E2BB72F8EAD61E4FD656ABA65' pushed to server successfully
0033 [root@aipanda180 singularity]# ls /root/.apptainer/
0034 cache  keys  remote-cache  remote.yaml
0035 [root@aipanda180 singularity]# ls /root/.apptainer/keys/
0036 pgp-public  pgp-secret
0037 
0038 
0039 [root@aipanda180 singularity]# singularity sign idds_ml_ax_al9.simg 
0040 INFO:    Signing image with PGP key material
0041 Enter key passphrase : 
0042 INFO:    Signature created and applied to image 'idds_ml_ax_al9.simg'
0043 [root@aipanda180 singularity]# singularity verify idds_ml_ax_al9.simg 
0044 INFO:    Verifying image with PGP key material
0045 [LOCAL]   Signing entity: Wen Guan (dev) <wguan.icedew@gmail.com>
0046 [LOCAL]   Fingerprint: 11B3BCA23474A37E2BB72F8EAD61E4FD656ABA65
0047 Objects verified:
0048 ID  |GROUP   |LINK    |TYPE
0049 ------------------------------------------------
0050 1   |1       |NONE    |Def.FILE
0051 2   |1       |NONE    |JSON.Generic
0052 3   |1       |NONE    |FS
0053 INFO:    Verified signature(s) from image 'idds_ml_ax_al9.simg'
0054 
0055 
0056 [root@aipanda180 singularity]# cp /root/.apptainer/
0057 cache/        keys/         remote-cache/ remote.yaml   
0058 [root@aipanda180 singularity]# cp /root/.apptainer/remote.yaml /afs/cern.ch/user/w/wguan/private/apptainer/
0059 [root@aipanda180 singularity]# cp -r /root/.apptainer/keys /afs/cern.ch/user/w/wguan/private/apptainer/
0060 
0061 
0062 [root@aipanda180 singularity]# singularity push idds_ml_ax_al9.simg library://wguanicedew/ml/idds_ml_ax_al9.sif:latest