From fc692afc185077781972c211871c4f0047c36953 Mon Sep 17 00:00:00 2001 From: nicolas Date: Fri, 29 Jul 2022 09:31:23 +0000 Subject: [PATCH] setup_apps_apptainer.sh added --- setup_apps_apptainer.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 setup_apps_apptainer.sh diff --git a/setup_apps_apptainer.sh b/setup_apps_apptainer.sh new file mode 100644 index 0000000..c2fe6f5 --- /dev/null +++ b/setup_apps_apptainer.sh @@ -0,0 +1,23 @@ +#!/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 +make -C ./apptainer-${VERSION}/builddir + +make -C ./apptainer-${VERSION}/builddir install \ No newline at end of file