Skip to content

tomasz-kapela/capd-singularity-img

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CAPD Singularity image

Project contains scripts that create Singularity image with CAPD library installed in /usr/local directory. The image is available through oficial Singularity library or can be created locally from scripts.

Two version of the image are provided

  • capd - contains library installed in /usr/local and you do not need to provide any path to call capd-config script or include capd headers.
  • capd-dev - additionaly contains the capd library sources and its build result in /usr/src directory

Singularity is a virtualization software based on containers. Follow Quick Start for install and basic use instructions.

Image from the library

Visit https://cloud.sylabs.io/library/capdnet for the list of available CAPD singularity images

The latest capd image can be run by

singularity shell library://capdnet/capd/capd  

This will run a shell within a container (capd singularity image) and your home directory will be mounted so that you will have read/write access to all files in it.

To download image to local storage before running invoke

singularity pull library://capdnet/capd/capd  

Local image

This option is recommended if

  • you need the latest gcc or the latest capd
  • specific version of gcc or capd (in that case you have to modify *.def scripts)

First download or checkout capd-singularity-img project. Then local image can be created and run with commands

sudo singularity build capd.sif capd-all.def
singularity shell capd.sif

Updating image in the library

First you have to:

  • create an account at https://cloud.sylabs.io
  • create an Access Token and login with it singularity remote login
  • create a key pair for image signing (see singularity help key newpair)

Then you can build, sign and upload capd images to the library (replace path with path to your projects)

sudo singularity build capd-dev.sif capd-dev.def
singularity sign capd-dev.sif
singularity push capd-dev.sif library://capdnet/capd/capd-dev:latest

sudo singularity build capd.sif capd.def
singularity sign capd.sif
singularity push capd.sif library://capdnet/capd/capd:latest

About

Singularity image containing CAPD library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages