...
Column |
---|
|
Code Block |
---|
language | bash |
---|
theme | DJango |
---|
title | Terminal 16. Pulling an external Docker image and creating the local singularity image |
---|
| $ mkdir -p /software/projects/myProjectName/singularity/OpenFOAM
$ cd /software/projects/myProjectName/singularity/OpenFOAM
$ salloc -n 1 --mem=14800Mb29600Mb -p copy
salloc: Granted job allocation 67529
$ module load singularity/<version>
$ srun singularity pull openfoam-org_2.4.x_pawsey.sif docker://quay.io/pawsey/openfoam-org:2.4.x
INFO: Converting OCI blobs to SIF format
INFO: Starting build...
Getting image source signatures
Copying blob 11323ed2c653 done
Copying blob 0a71b4dba9db done
Copying blob 874ae6ae3b00 done
Copying blob 5d27d6ffcb7e done
...
2022/07/08 10:24:32 info unpack layer: sha256:cf6efca24562cd25028fcc99a4442f6062eeb62a60c7709f1454fc8bd8b0d5ea
2022/07/08 10:24:32 info unpack layer: sha256:072f30ec926604acc07e65868c407e1f0d3a3d98dd46340b04a572e55edcfaa6
2022/07/08 10:24:32 info unpack layer: sha256:9357e5bafecbf1d6af595baf24c54e2a10e182a738133a55c889293dcc7b4d10
2022/07/08 10:24:32 info unpack layer: sha256:7f6dad97028f1961f9b463b213119fea99228cda7f684aeeda213d5848ed125b
...
2022/07/08 10:25:12 info unpack layer: sha256:537ce1385428d12c4ba18c09984440f280cce516bcb65ba3531b4a2a95533cfd
INFO: Creating SIF file...
$ ls
openfoam-org-2.4.x-pawsey.sif |
|
Note that <version>
is just a place holder, but users should change it for one of the available versions in the system. Also, this is just an example but, in practice, users would be pulling images from their own online registry and not from Pawsey's registry. Also note the use of --mem=14800Mb29600Mb
(equivalent memory as for 4 8 cores in the copy
partition) which is enough for this operation. (In case of an out-of-memory
error, requested memory should be increased.) The resulting singularity image is a simple file with the .sif
extension. Then, storing and management of the singularity image is performed by treating it as a file. Of course, if you already count with a functional singularity image in another system, you can simply transfer that file to a useful path within your /software
directory.
...