kiwiroy/singularity-perl:latest
$ singularity pull shub://kiwiroy/singularity-perl:latest
Singularity Recipe
Bootstrap: shub
From: kiwiroy/singularity-perlbrew
%labels
Author kiwiroy@users-noreply.github.com
Maintainer kiwiroy@users-noreply.github.com
Version 1.00
%post -c /bin/bash
echo '****************************************************'
echo 'Setup/Display Environment'
echo '****************************************************'
source $SINGULARITY_ENVIRONMENT
source ${PERLBREW_ROOT}/etc/bashrc
export PERLBREW_PERL=perl-5.28.2
env | grep -i ^perl
echo '****************************************************'
echo 'Install perl'
echo '****************************************************'
# > ${PERLBREW_ROOT}/build.${PERLBREW_PERL}.log
perlbrew --notest --verbose install ${PERLBREW_PERL} > /dev/null
echo '****************************************************'
echo 'Store Environment'
echo '****************************************************'
echo '# Using bash as default shell' > $SINGULARITY_ENVIRONMENT
echo "export SHELL=$SHELL" >> $SINGULARITY_ENVIRONMENT
echo "export PERLBREW_HOME=$PERLBREW_HOME" >> $SINGULARITY_ENVIRONMENT
PERLBREW_LIB= \
PERL5LIB= PERL_LOCAL_LIB_ROOT= \
perlbrew env ${PERLBREW_PERL} >> $SINGULARITY_ENVIRONMENT
echo 'export PATH="${PERLBREW_PATH}:${PATH}"' >> $SINGULARITY_ENVIRONMENT
%runscript
exec perl "${@}"
%test
if test "${SINGULARITY_CHECKTAGS:-}" = "bootstrap"; then
. $SINGULARITY_ENVIRONMENT
fi
perl -E 'say $^X; say $^V;'
env | grep -i ^perl
Collection
- Name: kiwiroy/singularity-perl
- License: None
View on Datalad
Metrics
key | value |
---|---|
id | /containers/kiwiroy-singularity-perl-latest |
collection name | kiwiroy/singularity-perl |
branch | master |
tag | latest |
commit | 7e21d8bb643489f450d9f0a901dcf177316aa2ee |
version (container hash) | b37b58a4b5de7a86c7de5e61909532b5 |
build date | 2019-04-29T11:36:24.879Z |
size (MB) | 636 |
size (bytes) | 184795167 |
SIF | Download URL (please use pull with shub://) |
Datalad URL | View on Datalad |
Singularity Recipe | Singularity Recipe on Datalad |
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.