gpu_server_setup/setup_apps_apptainer.sh

30 lines
587 B
Bash
Raw Permalink Normal View History

2022-07-29 09:31:23 +00:00
#!/bin/bash
set -e
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi
apt-get update
apt-get install -y build-essential uuid-dev libgpgme-dev squashfs-tools libseccomp-dev wget pkg-config git cryptsetup-bin
apt install golang-go
#install apptainer
export VERSION=1.0.3
wget https://github.com/apptainer/apptainer/releases/download/v${VERSION}/apptainer-${VERSION}.tar.gz
tar -xzf apptainer-${VERSION}.tar.gz
cd apptainer-${VERSION}
./mconfig
2023-06-28 14:41:08 +00:00
cd builddir
echo "compile apptainer..."
make
echo "install apptainer..."
make install
echo "Install successfully finished"