Dear all,

We're using the attached EasyConfig to deploy Singularity 3.3.0.

Haven't cleaned it up enough for a PR, and there's new a new v3.4.0 with
support for encrypted containers that this EasyConfig should be adapted
for, but I haven't had time to try it yet and see if any changes are needed.

Kind regards,
Valentin

On 2019-09-09 16:04, Loris Bennett wrote:
> Hi,
>
> I see the most recent version of Singularity available is
>
>   Singularity-2.4.2-GCC-5.4.0-2.26.eb
>
> Is there any particular reason why there are no easyconfigs for version
> 3?
>
> Regards
>
> Loris
>

-- 
Valentin Plugaru | valentin.plug...@uni.lu
Parallel Computing and Optimization Group
CSC Research Unit, University of Luxembourg
PGP KeyID 0x3F3242C5B34D98C2

easyblock = 'ConfigureMake'

name = 'Singularity'
version = '3.3.0'

homepage = 'https://www.sylabs.io/singularity/'
description = """Singularity is a portable application stack packaging and 
runtime utility."""

toolchain = {'name': 'dummy', 'version': ''}

source_urls = ['https://github.com/sylabs/singularity/releases/download/v%s/' % 
version]
sources = ['singularity-%(version)s.tar.gz']
checksums = ['070530a472e7e78492f1f142c8d4b77c64de4626c4973b0589f0d18e1fcf5b4f']

osdependencies = [
    ('openssl-devel', 'libssl-dev', 'libopenssl-devel'),
#    ('libseccomp-devel', 'libseccomp-dev'),
    ('squashfs-tools')
]

builddependencies = [
    ('Go', '1.12.5'),
]

#prebuildopts = 'export GOPATH=$(pwd):$GOPATH && '
prebuildopts = 'mkdir -p src/github.com/sylabs && '
prebuildopts += 'ln -sf %(builddir)s/singularity 
src/github.com/sylabs/singularity && '
prebuildopts += './mconfig -p %(installdir)s -b build && '
prebuildopts += 'cd build && '
preinstallopts = 'cd build && '
skipsteps = ['configure']

sanity_check_paths = {
    'files': ['bin/run-singularity', 'bin/singularity', 
'etc/singularity/singularity.conf'],
    'dirs': ['etc', 'libexec/singularity']
}

# 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

moduleclass = 'tools'

Reply via email to