You can create your own Singularity containers, customized for your personal project needs. We suggest you install locally and create images on a local machine where you have root access.
It is also possible to create your images directly on Spiedie, without further installing Singularity on a local machine.
In order to use the remote builder provided by the sylabs, you must
- Make an Account
- Create a Access Token
- Define a recipe to Build
- Sign and verify your container
- Host your container online
Make and account
In order to use the Singularity Cloud Services (SCS), you must create an account.
- Go to https://cloud.sylabs.io/library
- Click “Sign in to Sylabs”
- Select method to sign in, with Google, GitHub, GitLab, or Microsoft
- Follow the steps to create passwords
Create a Access Token
To use the remote builder, you must associate an access token with your CLI on Spiedie.
To generate a access token:
- Go to https://cloud.sylabs.io/library and log in
- Click on the username to access account dashboard
- select Access Token from the dropdown meny
- Enter a token name and click “Create a new token”
- Copy the token to your clipboard and run the following commands on Spiedie
cd
echo [paste token here] >> .singularity/sylabs-token
Using a recipe to build
Once you have completed the above steps, you can use the remote builder to generate your images on the cloud and download it onto Spiedie.
Select a pre-configured recipe from our recipe hub or use your own, and run the command:
singularity build --remote image.sif definition_file.def
The image should be remotely built and transferred to you working directory for use.
Sign and verify your container
Singularity 3.0 allowedyou to create PGP keys and use them to sign and verify containers. This ensures an added layer of security while sharing containers to ensure you have the correct container and a bit-for-bit reproduction of the original container.
Click here to learn more about Signing and Verifying Containers
Host your container online
Once you have created a access token and copied it onto Spiedie, you can also upload your containers to your personal library for ease of sharing.
You can push your built contier using the push command on Singularity.
First you must create a project on Sylabs Cloud by going to https://cloud.sylabs.io/library and clicking on create a new Project and following the steps.
Once you have created your image, you can push your built container using:
singularity push -U image.sif library://your-username/project-dir/my-container:tags
You can obtain the library link from your projects page on the csylabs cloud website.