Skip to content

Instantly share code, notes, and snippets.

@hmartiniano
Created March 22, 2021 16:29
Show Gist options
  • Save hmartiniano/bd3d27db156726cbc747e6bce0aec637 to your computer and use it in GitHub Desktop.
Save hmartiniano/bd3d27db156726cbc747e6bce0aec637 to your computer and use it in GitHub Desktop.
#!/bin/bash
cd /opt
export VERSION=1.14.12 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
export VERSION=3.7.0 && # adjust this as necessary \
wget https://github.com/hpcng/singularity/releases/download/v${VERSION}/singularity-${VERSION}.tar.gz && \
tar -xzf singularity-${VERSION}.tar.gz && \
cd singularity
./mconfig --prefix=/opt/singularity && \
make -C ./builddir && \
sudo make -C ./builddir install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment