Skip to content

Latest commit

 

History

History
85 lines (67 loc) · 2.52 KB

singularity-for-dummies.md

File metadata and controls

85 lines (67 loc) · 2.52 KB

SingularityCE

Write the following lines of code in the pipeline: official singularity repository.

Ensure repositories are up-to-date

sudo apt-get update

Install ubuntu packages for dependencies

sudo apt-get install -y \
   autoconf \
   automake \
   cryptsetup \
   fuse \
   fuse2fs \
   git \
   libfuse-dev \
   libglib2.0-dev \
   libseccomp-dev \
   libtool \
   pkg-config \
   runc \
   squashfs-tools \
   squashfs-tools-ng \
   uidmap \
   wget \
   zlib1g-dev

Install Go

export VERSION=1.21.10 OS=linux ARCH=amd64 && \
   wget https://dl.google.com/go/go$VERSION.$OS-$ARCH.tar.gz && \
   sudo tar -C /usr/local -xzvf go$VERSION.$OS-$ARCH.tar.gz && \
   rm go$VERSION.$OS-$ARCH.tar.gz

Set up environment for Go

echo 'export GOPATH=${HOME}/go' >> ~/.bashrc && \
   echo 'export PATH=/usr/local/go/bin:${PATH}:${GOPATH}/bin' >> ~/.bashrc && \
   source ~/.bashrc

GitHub release page

Download SingularityCE from a release

export VERSION=4.1.3 && # adjust this as necessary \
   wget https://github.com/sylabs/singularity/releases/download/v${VERSION}/singularity-ce-${VERSION}.tar.gz && \
   tar -xzf singularity-ce-${VERSION}.tar.gz && \
   cd singularity-ce-${VERSION}

Compile Singularity

./mconfig && \
   make -C ./builddir && \
   sudo make -C ./builddir install

Testing & Checking the Build Configuration

singularity exec library://alpine cat /etc/alpine-release