-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 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.
There are no files selected for viewing
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
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 |