Singularity: Difference between revisions

Jump to navigation Jump to search
Undoing previous edits.
(Added SINGULARITY_TMPDIR=/scratch/$USER to example commands to ensure building images on clusters will not run out of RAM.)
(Undoing previous edits.)
Line 58: Line 58:
[https://singularity-hub.org/ Singularity Hub] provides a search interface for pre-built images. Suppose you find one you want to use, for instance [https://singularity-hub.org/collections/543 Ubuntu],
[https://singularity-hub.org/ Singularity Hub] provides a search interface for pre-built images. Suppose you find one you want to use, for instance [https://singularity-hub.org/collections/543 Ubuntu],
then you would download the image by running:
then you would download the image by running:
<source lang="console">$ SINGULARITY_TMPDIR=/scratch/$USER singularity pull shub://singularityhub/ubuntu</source>
<source lang="console">$ singularity pull shub://singularityhub/ubuntu</source>


===Creating an image using Docker Hub=== <!--T:16-->
===Creating an image using Docker Hub=== <!--T:16-->
Line 68: Line 68:
Suppose the Docker Hub URL for a container you want is <tt>docker://ubuntu</tt>,
Suppose the Docker Hub URL for a container you want is <tt>docker://ubuntu</tt>,
then you would download the container by running:
then you would download the container by running:
<source lang="console">$ SINGULARITY_TMPDIR=/scratch/$USER singularity pull docker://ubuntu</source>
<source lang="console">$ singularity pull docker://ubuntu</source>


===Creating a tarball of your own Linux system=== <!--T:19-->
===Creating a tarball of your own Linux system=== <!--T:19-->
Line 86: Line 86:
<source lang="console">$ sudo singularity build my-image.simg my-system.tar</source>
<source lang="console">$ sudo singularity build my-image.simg my-system.tar</source>
if you are using your own system, or,
if you are using your own system, or,
<source lang="console">$ SINGULARITY_TMPDIR=/scratch/$USER singularity build my-image.simg my-system.tar</source>
<source lang="console">$ singularity build my-image.simg my-system.tar</source>
if you are using a Compute Canada system.
if you are using a Compute Canada system.


cc_staff
156

edits

Navigation menu