Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Download and save a base CentOS image from Docker with the following command. This command download downloads the image to /tmp/centos_centos7.7.1908.sif. The image contains a very basic set of CentOS 7 operating system. It does include yum and rpm commands so that one can install more rpmsRPMs.

singularity pull docker://centos:centos7.7.1908

...

  • Singularity can use the files in /tmp/squashfs-root as an "image" (Singularity sandbox image). But one needs to change a few things in order to install additional rpms RPMs via yum in the image. So do this: 
    • Fix a few directory permission issueissues

cd /tmp/squashfs-root; find usr bin lib* etc root var -type d -exec chmod u+w {} \;

...

  • After the above changes, you can start using the image, installing rpms RPMs or do other customization, such as

...