From ed2a487c334b327d0d70621e10be000e0de4e74d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Krup=C4=8D=C3=ADk?= Date: Thu, 19 Dec 2019 09:58:45 +0100 Subject: [PATCH] new file: s/Singularity/Singularity-3.5.2.eb --- s/Singularity/Singularity-3.5.2.eb | 53 ++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 s/Singularity/Singularity-3.5.2.eb diff --git a/s/Singularity/Singularity-3.5.2.eb b/s/Singularity/Singularity-3.5.2.eb new file mode 100644 index 00000000..833a2fe8 --- /dev/null +++ b/s/Singularity/Singularity-3.5.2.eb @@ -0,0 +1,53 @@ +# IT4Innovations 2019 + +# Dokončeno ručně, nejde bez ROOTa !!! + +easyblock = 'ConfigureMake' + +name = 'Singularity' +version = '3.5.2' + +homepage = 'https://github.com/sylabs/singularity' +description = "Singularity is an open source container platform designed to be simple, fast, and secure. Singularity is optimized for EPC and HPC workloads, allowing untrusted users to run untrusted containers in a trusted way." + +toolchain = SYSTEM + +source_urls = ['https://github.com/sylabs/singularity/releases/download/v%s/' % version] +sources = ['singularity-%(version)s.tar.gz'] + +builddependencies = [ + ('Go', '1.13.1'), +] + +dependencies = [ + ('squashfs-tools', '4.3'), +] + +osdependencies = [ + ('openssl-devel', 'libssl-dev', 'libopenssl-devel'), +] + +skipsteps = ['configure'] +prebuildopts = './mconfig --prefix=%(installdir)s && ' +buildopts = '-C ./builddir' + + +postinstallcmds = [ + 'echo "mksquashfs path = /apps/all/squashfs-tools/4.3/bin" >> %(installdir)s/etc/singularity/singularity.conf', +] + +# next steps after installation +# INSTALLATION_PATH=your_installation_path +# chown root:root $INSTALLATION_PATH/Singularity/*/etc/singularity/singularity.conf +# chown root:root $INSTALLATION_PATH/Singularity/*/etc/singularity/capability.json +# chown root:root $INSTALLATION_PATH/Singularity/*/etc/singularity/ecl.toml +# chown root:root $INSTALLATION_PATH/Singularity/*/libexec/singularity/bin/*-suid +# chmod 4755 $INSTALLATION_PATH/Singularity/*/libexec/singularity/bin/*-suid +# chmod +s $INSTALLATION_PATH/Singularity/*/libexec/singularity/bin/*-suid + +sanity_check_paths = { + 'files': ['bin/singularity'], + 'dirs': ['bin', 'etc', 'libexec', 'var'], +} + +moduleclass = 'tools'