This repository contains the source code for the BARI Singularity image, containing R packages for geospatial analysis. The full documentation for Singularity can be found on the syslabs.io documentation site.
The complete image build process is outlined in the Singularity definition file. Most likely, you will want to edit the PACKAGES
array in the %post
section of the definition file.
For full documentation, see the The Definition File section of the syslabs.io documentation site.
To quickly build the BARI Singularity image, run the following command:
singularity build bari.img Singularity
When prototyping, though, it will likely be more useful to use a temporary sandbox directory to iterate through commands before writing the final procedure to the Singularity definition file:
singularity build --sandbox bari-dev/ Singularity
You can then access a root shell that will persist changes as follows:
sudo singularity shell --writable bari-dev/
Once you are finished prototyping, it is best to edit the definition file so that future builds will reflect your updated process and you can see if it is working as intended from a clean base image, but if you are impatient, you can build an image directly from the temporary sandbox:
sudo singularity build bari.img bari-dev/
For full documentation, see the Building a container section of the syslabs.io documentation site.