Created
March 22, 2021 16:29
-
-
Save hmartiniano/bd3d27db156726cbc747e6bce0aec637 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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