Skip to content

Build Docker container for Apptainer/Singularity software

Notifications You must be signed in to change notification settings

mattgalbraith/singularity-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Docker Image CI

singularity-docker

Build Docker container for Apptainer/Singularity software.

Apptainer/Singularity is the most widely used container system for HPC.
https://apptainer.org/docs/

1. Build the Docker Image

NB: if running this on Mac with Apple silicon (M1/M2), by default Docker will pull the ARM/aarch64 version of base image (and any subsequent conversion of Docker images will use same architecture). Solution is to specify --platform linux/amd64. Architecture can be checked from within container with arch (should return x86_64).

docker build --build-arg TARGETPLATFORM=linux/amd64 -t singularity:1.3.4 . # tag should match software version

2. Test this tool from the command line:

Check that we can call the tool now encapsulated within the container

docker run -it --rm singularity:1.3.4 arch
docker run -it --rm singularity:1.3.4 apptainer -h # can run as either apptainer or singularity
docker run -it --rm singularity:1.3.4 singularity -h # can run as either apptainer or singularity

About

Build Docker container for Apptainer/Singularity software

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published