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 callcapd-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.
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
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
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