Skip to content

Commit

Permalink
adds script to install singularity
Browse files Browse the repository at this point in the history
  • Loading branch information
Geert van Geest committed Oct 19, 2022
1 parent a05687b commit 2d04052
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions scripts/install_singularity.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#!/usr/bin/env bash

# you can add this script as init for AWS server

sudo apt-get update && sudo apt-get install -y \
build-essential \
libseccomp-dev \
libglib2.0-dev \
uuid-dev \
libgpgme-dev \
squashfs-tools \
libseccomp-dev \
wget \
pkg-config \
git \
cryptsetup \
runc

export VERSION=1.19.2 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

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

git clone --recurse-submodules https://github.com/sylabs/singularity.git
cd singularity

git checkout --recurse-submodules v3.10.3

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

0 comments on commit 2d04052

Please sign in to comment.