From 061fe175d82b769b1ec63e8e904f01fc5550863c Mon Sep 17 00:00:00 2001 From: thomas Date: Wed, 22 Mar 2023 17:31:54 +0100 Subject: [PATCH] charliecloud: Add version 0.31 with squashfuse support 'charliecloud' is a tool to handle docker and other containers in user space. Update is justified, insofar as mariux now allows users to handle squashfs images w/o hassle (squashfuse). More: https://hpc.github.io/charliecloud/index.html --- charliecloud-0.31-0.build.sh | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100755 charliecloud-0.31-0.build.sh diff --git a/charliecloud-0.31-0.build.sh b/charliecloud-0.31-0.build.sh new file mode 100755 index 0000000..25f4a03 --- /dev/null +++ b/charliecloud-0.31-0.build.sh @@ -0,0 +1,33 @@ +#! /bin/sh + +set -xe + +PKG=charliecloud +VERSION=0.31 +# origin: https://github.com/hpc/charliecloud/releases/download/v0.31/charliecloud-0.31.tar.gz +SRC=https://beehive.molgen.mpg.de/6ab9366080696a5d3eb837eb8aa3cd42/charliecloud-0.31.tar.gz +BUILD=0 + +PATH=/bin:/usr/bin:/usr/sbin:/usr/local/bin +PREFIX=/pkg/$PKG-$VERSION-$BUILD +if [ -n "$TESTING" ]; then PREFIX=/dev/shm/$PKG-$VERSION-$BUILD ; fi + +mkdir -p $PREFIX +cat >$PREFIX/profile <<-EOF + PATH=$PREFIX/bin:\$PATH + if [ -d $PREFIX/.compatlibs ]; then export LD_LIBRARY_PATH=$PREFIX/.compatlibs\${LD_LIBRARY_PATH:+:\$LD_LIBRARY_PATH} ; fi +EOF + +source $PREFIX/profile + +mkdir -p $PREFIX/build +cd $PREFIX/build +test -e charliecloud-$VERSION.tar.gz || wget --no-verbose $SRC +test -d charliecloud-$VERSION || tar -xf charliecloud-$VERSION.tar.gz + +cd charliecloud-$VERSION +./configure --prefix=$PREFIX +nice -12 make -j $(( $(nproc) * 4 / 5 + 1 )) +make install + +exit